<h1 id="productName" class="docProduct"><?php echo $products_name; ?> </h1> <!--eof Product Name--> <!--bof Product Price block --> <h2 id="productPrices" class="docProduct"> <?php // base price if ($show_onetime_charges_description == 'true') { $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />'; } else { $one_time = ''; } echo $one_time . ((zen_has_product_attributes_values((int) $_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $_GET['products_id']); ?> </h2> <!--eof Product Price block --> <!--bof free ship icon --> <?php if (zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?> <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?> </div> <?php } ?>
echo $display_button; } ?> </div> <!-- product data --> <h3><?php echo $products->fields['products_name']; ?> </h3> <?php echo zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="productlist"'); ?> <ul> <li class="price"><?php echo ((zen_has_product_attributes_values((int) $products->fields['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . $products_price; ?> </li> <?php if (SHOW_PRODUCT_INFO_DATE_AVAILABLE && $products->fields['products_date_available'] > date('Y-m-d H:i:s')) { ?> <li class="notabene"><?php echo sprintf(UN_TEXT_DATE_AVAILABLE, zen_date_short($products->fields['products_date_available'])); ?> </li> <?php } ?> <li><?php
public static function price() { global $show_onetime_charges_description, $flag_show_product_info_starting_at; global $_GET; $one_time_text = ''; if ($show_onetime_charges_description == 'true') { $one_time_text = ' <div> Your Price: ' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</div>'; } $base_price_text = ''; if (zen_has_product_attributes_values((int) $_GET['products_id']) && $flag_show_product_info_starting_at == 1) { $base_price_text = TEXT_BASE_PRICE; } $display_price = zen_get_products_display_price((int) $_GET['products_id']); return '<h4 id="product-price" class="text-center">' . $one_time_text . $base_price_text . $display_price . '</h4>'; }
if (zen_not_null($products_image)) { require DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars_images.php'; } else { echo ' '; } ?> </td> <td align="center" class="pageHeading"> <?php // base price if ($show_onetime_charges_description == 'true') { $one_time = '<span class="smallText">' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />'; } else { $one_time = ''; } echo $one_time . ((zen_has_product_attributes_values((int) $_GET['products_id']) and SHOW_PRODUCT_INFO_STARTING_AT == '1') ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $_GET['products_id']); ?> </td> </tr> <tr> <td class="main" align="center" valign="top"> <?php echo (SHOW_PRODUCT_INFO_MODEL == '1' and $products_model != '') ? TEXT_PRODUCT_MODEL . $products_model : ' '; ?> </td> </tr> <tr> <td class="main" align="center"><?php echo (SHOW_PRODUCT_INFO_WEIGHT == '1' and $products_weight != 0) ? TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT : ' '; ?>
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') { // do nothing } else { ?> <?php $display_qty = ($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<dt>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . '</dt><dd>' . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</dd>' : ''; if ($products_qty_box_status == 0 or $products_quantity_order_max == 1) { // hide the quantity box and default to 1 $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int) $_GET['products_id']); } else { // show the quantity box $the_button = ''; $the_button .= '<dt>' . PRODUCTS_ORDER_QTY . '</dt>' . "\n"; $the_button .= '<dd><input type="text" name="cart_quantity" value="' . zen_get_buy_now_qty($_GET['products_id']) . '" maxlength="6" size="4" />' . PRODUCTS_ORDER_QTY_TEXT . '<br />' . zen_get_products_quantity_min_units_display((int) $_GET['products_id']) . '' . zen_draw_hidden_field('products_id', (int) $_GET['products_id']) . '</dd>' . "\n" . '</dl>' . "\n"; } $in_cart_button_html = '<div class="cartAdd">' . '<div class="price">' . ((zen_has_product_attributes_values((int) $_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $_GET['products_id']) . '</div>' . "\n" . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT, 'class="imgover"') . '</div>'; $the_button .= $in_cart_button_html; $display_button = ($advanced_stock_button = zen_addOnModules_call_function('advanced_stock', 'advanced_stock_get_buy_now_button', array($_GET['products_id'], $the_button))) != '' ? $advanced_stock_button : zen_get_buy_now_button($_GET['products_id'], $the_button); ?> <?php if ($display_qty != '' or $display_button != '') { echo $display_qty; echo $display_button; } // display qty and button } // CUSTOMERS_APPROVAL == 3 ?> <!--eof Add to Cart Box-->
<ul class="pad_10px"> <li>item#<?php echo $products_model; ?> </li> <div class="hr_d"></div> <!--bof Product Price block --> <li class="big margin_t"> Retail price: <del> <?php // base price if ($show_onetime_charges_description == 'true') { $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />'; } else { $one_time = ''; } echo $one_time . ((zen_has_product_attributes_values((int) $_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . $currencies->display_price(zen_get_products_retail_price((int) $_GET['products_id']), zen_get_tax_rate($product_info->fields['products_tax_class_id'])); ?> </del> </li> <h3 class="relative">Price:<div id="t_p"><ul><li><a class="one u b_" href="javascript:void(0)"><?php echo $currencies->display_symbol_left($_SESSION['currency']); ?> <!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><div> <?php reset($currencies->currencies); while (list($key, $value) = each($currencies->currencies)) { if ($key != $_SESSION['currency']) { ?> <a class="b_ big_" href="<?php echo $_SERVER['REQUEST_URI']; ?> ?currency=<?php