osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Add Quantity to Listings

This is a discussion on Add Quantity to Listings within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; After making the changes mentioned in the last post, you also need to ADD: elseif (isset($HTTP_POST_VARS['cart_quantity'])) { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+$HTTP_POST_VARS['cart_quantity']); } ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 06-13-2007, 08:12 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,103
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Add Quantity to Listings

After making the changes mentioned in the last post, you also need to ADD:

elseif (isset($HTTP_POST_VARS['cart_quantity']))
{
$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+$HTTP_POST_VARS['cart_quantity']);
}
in the catalog/includes/application_top.php

After:

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']));
}
Hope it would help.



More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Product Quantity Box auntie22 osCMax v1.7 Discussion 13 10-06-2005 04:21 AM
Help Quantity BUG... djlane osCMax v1.7 Installation 1 07-02-2005 07:17 PM
quantity mod...newbie needs help mediareaction osCommerce 2.2 Modification Help 2 11-17-2004 11:14 AM
Remove subcategory listings in Category box strahd8088 osCommerce 2.2 Modification Help 1 07-31-2004 01:40 PM
Catalog Listings - Add pictures? AJ osCommerce 2.2 Modification Help 5 03-11-2003 01:53 AM


All times are GMT -8. The time now is 11:24 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax