Hi all,
I'm new to ZenCart and to this forum, so let me know if I'm in the wrong place or breaking any rules.
I'm a PHP developer who has just inherited a ZenCart site built by somebody else. And there's a problem. When orders are placed, the order amounts are correct but some of the products are missing from the invoice display and in the admin order notification. No customers have complained at this point, so I think the cart is displaying all the products.
But when the system moves the products from the cart to the order tables, something's hinky. The main order record is written to the orders table, but only some of the products are written to the order_products table. This results in an invoice showing, for example, one product at $10.50, but a total invoice amount of $300.35.
I've been looking through the includes\classes\order.php class and I think I've found the loop that processes the products array, but I can't figure out where that array is created.
First of all, does this sound familiar to anybody? Also, can you point me to a line or another file where the products array is created? And finally, during shopping, is the cart ever committed to a data table or is it held only in session variables?
Thanks in advance for your help.


Reply With Quote

