mc8000 Posted March 12, 2007 Share Posted March 12, 2007 Hi, I have a checkout problem. I am using OSCMAX v.2.0. The problem only happens when ordering more than one product. On checkout_confirmation.php if I order 2 products they both show. But once the confirm order button is pushed and the page changes to checkout_success.php only the first product is shown under the text "Please notify me of updates to the products I have selected below". The order email sent to the customer looks as below, showing one product but charging for both. Products ------------------------------------------------------ 1 x First Clothing Set (FSH044) = £29.97 ------------------------------------------------------ Sub-Total: £44.96 Total: £44.96 Billing Address ------------------------------------------------------ tttttttttttt ttttttttttttttttttttttt fdfffffffffff fffffffffffffffff, ffffffffff ffffffffffffffffffffffff, United Kingdom Payment Method ------------------------------------------------------ Credit Card Also in the table orders_products only one product entry is shown for the order. I have traced the problem (I think) to this part of the code in checkout_process.php. (see below) (Also think it could be the function tep_db_perform) It seems that the array is only being looped through for the first product. At this point I am stuck. Any ideas? Thanks in advance. // BOF: MOD - QT Pro if (!isset($products_stock_attributes)) $products_stock_attributes=null; $sql_data_array = array('orders_id' => $insert_id, 'products_id' => tep_get_prid($order->products[$i]['id']), 'products_model' => $order->products[$i]['model'], 'products_name' => $order->products[$i]['name'], 'products_price' => $order->products[$i]['price'], 'final_price' => $order->products[$i]['final_price'], 'products_tax' => $order->products[$i]['tax'], 'products_quantity' => $order->products[$i]['qty'],//); 'products_stock_attributes' => $products_stock_attributes); // EOF: MOD - QT Pro tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array); $order_products_id = tep_db_insert_id(); Link to comment Share on other sites More sharing options...
justsmitten Posted March 12, 2007 Share Posted March 12, 2007 Hi I'm sorry I can't help, but maybe you can help me? I use 2checkout.com, which doesn't show the order details...how can I view the orders in OsComm??? Plllleeeeeeeeeeeeeeeese help!!! Thanks in advance!!! Misha Link to comment Share on other sites More sharing options...
Velveeta Posted March 12, 2007 Share Posted March 12, 2007 Hi, I have a checkout problem. I am using OSCMAX v.2.0. The problem only happens when ordering more than one product. On checkout_confirmation.php if I order 2 products they both show. But once the confirm order button is pushed and the page changes to checkout_success.php only the first product is shown under the text "Please notify me of updates to the products I have selected below". The order email sent to the customer looks as below, showing one product but charging for both. Products ------------------------------------------------------ 1 x First Clothing Set (FSH044) = £29.97 ------------------------------------------------------ Sub-Total: £44.96 Total: £44.96 Billing Address ------------------------------------------------------ tttttttttttt ttttttttttttttttttttttt fdfffffffffff fffffffffffffffff, ffffffffff ffffffffffffffffffffffff, United Kingdom Payment Method ------------------------------------------------------ Credit Card Also in the table orders_products only one product entry is shown for the order. I have traced the problem (I think) to this part of the code in checkout_process.php. (see below) (Also think it could be the function tep_db_perform) It seems that the array is only being looped through for the first product. At this point I am stuck. Any ideas? Thanks in advance. // BOF: MOD - QT Pro if (!isset($products_stock_attributes)) $products_stock_attributes=null; $sql_data_array = array('orders_id' => $insert_id, 'products_id' => tep_get_prid($order->products[$i]['id']), 'products_model' => $order->products[$i]['model'], 'products_name' => $order->products[$i]['name'], 'products_price' => $order->products[$i]['price'], 'final_price' => $order->products[$i]['final_price'], 'products_tax' => $order->products[$i]['tax'], 'products_quantity' => $order->products[$i]['qty'],//); 'products_stock_attributes' => $products_stock_attributes); // EOF: MOD - QT Pro tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array); $order_products_id = tep_db_insert_id(); Sorry, OscMax isn't supported here, and this post may end up being deleted by one of the moderators as such... There are too many changes in the code from oscommerce to oscmax for us to be able to figure out if it's some core code that's the problem, or one of their mods... I would imagine there are support sites out there specifically for oscmax, as I know there are for other forks like Zen Cart and CRE Loaded... You may have better luck on one of them... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
mc8000 Posted March 20, 2007 Author Share Posted March 20, 2007 Sorry, OscMax isn't supported here, and this post may end up being deleted by one of the moderators as such... There are too many changes in the code from oscommerce to oscmax for us to be able to figure out if it's some core code that's the problem, or one of their mods... I would imagine there are support sites out there specifically for oscmax, as I know there are for other forks like Zen Cart and CRE Loaded... You may have better luck on one of them... Richard. Thanks Richard I tried over in OSCMax forums and got an answer there. The thread is here: http://www.oscmax.com/forums/oscmax-v2-ins....html#post25573 Thanks again. Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.