Buy More, Save More Popup Message (4.6.0 and up)
1 Attachment(s)
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 *} right after : Code:
<a href="cart.php" class="view-cart">{$lng.lbl_view_cart}</a> 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 *} right after : Code:
<a href="cart.php" class="view-cart">{$lng.lbl_view_cart}</a> 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! |
Re: Buy More, Save More Popup Message (4.6.0 and up)
Hello Acidon,
Thanks for a beautiful code. If instead of hard coding in tpl file if I create offer through module and over range of price then how to define the offer? |
Re: Buy More, Save More Popup Message (4.6.0 and up)
Can you be a little more specific, I am not sure if I understood your question correctly :oops:
|
Re: Buy More, Save More Popup Message (4.6.0 and up)
Hello acidon,
I want to say that instead of hard coding in tpl or php file if u please create it as a module where we can define a offer like range of price. For example- Spend Rs.100/- to 200/- to receive 100 off on total cart value Spend Rs.200/- to 300/- to receive 150 off on total cart value If we can create the offer through some modules then I think it will be better. |
Re: Buy More, Save More Popup Message (4.6.0 and up)
Quote:
|
Re: Buy More, Save More Popup Message (4.6.0 and up)
Quote:
Great... That is a great idea..If anyone can create this module that I think will be better... |
Re: Buy More, Save More Popup Message (4.6.0 and up)
I guess Qualiteam announced such of module in the roadmap. Buy More Save More.
|
Re: Buy More, Save More Popup Message (4.6.0 and up)
Quote:
But that will release on February 201.But if Mike can help by contributing a free module I think that will be better. |
Re: Buy More, Save More Popup Message (4.6.0 and up)
Quote:
Sure go ahead, I knew this module is scheduled to be released by QT soon, that's why I didn't bother to create a module and only provided a quick hardcoded fix :) |
Re: Buy More, Save More Popup Message (4.6.0 and up)
I was not aware that QT had this planned, must have missed that. No need to reinvent the wheel, I think QT will do a much better job than I was planning.
I'll look for another idea to make my tutorial with, I would like to share with the community what I know about making modules. |
Re: Buy More, Save More Popup Message (4.6.0 and up)
@totaltec: I hear you man :)
If anyone need to adjust the code above, it doesn't really require any extensive knowledge of programming, it is as simple as "a + b". If you still need help with it tho, just let me know and :) |
Re: Buy More, Save More Popup Message (4.6.0 and up)
Is it possible to alter this to say spend an extra x to get Free Shipping? When free shipping is set at ё10
|
Re: Buy More, Save More Popup Message (4.6.0 and up)
Sure! Just look at the code:
<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> It could easily be: <tr><td colspan="3">Current discount: 0$. Spend {math equation="x - y" x=100 y=$minicart_total_cost }$ more and get FREE SHIPPING!</td></tr> Just alter the text and the math. |
All times are GMT -8. The time now is 09:09 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.