Jump to content

Coupon..help Me


Guest locen
 Share

Recommended Posts

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.

Share this post


Link to post
Share on other sites

  • 2 months later...
Guest locen

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>

Share this post


Link to post
Share on other sites

  • 5 years later...

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
 Share

×
×
  • Create New...

Important Information

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