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

Add quantity box to product info page

This is a discussion on Add quantity box to product info page within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This is a re-written Version for those with low quantity orders This mod adds a Product Quantity Drop Down Box ...

      
  1. #1
    osCMax Developer

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


    Post Add quantity box to product info page

    This is a re-written Version for those with low quantity orders

    This mod adds a Product Quantity Drop Down Box in Product Info

    The quantity shown is limited by stock available & further by the MAX_QTY_IN_CART

    Removed attributes limitation.
    Simplified & modified to use the same code in application_top used by Product Listing Enhancements, Thumbnails & Manufacturer Headings http://addons.oscommerce.com/info/6051

    Full Package

    More...
    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

  2. #2
    Member
    Join Date
    Dec 2008
    Posts
    40
    Rep Power
    0


    Default Re: Add quantity box to product info page

    Is this applicable to oscMax?

    Have no problem in changing product_info.php but the codes in line 374 of application_top.php in this addon are different to the oscMax.

    i.e;
    I cannot see the codes below in oscMax as stated in this addon…

    Find: (374)

    // customer adds a product from the products page
    case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {
    $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);
    }
    tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
    break;


    The dropped down box, quantities and add to cart icon appeared ok on product info page but the quantities selected do not feed through to shopping cart page.

    What should I do?

Similar Threads

  1. Add quantity box to product info page
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-05-2008, 08:12 AM
  2. Add quantity box to product info page
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-06-2008, 10:51 AM
  3. Add quantity box to product info page
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-16-2007, 02:08 AM
  4. Add quantity box to product info page
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-15-2007, 12:21 PM
  5. Product Quantity Dropdown on Product Info Page
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-11-2007, 11:13 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
  •