Jump to content

Linking to an option (product combination)


Site

Recommended Posts

Hi,
What would be the link url to an option (product combination) on a product page.
So when they enter the page, the option is aleready selected.

E.g

http://www.domain.com/1-Product1.html would be the main page


And it had the options of
option1 / option2 / option3


http://www.domain.com/1-Product.html#option1 ??
http://www.domain.com/1-Product.html#option2 ??
http://www.domain.com/1-Product.html#option3 ??



Thanks

Link to comment
Share on other sites

It's strange. I've had a look at the code and it looks like PrestaShop only partially implements the option to select an item from the query string. You'll need to change line 245 of product.tpl in your theme's directory from:

{$group_attribute|escape:'htmlall':'UTF-8'}



to:

{$group_attribute|escape:'htmlall':'UTF-8'}



then you'll be able to add &group_1=15, for example, to change the "Disk space" attribute on the "iPod Nano" product to 8GB using a query string. You need to use group_ followed by the attribute group ID, then use the attribute ID as the value.

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