Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.



Recommended Posts

i'm trying to asdd the quantities box in my store...and the knowledgebase has different code from what my application_top.php has.


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


$_POST does not exist. I have this:


$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']);


so should the correct line of code be:


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


thanks for the help!

Link to comment
Share on other sites

  • 3 months later...

I'm trying to add a different contrib, but have a similar problem.

In my case I know what to change, but the problem is that the original code already has been changed.


So now I'd like to add a line to the code in the same manner l0ckx did above...


I'm trying to combine two sets of code:

$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $real_ids))+1, $real_ids);
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes))+1, $attributes);


So, like l0ckx said: Anyone?

Like Eek said... It never hurts to help!

Link to comment
Share on other sites


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

  • Create New...