Guest locen Posted February 10, 2016 Share Posted February 10, 2016 (edited) Hi, there is a way to put the idin this screen? screen is related to coupon Thanks Edited February 10, 2016 by locen (see edit history) Link to comment Share on other sites More sharing options...
sandipchandela Posted February 13, 2016 Share Posted February 13, 2016 Are you talking about which product I'd or Category I'd? Link to comment Share on other sites More sharing options...
Guest locen Posted February 13, 2016 Share Posted February 13, 2016 Product id Link to comment Share on other sites More sharing options...
sandipchandela Posted February 13, 2016 Share Posted February 13, 2016 Find product_rule_itemlist.tpl in following directory. And open this file in your favorite text editor. prestashop\admin\themes\default\template\controllers\cart_rules\ In the 6 the line, you will see option tag line like as follows: Replace this <option value="{$item.id|intval}" title="{$item.name}"> {$item.name}</option> with following line. <option value="{$item.id|intval}" title="{$item.name}">{$item.id|intval} => {$item.name}</option> Enjoy customization. Take a backup first. Link to comment Share on other sites More sharing options...
Guest locen Posted February 13, 2016 Share Posted February 13, 2016 Thanks a lot!!! I will try it Link to comment Share on other sites More sharing options...
Guest locen Posted April 18, 2016 Share Posted April 18, 2016 Hi, i search your line in my code but i have not the same. this is the file product_rule_itemlist.tpl <div class="col-lg-12 bootstrap"> <div class="col-lg-6"> {l s='Unselected'} <select multiple size="10" id="product_rule_select_{$product_rule_group_id|intval}_{$product_rule_id|intval}_1"> {foreach from=$product_rule_itemlist.unselected item='item'} <option value="{$item.id|intval}"> {$item.name}</option> {/foreach} </select> <div class="clearfix"> </div> <a id="product_rule_select_{$product_rule_group_id|intval}_{$product_rule_id|intval}_add" class="btn btn-default btn-block" > {l s='Add'} <i class="icon-arrow-right"></i> </a> </div> <div class="col-lg-6"> {l s='Selected'} <select multiple size="10" name="product_rule_select_{$product_rule_group_id|intval}_{$product_rule_id|intval}[]" id="product_rule_select_{$product_rule_group_id|intval}_{$product_rule_id|intval}_2" class="product_rule_toselect" > {foreach from=$product_rule_itemlist.selected item='item'} <option value="{$item.id|intval}"> {$item.name}</option> {/foreach} </select> <div class="clearfix"> </div> <a id="product_rule_select_{$product_rule_group_id}_{$product_rule_id}_remove" class="btn btn-default btn-block" > <i class="icon-arrow-left"></i> {l s='Remove'} </a> </div> </div> <script type="text/javascript"> $('#product_rule_select_{$product_rule_group_id|intval}_{$product_rule_id|intval}_remove').click(function() { removeCartRuleOption(this); updateProductRuleShortDescription(this); }); $('#product_rule_select_{$product_rule_group_id|intval}_{$product_rule_id|intval}_add').click(function() { addCartRuleOption(this); updateProductRuleShortDescription(this); }); $(document).ready(function() { updateProductRuleShortDescription($('#product_rule_select_{$product_rule_group_id|intval}_{$product_rule_id|intval}_add')); }); </script> Link to comment Share on other sites More sharing options...
Nickovitshj Posted February 28, 2022 Share Posted February 28, 2022 Does anyone know if this information can be shown on frontend? 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