CMS MADE SIMPLE FORGE

CGEcommerceBase

 

[#6523] bug in class.cg_ecomm_cartitem.php

avatar
Created By: Steve O'Shaughnessy (sjo123)
Date Submitted: Thu May 26 22:34:28 -0400 2011

Assigned To: Robert Campbell (calguy1000)
Version: 1.3.1
CMSMS Version: None
Severity: Minor
Resolution: None
State: Open
Summary:
bug in class.cg_ecomm_cartitem.php
Detailed Description:
the line 

if( !is_null($this->_item_tota) )

probably should be

if( !is_null($this->_item_total) )


in function

  public function get_item_total()
  {
    if( !is_null($this->_item_tota) )
      {
	// item total has been overridden.
	return $this->_item_total;
      }

return ($this->get_unit_price() + $this->get_unit_discount()) *
$this->get_quantity();
  }


History