News:

Support the VirtueMart project and become a member

Main Menu

free delivery in cart

Started by marvays, March 18, 2017, 08:45:42 AM

Previous topic - Next topic

marvays

Hi.
Today i trying make DIV to cart, where i can show, how much must added buyer to cart, if he want free delivery.
Now, i have this:

<div style="color: #F44336;padding: 10px;text-transform: none;font-size: 12pt;">
<?php if ($data->billTotal <4000 ) { ?>
<span>Pro dopravu zdarma ještě nakupte za: <?php echo (4000 - ($data->billTotal)) ?> Kč </span>
<?php } else { ?>
<span>Doprava zdarma</span>
<?php ?>
</div>


this work, but:
1. if i have added products for 4000+ have problem :( i have "else" for type text . . . . . . but if "else" show me text from "if" and any prize :(
2. not work ajax. i must after added always reload page.

test page here: http://lukysipy.richta.eu/poe-lang-blade-black-kladkova-kuse-175-lbs

any idea?

PS: I want buy solution for it, but i have joomla 2,5 . . . and solution is for j3

alatak

Hello
Are you talking about this solution :
https://alatak.net/en/extensions/virtuemart/shipments/pro-shipment-plugin.html

The problem with joomla 2.5 is a conflict with mootools in the backend.
Not in the frontend.
If you have this javscript disabled in the backend, then you can use it.