Author Topic: free delivery in cart  (Read 223 times)

marvays

  • Jr. Member
  • **
  • Posts: 71
    • http://marvays.cz
  • Skype Name: marvays
free delivery in cart
« on: March 18, 2017, 08:45:42 am »
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:
Code: [Select]
<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

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2021
    • alatak.net
Re: free delivery in cart
« Reply #1 on: March 18, 2017, 16:57:29 pm »
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.