PDA

View Full Version : Quantity Box in Product Listing v1.0



michael_s
10-02-2007, 01:02 AM
This code worked for me... This one does not use the dropdown menú.

product_listing.php

Replace this:

case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'center';
$lc_text = '' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . ' (http://www.oscmax.com/forums/' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . ')';
break;
}

with:

case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'center';
$lc_text = ' ' . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '';
break;

In application_top.php

Replace this:

$HTTP_POST_VARS['id']))+1

with:

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

I used a button different than the one used by the contribution creator as it was better for my own use.

Hope it helps anyone.

The archive does not contain nothing.




More... (http://addons.oscommerce.com/info/2039)