For free shipping you must buy goods for 234 USD.
Edit file: /components/com_virtuemart/themes/default/templates/onepage/**your template**/onepage.logged.tpl.php
Below code:
- Code: Select all
<h3>
<span class="col-module_header_r">
<span class="col-module_header_l">
<span class="col-module_header_arrow">
<span class="col-module_header_color"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_SHIPPING_LBL'); ?></span>
</span>
</span>
</span>
</h3>
<div class="op_rounded_content">
Add code:
- Code: Select all
<?php
global $vendor_freeshipping,$order_total,$vendor_currency_display_style;
$array = explode( "|", $vendor_currency_display_style );
$currency = $array[1];
$xxx = $vendor_freeshipping - $order_total;
if($order_total<$vendor_freeshipping)
echo "For free shipping you must buy goods for $xxx,- $currency.";
?>
Edit file: /components/com_virtuemart/themes/default/templates/onepage/**your template**/onepage.unlogged.tpl.php
Below code:
- Code: Select all
<h3>
<span class="col-module_header_r">
<span class="col-module_header_l">
<span class="col-module_header_arrow">
<span class="col-module_header_color"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_SHIPPING_LBL'); ?></span>
</span>
</span>
</span>
</h3>
<div class="op_rounded_content">
Add code:
- Code: Select all
<?php
global $vendor_freeshipping,$order_total,$vendor_currency_display_style;
$array = explode( "|", $vendor_currency_display_style );
$currency = $array[1];
$xxx = $vendor_freeshipping - $order_total;
if($order_total<$vendor_freeshipping)
echo "For free shipping you must buy goods for $xxx,- $currency.";
?>
This example is for icetheme_twocolumn but you can use for any template.
You can change position of info text as you want.
Enjoy
Jiri