Jump to content
thirty bees forum

Count Time for free shipping


ipeary

Recommended Posts

Hello every body Can this code make a count down for free shipping in TB ?

step 1 in blockcart.php (at line70) add

//get shipping cost quota $shippingcostquota= Tools::convertPrice((float)(Configuration::get('PSSHIPPINGFREE_PRICE')));

and at line 120

'shippingcostquota' => > $shippingcostquota,

step 2. in the blockcart-json.tpl line96 add

"shippingcostquota": "{$shippingcostquota|htmlentitydecode:2:'UTF-8'}",

step 3. to blockcart.tpl line 80, add the formula, (can add it anywhere inside $products) ...

{if ($shippingcostquota - $total)>0}

Remaining to spend for free shipping:{$shippingcostquota-$product.totalwt}€

{else}

If you spend{$shippingcost_quota}€ free shipping!!!


{/if} cheers !!

Link to comment
Share on other sites

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
×
×
  • Create New...