Jump to content

add to cart button you do not have the option to select any of the attributes


Recommended Posts

I use the default theme and I have a problem I cannot resolve. On the front page I have items and when you click on the add to cart button you do not have the option to select any of the attributes it just adds to the cart with "Choose Option" it works fine if you click the more button and add to cart there. Is the a fix for this?

Link to comment
Share on other sites

This is default Prestashop behavior. There is an option in the back office to turn off the AddToCart button for combination products on the front or category pages. This forces the customer to click through to the product page and make the proper selection there.

Link to comment
Share on other sites

What do you mean by "front page"? Is that homepage?

If so, this is not a bug but designed behavior of Prestashop.

 

Barry mentioned to an option in back office, but it's for another problem. 

It decides to display or not display button Add to basket on category page, just in case, the product has attributes. By default, the button is shown for every product.

Here is the option:

1c44376a-9b18-11e4-937f-8a26a5a06584.png

 

So how to that at homepage?

- You should modify module homefeatured, for example, in which, you are changing the sql query in order to display combinations.

- In my opinion, you should review the category page (php code) and do the similar things

 

It's not a quick one, honestly to say :(

 

Tung

Link to comment
Share on other sites

It decides to display or not display button Add to basket on category page, just in case, the product has attributes. By default, the button is shown for every product.

 

Using this feature, the AddToCart button can be hidden for attribute-enabled products on the home page as well. Homefeatured block, Newproducts, etc. all use product-list.tpl which implements this logic.

 

With (Display the "add to cart" button when a product has attributes = NO), products displayed on the home page (by homefeatured block, newproducts block, etc.) have no Add to Cart button displayed.

 

The customer then has two options:

(1) Click "Quick View" which brings up pop-up window that includes attribute selection.

(2) Click "More" (or product) which loads the product page that includes attribute selection. 

 

SO... Your two alternatives are:

(1) Use the (Display Add to Cart=NO) option with functionality as described above.

(2) Create custom logic to detect when AddToCart button is pressed for attribute-enabled products on home page, provide some custom method (display and logic) to select the particular attributes the customer wants and then pass that on to the cart logic.

 

I know which one I'm using... :D

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...