Esempio n. 1
0
            case 'remove_product':
                if (isset($_GET['products_id'])) {
                    $cart->remove($_GET['products_id']);
                }
                tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
                break;
            case 'clear_cart':
                $cart->reset(true);
                break;
            case 'remove_wishlist_product':
                if (isset($_GET['wishlist_id'])) {
                    $wishList->remove($_GET['wishlist_id']);
                }
                break;
            case 'clear_wishlist':
                $wishList->reset(true);
                break;
                //                            } // end switch $_GET['action']
                //                           } // end if is set $_GET['action']
                //
                //
                // // include the who's online functions
        }
        // end switch
        // BOF Separate Pricing Per Customer v4.2.x, Hide products from groups mod
    } else {
        // $hide_product is true
        tep_redirect(tep_href_link(FILENAME_DEFAULT));
    }
    // EOF Separate Pricing Per Customer v4.2.x, Hide products from groups mod
}