If you are using a discount system that rewards customers in next fashion:
Spend over X get Y off
then here is the mod that will remind customers to spend more to qualify for the next tier of discounts. It will show a message in Add to Cart Popup when customer adds an item to cart (view attached image).
http://forum.x-cart.com/attachment.php?attachmentid=3557&stc=1&d=137947929 3
Simple example:
Spend 100$ or more and get 10$ OFF
In
/common_files/modules/Add_to_cart_popup/product_added.tpl add:
Code:
{if $minicart_total_cost ge 100} {* Qualified amount *}
<tr><td colspan="3">You will receive 10$ discount at checkout!</td></tr>
{else}
<tr><td colspan="3">Current discount: 0$. Spend {math equation="x - y" x=100 y=$minicart_total_cost }$ more and get 10$ OFF!</td></tr>
{/if}
right after :
Code:
<a href="cart.php" class="view-cart">{$lng.lbl_view_cart}</a>
</div>
</div>
</td>
</tr>
And more complex example:
Spend 75$ or more and get 5$ OFF
Spend 100$ or more and get 10$ OFF
Spend 150$ or more and get 15$ OFF
Spend 200$ or more and get 25$ OFF
In
/common_files/modules/Add_to_cart_popup/product_added.tpl add:
Code:
{if $minicart_total_cost ge 200} {* Maximum qualified amount *}
<tr><td colspan="3">You will receive 25$ discount at checkout!</td></tr>
{elseif $minicart_total_cost ge 150}
<tr><td colspan="3">Current discount: 15$. Spend {math equation="x - y" x=200 y=$minicart_total_cost }$ more and get another 10$ OFF!</td></tr>
{elseif $minicart_total_cost ge 100}
<tr><td colspan="3">Current discount: 10$. Spend {math equation="x - y" x=150 y=$minicart_total_cost }$ more and get another 5$ OFF!</td></tr>
{elseif $minicart_total_cost ge 75}
<tr><td colspan="3">Current discount: 5$. Spend {math equation="x - y" x=100 y=$minicart_total_cost }$ more and get another 5$ OFF!</td></tr>
{else}
<tr><td colspan="3">Current discount: 0$. Spend {math equation="x - y" x=75 y=$minicart_total_cost }$ more and get 5$ OFF!</td></tr>
{/if}
right after :
Code:
<a href="cart.php" class="view-cart">{$lng.lbl_view_cart}</a>
</div>
</div>
</td>
</tr>
This mod was tested in 4.6.0 and 4.6.1 . I am pretty sure it can be easily implemented in earlier versions as well.
Enjoy!