osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Product Quantity Box

This is a discussion on Product Quantity Box within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hello Everyone, I need some help please. I would like to know if someone can direct me or help me ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-30-2004, 04:10 PM
Member
 
Join Date: Jan 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
auntie22
Default Product Quantity Box

Hello Everyone,

I need some help please. I would like to know if someone can direct me or help me solve this issue.

As we all know you can select an Item and go to the cart and select the quantity for that one Item, then you have to go back to the same page to select the other item.
I would like to give my clients the option of the per item quantity box, before going to the cart page. I am using the MS2 MAX version with the osc template.

Example Choices:
Seat Color Select Box
Drivers Seat $1.00 Qty:1
Passengers Seat $1.00 Qty:
Racing Harness $1.00 Qty: 1
Sliders $1.00 Qty:

Thank you for your assistance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-31-2004, 10:48 AM
Member
 
Join Date: Jan 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
auntie22
Default

This is what I am looking for:
http://www.customjersey.com/product_...roducts_id=506
or
http://www.vintageland.com/catalog/p...9b043ebf4b1485

Can someone please help me.

Thank you
auntie22
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-31-2004, 06:07 PM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Kristine
Default

I think this is what you are looking for:
http://www.oscommerce.com/community/...ty+add+to+cart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-31-2004, 06:22 PM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Kristine
Default

I tried it and it does work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-31-2004, 06:27 PM
Anonymous
Guest
 
Posts: n/a
Default

Hello,

I tried this, but I cannot find the in_cart in the product_info.php page. I did replace this in my application top.php $HTTP_POST_VARS['id']))+1

$HTTP_POST_VARS['id']))+$quantity

any other suggestions were I might find the in_cart in ms2 max with the osc template.

Thank you,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-31-2004, 06:31 PM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Kristine
Default

In catalog/templates/content/product_info_tpl.php
Find the code below:
Code:
<p><?php echo stripslashes($product_info['products_description']); ?></p>
and just under it put:
Code:
Qty <input type="text" name="quantity" value="1" maxlength="2" size="2">
This will put the qty box just above the product options if there is any and at the bottom of the product description if there is no options.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-31-2004, 06:45 PM
Anonymous
Guest
 
Posts: n/a
Default

Hi again,

I did what you instructed but nothing, do I have to put:
2.search your application_top.php

find this code:
---------------------------------------------
$HTTP_POST_VARS['id']))+1
--------------------------------------------
replace with this one
------------------------------------------
$HTTP_POST_VARS['id']))+$quantity

someplace other than where instructed.

Again thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 04-01-2004, 02:39 AM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Kristine
Default

no, just in application top. It took some fiddling on my part to get the qty box to show up
but it's working for me where I showed you to put it in the previous post.
Just try putting it in some other places till it shows up.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 06-28-2005, 05:21 AM
mnpolock's Avatar
Member
 
Join Date: Jan 2005
Location: Minneapolis, MN
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mnpolock
Default

For OSCMAX you do have to modify the application_top.php

Line 376 in my version (I think it is unmodded) ..... you'll find this line

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

And you can see where I bolded it ...

I have it working now
__________________
Tony ~ MNpolock
http://www.commonbronze.com/catalog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 10-04-2005, 04:45 AM
New Member
 
Join Date: Sep 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
webmissie1
Default mod not working

I cannot seem to get this to work. I am getting the qty box but no matter what number i put in the box, it still only adds one product to the cart. Any assistance appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



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
discount for quantity with per product xzyyy osCMax v2 Customization/Mods 4 02-22-2007 10:24 AM
Help Quantity BUG... djlane osCMax v1.7 Installation 1 07-02-2005 06:17 PM
Product Quantity on Product Listing Page vinces osCMax v1.7 Discussion 2 12-10-2004 06:32 PM
Product Quantity bug Arpit osCommerce 2.2 Modification Help 1 06-19-2003 06:56 PM
Quantity to order shown on Product detail doug osCommerce 2.2 Modification Help 5 03-06-2003 01:51 AM


All times are GMT -8. The time now is 02:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax