Sunday, December 22, 2013

How to make shipping cost display on checkout in VirtueMart

his tutorial will show you the way to fix the missing cost for shipping on checkout page.


1. Check your delivery option: it may be free;


2. Open the following file on your server: “components\com_virtuemart\views\cart\tmpl\default.php”;


3. Locate the block, that starts with the following condition:



<?php if (!$this->cart->automaticSelectedShipment) { ?>

 



Further you should see:



<?php if ( !empty($this->cart->pricesUnformatted[$pkey]['shipmentTax']) )

 


<?php if ( !empty($this->cart->pricesUnformatted[$pkey]['shipmentTax']) )

 



and



<?php if ( !empty($this->cart->pricesUnformatted[$pkey]['salesPriceShipment']) )

 



Change both lines to:



<?php if ( true)

 



Shipping cost should now appear on the checkout page.



How to make shipping cost display on checkout in VirtueMart

No comments:

Post a Comment