Hiya everyone. Trying to get a quantity box, which is NOT a dropdown, but also will automatically calculate based on available quantity.
Now ive searched everywhere for one that fits INTO OSCMAX but nothing. I read on
one oscmax page to add quantity box is same as osc, just edit the product_info.tpl.php instead. Tried this but doesnt work. Codes not the same. I follow the instructions but doesnt work. Codes for this are different in both product_info.tpl.php and application_top.php.
Ive marked the 2 areas it asks to change, but new code where 1+ is or the code just before it, doesnt work chaging it
application top:
And then on another post on oscmax read that trying the osc way will not work as the QTPro code replaces it, so anything you try with osc code will not work???Code:HTML clipboard// customer adds a product from the products page // BOF: MOD - QT Pro // case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { // $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id']) && ($HTTP_POST_VARS['products_id']==(int)$HTTP_POST_VARS['products_id'])) { $attributes=array(); if (isset($HTTP_POST_VARS['attrcomb']) && (preg_match("/^d{1,10}-d{1,10}(,d{1,10}-d{1,10})*$/",$HTTP_POST_VARS['attrcomb']))) { $attrlist=explode(',',$HTTP_POST_VARS['attrcomb']); foreach ($attrlist as $attr) { list($oid, $oval)=explode('-',$attr); if (is_numeric($oid) && $oid==(int)$oid && is_numeric($oval) && $oval==(int)$oval) $attributes[$oid]=$oval; } } if (isset($HTTP_POST_VARS['id']) && is_array($HTTP_POST_VARS['id'])) { foreach ($HTTP_POST_VARS['id'] as $key=>$val) { if (is_numeric($key) && $key==(int)$key && is_numeric($val) && $val==(int)$val) $attributes=$attributes + $HTTP_POST_VARS['id']; } } $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes))+1, $attributes); // EOF: MOD - QT Pro
Am baffled? one says to use osc code, the other says not to?
How can I acheive this? I used google, osc, oscmax, forums everything with no luck to an answer or guide how its done on oscmax. Ive tried the osc ones and cant find codes or it just doesnt work??





LinkBack URL
About LinkBacks








Bookmarks