I want to place the code after the $order_product_id = $this->db->getLastId() which occur 2 times in order.php file. I want to place the code in both places. The OCMOD is placing the code as instructed but it is also adding the code third time and placing it in random place.
<search trim="true" index="0">
$order_product_id = $this->db->getLastId();
$this->db->query("INSERT INTO `oc_order_variation`( `order_id`, `order_product_id`, `product_variation_detail_id`) VALUES (".(int)$order_id.",".(int)$order_product_id.",".(int)$product['variation_detail_id'].")");
I have also tried using offset but it neglect the first occurrence and place the code in the second occurrence only. Is there a way to add the code in both places?
Who is online
Users browsing this forum: No registered users and 9 guests