Advertisement
Tsimi

New xsell action

Apr 20th, 2018
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1.       case 'buy_now_xsell' :  if (isset($_GET['products_id'])) {
  2.                                 if (tep_has_product_attributes($_GET['products_id'])) {
  3.                                   tep_redirect(tep_href_link('product_info.php', 'products_id=' . $_GET['products_id']));
  4.                                 } else {
  5.                                   $cart->add_cart($_GET['products_id'], $cart->get_quantity($_GET['products_id'])+1);
  6.                                   $messageStack->add_session('product_action', sprintf(PRODUCT_ADDED, tep_get_products_name((int)$_GET['products_id'])), 'success');
  7.                                 }
  8.                               }
  9.                               tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
  10.                               break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement