Pull Subtotal Value For Free Gift Module

Hi All,

I'm trying to build a "free gift over $x" module for our store and am having trouble pulling the subtotal value. If I place the block on the cart page it loads the value, but does not update unless I turn off/on the block in layouts.

Here is my current code (need to clean it up once I get it functioning). I'm fairly new to CScart, so I'm sure it's something very simple I'm missing. any suggestions?

You're almost there! Just add another {include file="common/price.tpl" value=200-($cart.display_subtotal)} to your cart and you can get this item for FREE!

Thanks in advance!

Please try

You're almost there! Just add another {include file="common/price.tpl" value=200-($smarty.session.cart.display_subtotal)} to your cart and you can get this item for FREE!

Hey, thank you for the response. I tried that and unfortunately it still doesn't update the value unless I turn off/on the block in Layouts.

Hey, thank you for the response. I tried that and unfortunately it still doesn't update the value unless I turn off/on the block in Layouts.

What CS-Cart version do you use? Cache was enabled for Smarty blocks in old versions

Thanks again for the response, I'm on 4.3.4

What CS-Cart version do you use? Cache was enabled for Smarty blocks in old versions

Thanks again for your help, I found a different post from you a while ago explaining how to disable cache for smartyblocks and that did the trick, thanks!

We were glad to help you!

Hi
i want to offer Free Products at the checkout of total Order amount. i want that each customer choose a one free item at the checkout
One Order 1 product for free
i will offer many types of product for Free with each order total but i want that customer have ability to choose only 1 item per Order.
kindly let me know if someone can help me how to do that.
Thanks