VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: flinx on November 30, 2007, 11:16:20 AM

Title: order_shipping, order_shipping_tax and order_tax_details always 0
Post by: flinx on November 30, 2007, 11:16:20 AM
Description:
In the checkout process, on the final confirmation page, the shipping costs are displayed correctly. But in the confirmation mail (to the buyer and to the shopowner) shipping costs are always zero. Also in the orders table.

VirtueMart Version:
1.1 (nigthly build from 28-11)

Joomla/Mambo Version:
1.5 RC3.

Steps to replicate:
Put something in your basket. Go to checkout, choose a shipping method and a payment method. On the confirmation screen you'll see the correct shipping costs. After confirmation, the cost is set to zero.

Proposed fix(es):
I found that the problem is the check of the existence of the _SHIPPING object in the following methods of the ps_checkout class:
calc_order_totals
calc_order_tax
email_receipt

and fixed it as follows:
// MOD: _SHIPPING isn't recognized as being set. Using is_object it is recognized correctly
//      if( $this->_SHIPPING ) {
      if( is_object($this->_SHIPPING) ) {
// END MOD

Bugtracker task #:


System info:
Apache
PHP 4.4.4
MySQL 4.1.11
Title: Re: order_shipping, order_shipping_tax and order_tax_details always 0
Post by: salbini on September 17, 2008, 17:59:13 PM
I don't want to show tax total in my cart content, can this help?