I'm running OpenCart 3.0.2.0
I need to change the order on the email confirmation (and in the cart, I was presume) to the order in which items were added to the cart.
I found this thread:
viewtopic.php?t=214245 where TheKrotek suggests this to change the order to the model no:
but I'm not even sure if OpenCart keeps the order that items were added to the cart or how it expresses it.Try to add this before "return $product_data;" in getProducts() function of system/library/cart/cart.php file:
Code: Select all
usort($product_data, function ($a, $b) { return strcmp($a['model'], $b['model']); });
Is this possibe?