VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: barbara80 on July 20, 2014, 23:28:38 PM

Title: show free shipping
Post by: barbara80 on July 20, 2014, 23:28:38 PM
Hello,
Use standard shipping virtuemart.
I do not understand why the text is no longer displayed (free postage).
Example: If I reach the total of € 30 should show free shipping.
instead always shows the name of the shipment.
Use vm 2.6.6
Can anyone help me please?
Title: Re: show free shipping
Post by: GJC Web Design on July 21, 2014, 14:34:03 PM
Configuration?
Title: Re: show free shipping
Post by: barbara80 on July 21, 2014, 14:43:38 PM
Hello,
in virtuemart configuration do not see any item that can hide the text (free shipping).
Where should I look?  :(
Thank you for your help
Title: Re: show free shipping
Post by: barbara80 on July 21, 2014, 14:50:11 PM
I attach the screen configuration shipment.
This is happening since I updated vm 2.6.6

[attachment cleanup by admin]
Title: Re: show free shipping
Post by: GJC Web Design on July 21, 2014, 15:20:30 PM
Really have no idea what your asking - just tested the weight shipping plugin for free shipping and works perfectly
afaik no text has ever shown for free shipping
Title: Re: show free shipping
Post by: barbara80 on July 21, 2014, 16:03:54 PM
I'm almost convinced that the text would be displayed.  :-\
Can you tell me if there is a way to show text (free shipping) when you reach the total set to ship for free?
Title: Re: show free shipping
Post by: GJC Web Design on July 21, 2014, 16:46:24 PM
No - there is no logic for it in the shipping api.. if free it just returns nothing

you need to alter/over ride your cart/tmpl/default_pricelist.php

e.g. to show €0.00
<td align="right"><?php
if(empty($this->cart->pricesUnformatted['salesPriceShipment'])){
echo 
$this->currencyDisplay->createPriceDiv ('salesPriceShipment''''0.00'FALSE);
}else{
echo 
$this->currencyDisplay->createPriceDiv ('salesPriceShipment'''$this->cart->pricesUnformatted['salesPriceShipment'], FALSE);
}
?>
</td>


you could use similar logic to display a free label
Title: Re: show free shipping
Post by: jenkinhill on July 21, 2014, 16:56:54 PM
This is the simple way:

Set up 2 version of the weight shipping plugin - for the first add your shipping charge and set Maximum order amount to 29.99. In the second for Shipment Name enter Free shipping, set no charge and set Minimum order amount to 30.  Then Free shipping will show when that plugin is triggered.

Make sure that Enable Automatic Selected Shipment?  is set in Configuration/Checkout
Title: Solved show free shipping
Post by: barbara80 on July 22, 2014, 15:51:27 PM

Thank you so much for your help.  :)
I managed to solve using this fantastic plugin: http://open-tools.net/virtuemart-2-extensions/vm2-shipping-by-rules-plugin.html  ;D