Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I've installed the next contribution:

http://www.oscommerce.com/community/contributions,1129

Now i got on the productlisting 1 form.

When i press on the button_buy_now there is no product added at the cart.

This is the code I added at application_top.php.

 

///////////////////////////////////////// Products Multi //////////////////////
    // multi_product_add
  case 'add_multi':
    for ($i=0; $i<=sizeof($HTTP_POST_VARS['products_id']); $i++) {
	  if($_POST['add_id'][$i] >= 1)
	    $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['id'][$i]))+($HTTP_POST_VARS['add_id'][$i]), $HTTP_POST_VARS['id'][$i]);
    }
	  tep_redirect(tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params($parameters), 'NONSSL'));
  break;
///////////////////////////////////////// Products Multi //////////////////////

please help me with add the products again at the cart.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...