chillermiller Posted April 6, 2016 Share Posted April 6, 2016 Hello everybody, i have a product with two attributes 'color' and 'size'. The client ist able to choose between 200 colors so I implemented a custom colorpicker. When the user clicks "add to cart" I want to pass the choosed color as an attribute to the product object itselt. {if ($group.group_type == 'select')} <select name="{$groupName}" id="group_{$id_attribute_group|intval}" class="form-control attribute_select no-print"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'html':'UTF-8'}">{$group_attribute|escape:'html':'UTF-8'}</option> {/foreach} </select> {hook h='CustomHook'} At the moment, I got my variables in jQuery in the "CustomHook". Hoch can i make overwrite the procedure from prestashop provided? 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