K
K
kamisarlapsha2018-10-11 18:10:11
opencart
kamisarlapsha, 2018-10-11 18:10:11

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']
        );

Am I moving in the right direction at all? Something got confused. Thanks in advance!
5bbf67d1c0e84127458291.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question