I updated my first live order using EO 4.7.1 with 1.5.8a and had a couple of issues/questions:
1) I received this error when updating the order:
Code:
Warning: The coupon code was not found in the database. Note: the title / text of a coupon is usually formatted like "Discount Coupon : coupon_code :".
I have a feeling it has to do with changes I made to how the coupon code displays to the customer, and I believe the change I need to make is in the eo_update_order_action_processing.php file here:
Code:
// Look for correctly formatted title
preg_match('/([^:]+):([^:]+)/', $coupon, $matches);
if (count($matches) > 2) {
$order_total['title'] = trim($matches[1]);
$coupon = $matches[2];
}
$coupon = trim($coupon);
$cc_id = $db->Execute(
"SELECT coupon_id, coupon_type
FROM ". TABLE_COUPONS . "
WHERE coupon_code = '$coupon'
LIMIT 1"
);
The change I made to the ot_coupon.php file is:
Code:
$this->output[] = [
'title' => $this->title . ' (' . $this->coupon_code . '):',
'text' => '-' . $currencies->format($od_amount['total']),
'value' => $od_amount['total']
];
Can someone help me correct the EO code to prevent this error in the future?
2) I have EO set to reset totals on update in the config menu. When I change a quantity to 0 to remove an item, should the totals automatically update (like an auto page refresh), or is it normal to not display any changes until I click "Update"? I was hoping to be able to see the impact the changes have prior to finalizing an update but that's not happening.
Bookmarks