Jump to content
Whispar1

How to add optional attribute to product with standard attributes

Recommended Posts

I have been going through the combinations generator and can't get the behaviour I am looking for.

If I have a product that has (2) attributes - color and size. Color does not affect the price, size does.

This I have no problem doing through combinations and it works perfectly as intended.

 

However, if I want to add a third attribute that is OPTIONAL for customer and does impact the price, how can this be achieved?

Share this post


Link to post
Share on other sites

You would have to use the combiantion generator again, and if you want to make it optional, you would need to add a default option of "None" which will not have a price impact, as Prestashop requires 1 selection from each attribute group.

  • Like 1

Share this post


Link to post
Share on other sites

Thank you tomerg3

 

I tried that - at least I think I did :)

I attached a few screens to show what I did - maybe I am missing something

 

Applique A is the optional item that will add a cost if selected

post-463404-0-48927100-1360546563_thumb.jpg

Edited by Whispar1 (see edit history)

Share this post


Link to post
Share on other sites

I understood, and as I said, you have to have 1 attribute from each group selected, so you would need to create a new attribute value IE "None" under Applique group and without a price impact.

Share this post


Link to post
Share on other sites

This worked flawlessly - thank you for the tip.

There is one issue on one of the products that I can not figure out

http://69.36.191.225/index.php?id_product=30&controller=product

If you open this page and select 12" fabric opening, it pops up an applique option that I do not have a combination for in the BO.

 

If you look at this page that also has the method used that you suggested - there are no issues.

You choose 12" fabric opening and all other attributes remain "none"

http://69.36.191.225/index.php?id_product=27&controller=product

 

Any thoughts on why this is happening for the first product?

Share this post


Link to post
Share on other sites

You have a JS error on that page


Timestamp: 2/20/2013 10:32:46 PM
Error: SyntaxError: syntax error
Source File: http://69.36.191.225/index.php?id_product=30&controller=product
Line: 2900, Column: 19
Source Code:
           count: , 

If the issue persists after fixing it, let us know.

Share this post


Link to post
Share on other sites

Thanks for the heads up - the JS was looking for a count of a tweet function I am not using so I just commented it out.

Didn't change the drop-down selection error though.

Share this post


Link to post
Share on other sites

That's odd, I'm not quite sure why PS is changing it.

 

Did you try to change Preferences->products->

Display unavailable product attributes on product page

Share this post


Link to post
Share on other sites

Preferences is set to NOT display unavailable attributes. I switched it to yes, saved, then back to no and saved - but still not change... very odd. Maybe I broke the limits of PS attribute system :)

Edited by Whispar1 (see edit history)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More