Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Quantity Box in Product Listing v1.0


Recommended Posts

I've just downloaded the Quantity Box in Product Listing v1.0 and started modifiying my files, but it doesn't work. has anybody got it working, if you have could you please share you advice how to get it working as well!?


When I add the following code, my add to cart button/image doesn't work anymore!!!

In /includes/application_top.php

change case 'buy_now' : to --->

case 'buy_now' :        if (isset($HTTP_GET_VARS['products_id'])) {
                               if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {
                                 tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'] . '&cPath=' . $cPath ));
                               } else {
                                 $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+(int)$HTTP_POST_VARS['buyqty']);
                             tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));


Thanks in advance

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...