Jump to content

new presta shop without shoppingcart


Recommended Posts

Hi,

thanks for your reply.

I added already a shoppingcart and also fixed the position in "top of the page" and "header of the page" and "my account" but I cannot find it :s

It seems my site has a big white header, there could be something wrong :s

Regards

Link to comment
Share on other sites

Check that you aren't in Catalog mode: under the Preferences tab, click Products. The first item should be "Catalog mode:" and it should be set to "No".

I just tested setting mine to "Yes," and it changed my site to look just like yours.

43248_F3u4sAYv1llD7lKtfqcS_t

Link to comment
Share on other sites

Sorry for hijacking this post, but I wanted to document the problems I ran into when testing the OPs problems

Well, this will be fun. After I tested setting catalog mode on (on my test environment) and then turning it back off, I have lost my entire right column. Now I have to investigate whether this is a bug. Anyone seen this behavior before?

Update: I can't even view product details. When I try to view a product, I lose the center column as well. Definitely something strange about switching between catalog modes.

Update: I thought it might just be a browser cache issue, so I cleared the cache and the columns came back. I soon realized, however, that I was also logged out. When I logged in as a customer again, the same problems returned.

Update: So the problem seems to only affect the existing customer. I created a new customer and everything works fine for that customer.

Update: Checked the details of the non-functioning customer, and everything looked good. Ended up checking out the shopping carts, and I noticed that the person had a cart, but it wasn't displaying properly in the list of shopping carts (it was truncating the row after the customer name). This brought me to an important lesson learned...always turn on 'display_errors' and '_PS_DEBUG_SQL_' when working in a test environment. Turning on those displays, I found the following error:

Warning: key_exists() [function.key-exists]: The second argument should be either an array or an object in /.../classes/Cart.php on line 1088

Fatal error: Call to a member function getOrderShippingCost() on a non-object in /.../classes/Cart.php on line 1091



Checking the database, I discovered the red herring. This customer's cart had selected a carrier that was part of the UPS module. I had removed the UPS module earlier, so the database call was producing an invalid value for the shipping costs that were being passed to the Cart.php class in the error code above. I changed the carrier id to a valid carrier, and the error disappeared and the columns all appeared.

I now return you to your regularly scheduled forum post

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...