CMS MADE SIMPLE FORGE

promotions

 

[#12142] Reduce order total by a specified dollar figure breaks the Orders billing form

avatar
Created By: Mathieu Muths (airelibre) (airelibre)
Date Submitted: Tue Sep 17 11:12:19 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.3.2
CMSMS Version: 2.2.10
Severity: Critical
Resolution: None
State: Open
Summary:
Reduce order total by a specified dollar figure breaks the Orders billing form
Detailed Description:
When adding a "Reduce order total by a specified dollar" coupon to the cart, I
got a blank page in {Orders}

Here's the error:
Fatal error: Uncaught Error: Call to undefined method
cg_ecomm_promotion_match::get_discount_amount() in
/home/web/public_html/www/modules/Orders/lib/abstract.base_order_factory.php:239

I can change « get_discount_amount » with « get_discount_amt », I got :

Fatal error: Uncaught TypeError: Argument 1 passed to
Orders\Destination::add_item() must be an instance of Orders\LineItem, instance
of cg_ecomm_cartitem given, called in
/home/web/public_html/www/modules/Orders/lib/class.order_maker.php on line 373

Percentage promotions seems to be OK

Thanks


History