CMS MADE SIMPLE FORGE

Orders

 

[#10905] Discount causes fatal error (type: get_unit_dscount)

avatar
Created By: Tim Smid (TimSmid)
Date Submitted: Wed Feb 17 05:13:15 -0500 2016

Assigned To:
Version: 1.16.5
CMSMS Version: 1.12
Severity: Critical
Resolution: Fixed
State: Open
Summary:
Discount causes fatal error (type: get_unit_dscount)
Detailed Description:
There seems to be a typo in the lib/class.order_maker.php file at line 271:

    $discount = $item->get_unit_dscount() + $item->get_unit_price()*$val*-1;

Should be (notice the extra 'i' in 'discount'):

    $discount = $item->get_unit_discount() + $item->get_unit_price()*$val*-1;

The current situation causes a fatal error when applying a percentual discount
to the order:

Fatal error: Call to undefined method cg_ecomm_cartitem::get_unit_dscount()
in
/home/tandrup/domains/tandrup.nl/public_html/modules/Orders/lib/class.order_maker.php
on line 271


History

Comments
avatar
Date: 2016-02-22 15:43
Posted By: Robert Campbell (calguy1000)

fixed in svn. thanks
      
Updates

Updated: 2016-02-22 15:43
resolution_id: => 7