Site Posted August 10, 2010 Share Posted August 10, 2010 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.ghttp://www.domain.com/1-Product1.html would be the main pageAnd it had the options of option1 / option2 / option3http://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 More sharing options...
Site Posted August 16, 2010 Author Share Posted August 16, 2010 No one have an idea? Link to comment Share on other sites More sharing options...
rocky Posted August 17, 2010 Share Posted August 17, 2010 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 More sharing options...
Site Posted August 17, 2010 Author Share Posted August 17, 2010 I take it this would also still function the same with a drop down box? Link to comment Share on other sites More sharing options...
rocky Posted August 17, 2010 Share Posted August 17, 2010 Yes, the attributes will still be displayed as dropdowns and it should work if you create a dropdown on any page that redirects to the attribute URL. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now