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

Quantity Box in OSCMAX

This is a discussion on Quantity Box in OSCMAX within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hi Folks I am trying to install the quantity box addon osCommerce Community Add-Ons into OSCMAX V2.0 RC3 Have followed ...

      
  1. #1
    New Member
    Join Date
    May 2004
    Location
    Meath, Ireland
    Posts
    22
    Rep Power
    0


    Red face Quantity Box in OSCMAX

    Hi Folks

    I am trying to install the quantity box addon osCommerce Community Add-Ons into OSCMAX V2.0 RC3

    Have followed the instructions, but cannot get the quantity to update in the cart.

    I think the problem is in application_top.php where you are supposed to find:
    $HTTP_POST_VARS['id']))+1

    Replace with:
    $HTTP_POST_VARS['id']))+$HTTP_POST_VARS['quantity']

    in oscmax the file is different
    line 1077 reads
    $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']);


    but changing the +1 doesn't work

    any help appreciated.

  2. #2
    New Member
    Join Date
    May 2004
    Location
    Meath, Ireland
    Posts
    22
    Rep Power
    0


    Default Re: Quantity Box in OSCMAX

    Ok finally figured it out

    replace (approx line 826)

    $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes))+ 1, $attributes);

    // EOF: MOD - QT Pro

    With

    $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes))+$HTTP_POST_VARS['quantity'], $attributes);

    // EOF: MOD - QT Pro


    and it works a treat!

Similar Threads

  1. add Quantity Price Breaks Per Product mod to OSCMAX
    By lazua in forum osCmax v2 Customization/Mods
    Replies: 10
    Last Post: 09-07-2007, 06:16 PM
  2. Quantity Pro error.
    By NeoTech in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 12-04-2006, 12:20 AM
  3. Product Quantity Box
    By auntie22 in forum osCmax v1.7 Discussion
    Replies: 13
    Last Post: 10-06-2005, 03:21 AM
  4. Help Quantity BUG...
    By djlane in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 07-02-2005, 06:17 PM
  5. quantity mod...newbie needs help
    By mediareaction in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 11-17-2004, 10:14 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
  •