Answer the question
In order to leave comments, you need to log in
How to send the old OpenCart 2.3 price in the order email?
Hey! Tell me how I can also send the old price of the goods in the order letter, provided that there is a discount.
I wanted to do this, but I get an error. I'll post a photo below.
$order_data['products'][] = array (
'product_id' => $product_info['product_id'],
'name' => $product_info['name'],
'model' => $product_info['model'],
'option' => $product_option,
'download' => '',
'quantity' => $product_quantity,
'subtract' => $product_info['subtract'],
'price' => $boc_total,
'pricenew' => $product_info['special'],
'priceold' => $product_info['price'],
'total' => $boc_total,
'tax' => $this->tax->getTax($boc_total, $product_info['tax_class_id']),
'reward' => $product_info['reward']
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question