sferrero Posted January 15, 2020 Share Posted January 15, 2020 I'm developing a module that links 2 products (in the example a white t-shirt and a black t-shirt), so in the product page instead of 1 color, there are both colors, like this: : In order to do that I modified the product-variants.tpl file like this: <input {if $group_attribute.url != ""} onclick="location.href='{$group_attribute.url}'"{/if} class="input-color" type="radio" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}> And it works perfectly (of course I modified the controller, and a few more things, but that's not the problem). My problem is that if I upload the module to the prestashop addons so everyone can download, the tpl file won't be modified, how can I modify that? 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