Jump to content

Recommended Posts

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:

unnamed.png.f60cb18745012534a8878f265527b593.png:

 

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?

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
×
×
  • Create New...

Important Information

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