Add to cart - not working in detail view

Phoca Cart - complex e-commerce extension
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

Add to cart - not working in detail view

Post by MAXambient »

Hi Jan!

Last question for today: I can add products to the cart from the category view, but the "Buy now" button is not working in the product view.
It says:
Produkt nicht in den Warenkorb gelegt
Product not added to shopping cart

Produkt nicht gewählt
Product not selected

Any idea, what I´ve made wrong?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Add to cart - not working in detail view

Post by Jan »

Hi, can you paste a screenshot here of where the message is displayed?

This message is very rare message and only displayed in case that the controller does not get ID of product. This means when you add the product to cart, it does not get the ID of this product, which is very unlikely in item view.

When you speak about "Buy now" button, do you use standard add to cart button:

Image

Because "Buy Now" button is other type of button which is used by external services.
If you find Phoca extensions useful, please support the project
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

Re: Add to cart - not working in detail view

Post by MAXambient »

Hi Jan!

I´ve checked and the "Buy" option was set to Ajax. After changing to standard, it seems to work. Only the List of countrys is empty now and I will fill it to check finally, if evrything is working fine :-)

But see screenshots how it was before
https://bizkom.de/screenshots/Screen-Overview.jpg
https://bizkom.de/screenshots/Screen-Detail.jpg
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Add to cart - not working in detail view

Post by Jan »

Hi, there are two parameters for "add to cart"

- the type of button
- and the behaviour (standard or ajax)

Empty country list - you can import the countries in administration - in country list.

Jan
If you find Phoca extensions useful, please support the project
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

Re: Add to cart - not working in detail view

Post by MAXambient »

Japp, it was set to "Paddle" and that did not work.
As we only ship to 2 countrys I´ve entered them by hand :-)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Add to cart - not working in detail view

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply