Initial commit
This commit is contained in:
45
archive/version_01/includes/modules/debug_blocks/product_info_prices.php
Executable file
45
archive/version_01/includes/modules/debug_blocks/product_info_prices.php
Executable file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* product_info_prices.php
|
||||
*
|
||||
* @package debugTools
|
||||
* @copyright Copyright 2003-2005 Zen Cart Development Team
|
||||
* @copyright Portions Copyright 2003 osCommerce
|
||||
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
|
||||
* @version $Id: product_info_prices.php 2599 2005-12-18 23:36:49Z drbyte $
|
||||
*/
|
||||
|
||||
|
||||
if ($debug_on == '1') {
|
||||
echo 'Looking at ' . (int)$_GET['products_id'] . '<br />';
|
||||
echo 'Base Price ' . zen_get_products_base_price((int)$_GET['products_id']) . '<br />';
|
||||
echo 'Actual Price ' . zen_get_products_actual_price((int)$_GET['products_id']) . '<br />';
|
||||
echo 'Special Price ' . zen_get_products_special_price((int)$_GET['products_id'], true) . '<br />';
|
||||
echo 'Sale Maker Discount Type ' . zen_get_products_sale_discount_type((int)$_GET['products_id']) . '<br />';
|
||||
echo 'Discount Calc ' . zen_get_discount_calc((int)$_GET['products_id']) . '<br />';
|
||||
echo 'Discount Calc Attr $100 $75 $50 $25 ' . zen_get_discount_calc((int)$_GET['products_id'], true, 100) . ' | ' . zen_get_discount_calc((int)$_GET['products_id'], true, 75) . ' | ' . zen_get_discount_calc((int)$_GET['products_id'], true, 50) . ' | ' . zen_get_discount_calc((int)$_GET['products_id'], true, 25) . '<br />';
|
||||
|
||||
echo '<br> Start of page - product <br>' .
|
||||
zen_get_show_product_switch($products_id_current, 'weight') . '<br>' .
|
||||
zen_get_show_product_switch($products_id_current, 'weight_attributes') . '<br>' .
|
||||
zen_get_show_product_switch($products_id_current, 'date_added') . '<br>' .
|
||||
zen_get_show_product_switch($products_id_current, 'quantity') . '<br>' .
|
||||
zen_get_show_product_switch($products_id_current, 'model') . '<br>' .
|
||||
SHOW_PRODUCT_INFO_WEIGHT_ATTRIBUTES . '<br>' .
|
||||
SHOW_PRODUCT_INFO_WEIGHT . '<br>' .
|
||||
SHOW_PRODUCT_INFO_MANUFACTURER . '<br>' .
|
||||
SHOW_PRODUCT_INFO_QUANTITY . '<br>' .
|
||||
'<br>';
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if (false) {
|
||||
echo 'Looking at ' . (int)$_GET['products_id'] . '<br />';
|
||||
echo 'Base Price ' . zen_get_products_base_price((int)$_GET['products_id']) . '<br />';
|
||||
echo 'Actual Price ' . zen_get_products_actual_price((int)$_GET['products_id']) . '<br />';
|
||||
echo 'Special Price ' . zen_get_products_special_price((int)$_GET['products_id'], true) . '<br />';
|
||||
echo 'Sale Maker Discount Type ' . zen_get_products_sale_discount_type((int)$_GET['products_id']) . '<br />';
|
||||
echo 'Discount Calc ' . zen_get_discount_calc((int)$_GET['products_id']) . '<br />';
|
||||
echo 'Discount Calc Attr $100 $75 $50 $25 ' . zen_get_discount_calc((int)$_GET['products_id'], true, 100) . ' | ' . zen_get_discount_calc((int)$_GET['products_id'], true, 75) . ' | ' . zen_get_discount_calc((int)$_GET['products_id'], true, 50) . ' | ' . zen_get_discount_calc((int)$_GET['products_id'], true, 25) . '<br />';
|
||||
}
|
||||
?>
|
||||
22
archive/version_01/includes/modules/debug_blocks/shopping_cart_contents.php
Executable file
22
archive/version_01/includes/modules/debug_blocks/shopping_cart_contents.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* shopping_cart_contents.php
|
||||
*
|
||||
* @package debugTools
|
||||
* @copyright Copyright 2003-2005 Zen Cart Development Team
|
||||
* @copyright Portions Copyright 2003 osCommerce
|
||||
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
|
||||
* @version $Id: shopping_cart_contents.php 2698 2005-12-27 05:35:21Z drbyte $
|
||||
*/
|
||||
|
||||
|
||||
if ($debug_on == '1') {
|
||||
// echo 'I SHOW IN CART MIXED Product ID 168 on ' . $_SESSION['cart']->in_cart_mixed_discount_quantity('168:d89443fdf309475ce09268e1c1db12dc') . '<br>';
|
||||
// echo 'I SHOW IN CART MIXED Product ID 169 off ' . $_SESSION['cart']->in_cart_mixed_discount_quantity('169:d370574074572c79a9d0c96b069f6e32') . '<br>';
|
||||
|
||||
echo 'I AM GV ONLY ' . $_SESSION['cart']->gv_only() . ' - ' . $_SESSION['cart']->get_content_type() . '<br />';
|
||||
echo 'Free Products: ' . $_SESSION['cart']->in_cart_check('product_is_free','1') . '<br />';
|
||||
echo 'Virtual Products: ' . $_SESSION['cart']->in_cart_check('products_virtual','1') . '<br />';
|
||||
echo 'Free Shipping Products: ' . $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1') . '<br />';
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user