Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity in product_info page


scud

Recommended Posts

Posted

According to a solution by user JulieCSM, I can have the quantity option show right on the product_info page right before the add to cart button... Is there a way to make this option appear only in a specific category, ie cPath=51??

 

Below is the bit of html code used to present the quantity option

 

<tr><td></td><td align="right" class="main">Quantity: <input type="text" name="quantity" value="1" maxlength="3" size="2"> </td></tr>

 

Also you should change the /includes/application_top.php instance of:

 

$HTTP_POST_VARS['id']))+1

 

to:

 

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

 

Works like a charm, if only I could use it selectively!

Posted

I can't believe that this challenge is so big... Please, people, I really need a solution to this problem urgently! Please!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...