Post by danijr » Sun Jun 25, 2017 8:30 am

Hello I would like to see the price of the options and the photo of the option on the invoice.
To know that the data in the table is not recorded are dynamic :)
I would be very grateful if someone could take the time request function
this is the table

mysql:

Code: Select all

DROP TABLE IF EXISTS `oc_order_option`;
CREATE TABLE `oc_order_option` (
  `order_option_id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) NOT NULL,
  `order_product_id` int(11) NOT NULL,
  `product_option_id` int(11) NOT NULL,
  `product_option_value_id` int(11) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL,
  `value` text NOT NULL,
  `type` varchar(32) NOT NULL,
  PRIMARY KEY (`order_option_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

I wonder if he is from
class ModelCheckoutOrder extends Model {
foreach ($product['option'] as $option) {
}
} ?

thank you very much :) friends!

New member

Posts

Joined
Fri Dec 02, 2016 10:28 pm

Post by IP_CAM » Sun Jun 25, 2017 9:02 am

you probably mean something like this: ;)
Itemised Cart Options
https://www.opencart.com/index.php?rout ... n_id=19655
Ernie
---
Image

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 46 guests