Ejemplo n.º 1
0
                     $t->set_var("component_price", $option_positive_price_right . currency_format($component_shown_price) . $option_positive_price_left);
                 } elseif ($component_price < 0) {
                     $t->set_var("component_price", $option_negative_price_right . currency_format(abs($component_shown_price)) . $option_negative_price_left);
                 } else {
                     $t->set_var("component_price", "");
                 }
                 $t->sparse("components", true);
             }
         }
     }
     $t->sparse("components_block", false);
 } else {
     $t->set_var("components_block", "");
 }
 // new-spec begin
 show_item_features($item_id, "basket");
 // new-spec end
 // set item variables into html
 $t->set_var("item_name", $item_name);
 if ($item_image) {
     if (preg_match("/^http\\:\\/\\//", $item_image)) {
         $image_size = "";
     } else {
         $image_size = @getimagesize($item_image);
         if ($image_exists && ($watermark || $restrict_products_images)) {
             $item_image = "image_show.php?item_id=" . $item_id . "&type=" . $image_type_name . "&vc=" . md5($item_image);
         }
     }
     if (!strlen($item_image_alt)) {
         $item_image_alt = $item_name;
     }
Ejemplo n.º 2
0
             $price_excl_tax_total += $component["price_excl_tax_total"];
             $item_tax_total += $component["item_tax_total"];
             $price_incl_tax_total += $component["price_incl_tax_total"];
             $points_price += $component["points_price"] * $component_sub_quantity;
             $reward_points += $component["reward_points"] * $component_sub_quantity;
             $reward_credits += $component["reward_credits"] * $component_sub_quantity;
         }
         $item_total = $price * $quantity;
         $t->parse("components", true);
     }
     $t->parse("components_block", false);
 } else {
     $t->set_var("components_block", "");
 }
 // new-spec begin
 show_item_features($sub_item_id, "checkout");
 // new-spec end
 // generate products description in text format
 $item_text = $item_name;
 if (strlen($properties_text)) {
     $item_text .= " (" . $properties_text . ")";
 }
 $item_text .= " " . PROD_QTY_COLUMN . ":" . $quantity . " " . currency_format($item_total);
 $items_text .= $item_text . $eol;
 $coupons_html = "";
 if (is_array($coupons_applied)) {
     foreach ($coupons_applied as $coupon_id => $coupon_info) {
         $coupons_html .= "<br>" . $coupon_info["title"] . " (- " . currency_format($coupon_info["discount"]) . ")";
     }
 }
 $t->set_var("cart_id", $cart_item_id);