osCmax v2.5 User Manual
Results 1 to 3 of 3

Checkout problem: not processing more than one product

This is a discussion on Checkout problem: not processing more than one product within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hi, I have a checkout problem. I am using OSCMAX v.2.0. The problem only happens when ordering more than one ...

      
  1. #1
    Lurker
    Join Date
    Jan 2007
    Posts
    2
    Rep Power
    0


    Default Checkout problem: not processing more than one product

    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();

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Checkout problem: not processing more than one product

    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Lurker
    Join Date
    Jan 2007
    Posts
    2
    Rep Power
    0


    Default Re: Checkout problem: not processing more than one product

    Thank you Michael, that is much appreciated.

Similar Threads

  1. Problem with checkout
    By stevemitch2 in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 08-13-2006, 08:29 AM
  2. Having a problem with checkout.
    By mattcald in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 06-17-2005, 04:18 AM
  3. That old Tax problem again! :( - Tax removed at checkout
    By JJJ in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 06-21-2004, 09:28 AM
  4. Problem with checkout
    By chanterelle in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 10-20-2003, 10:23 AM
  5. The problem of checkout.
    By Newbie in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 10-08-2003, 07:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •