Jump to content

Default Attributes


jeffarbour
 Share

Recommended Posts

I am looking at prestashop for a clients online dessert coffee store. They have two attributes that apply to their products, sweetened & unsweetened and Decaf & regular. There are also 3 categories regular, decaf, and unsweetened to help the customer find their way quickly to their desired type. Not all types are available in all categories but several have multiple choices. What I need to be able to do is have the default attributes change depending on what category the customer is in, is there a way to do this and if so how?

Share this post


Link to post
Share on other sites

The only way I can think of is to create a custom Javascript function which will change the selected values as soon as the page loads.

You will have to pass to it the category name (which I assume is a value of one of the attributes)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

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