<?php
/* --------------------------------------------------------------
gm_gprint_cart_actions.php 2009-12-08 mb
Gambio GmbH
http://www.gambio.de
Copyright (c) 2009 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
?><?php
$coo_gm_gprint_product_manager = new GMGPrintProductManager();
switch($_GET['action'])
{
case 'add_product':
if($coo_gm_gprint_product_manager->get_surfaces_groups_id($_POST['products_id']) !== false)
{
$t_products_properties_combis_id = 0;
if(isset($_POST['properties_values_ids']))
{
$coo_properties_control = MainFactory::create_object('PropertiesControl');
$t_products_properties_combis_id = $coo_properties_control->get_combis_id_by_value_ids_array($_POST['products_id'], $_POST['properties_values_ids']);
if($t_products_properties_combis_id == 0)
{
die('combi not available');
}
}
$t_gm_product = xtc_get_uprid($_POST['products_id'], $_POST['id'], $t_products_properties_combis_id);
if($_POST['submit_target'] == 'cart')
{
if(is_object($_SESSION['coo_gprint_cart']))
{
$t_new_product = $_SESSION['coo_gprint_cart']->check_cart($t_gm_product, 'cart', false);
if($t_new_product !== false)
{
$t_gm_product = $t_new_product;
}
}
if(isset($_SESSION['cart']->contents[$t_gm_product]))
{
$_POST['products_qty'] -= $_SESSION['cart']->contents[$t_gm_product]['qty'];
if($_POST['products_qty'] < 0)
{
$_POST['products_qty'] = 0;
}
}
}
elseif($_POST['submit_target'] == 'wishlist')
{
if(is_object($_SESSION['coo_gprint_wishlist']))
{
$t_new_product = $_SESSION['coo_gprint_wishlist']->check_wishlist($t_gm_product, 'wishList', false);
if($t_new_product !== false)
{
$t_gm_product = $t_new_product;
}
}
if(isset($_SESSION['wishList']->contents[$t_gm_product]))
{
$_POST['products_qty'] -= $_SESSION['wishList']->contents[$t_gm_product]['qty'];
if($_POST['products_qty'] < 0)
{
$_POST['products_qty'] = 0;
}
}
}
}
break;
case 'buy_now':
if($coo_gm_gprint_product_manager->get_surfaces_groups_id($_GET['BUYproducts_id']) !== false)
{
if(isset($t_turbo_buy_now) && $t_turbo_buy_now == true)
{
$t_show_details = true;
break;
}
if($gmSEOBoost->boost_products) {
$gm_product_link = $gmSEOBoost->get_boosted_product_url((int)$_GET['BUYproducts_id'], $_GET['gm_boosted_product']);
xtc_redirect(xtc_href_link($gm_product_link));
}
else
{
xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id'], 'NONSSL'));
}
}
break;
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| gm_gprint_admin_application_top.php | 2013-11-12 21:02 | 2.63 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_categories.php | 2013-11-12 21:02 | 713 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_column_left.php | 2013-11-12 21:02 | 673 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_general.php | 2013-11-12 21:02 | 829 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_gm_pdf_order.php | 2013-11-12 21:02 | 1.27 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_gm_send_order.php | 2013-11-12 21:02 | 2.39 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_header.php | 2013-11-12 21:02 | 619 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_new_category.php | 2013-11-12 21:02 | 2.06 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_new_product.php | 2013-11-12 21:02 | 1.29 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_orders.php | 2013-11-12 21:02 | 2.79 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_orders_2.php | 2013-11-12 21:02 | 1.69 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_orders_css.php | 2013-11-12 21:02 | 458 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_admin_orders_js.php | 2013-11-12 21:02 | 524 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_application_top.php | 2013-11-12 21:02 | 1.49 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_cart_actions.php | 2013-11-12 21:02 | 2.95 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_checkout.php | 2013-11-12 21:02 | 534 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_checkout_confirmation.php | 2013-11-12 21:02 | 1.2 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_checkout_process.php | 2013-11-12 21:02 | 492 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_header_css.php | 2013-11-12 21:02 | 979 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_header_js.php | 2013-11-12 21:02 | 144 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_login.php | 2013-11-12 21:02 | 120 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_order.php | 2013-11-12 21:02 | 2.4 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_order_details_cart.php | 2013-11-12 21:02 | 505 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_order_details_cart_2.php | 2013-11-12 21:02 | 1.14 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_order_details_wishlist.php | 2013-11-12 21:02 | 1.73 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_product_info.php | 2013-11-12 21:02 | 835 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_tables.php | 2013-11-12 21:02 | 1.3 KB | 76129f60960:kunden | -xw-x----- | |
| gm_graduated_prices.php | 2013-11-12 21:02 | 1.48 KB | 76129f60960:kunden | -xw-x----- | |
| gm_popup_header.php | 2013-11-12 21:02 | 2.65 KB | 76129f60960:kunden | -xw-x----- | |
| gm_product_attributes.php | 2013-11-12 21:02 | 9.43 KB | 76129f60960:kunden | -xw-x----- | |