Exemplo n.º 1
0
             $t->set_var("feature_value", $feature_value);
             $t->parse("features", true);
             $last_group_id = $group_id;
             $last_group_name = get_translation($db->f("group_name"));
         } while ($db->next_record());
         $t->set_var("group_name", $last_group_name);
         $t->parse("groups", true);
     }
 }
 // end specification
 // item previews
 $previews = new VA_Previews();
 $previews->item_id = $item_id;
 $previews->preview_type = array(1, 2);
 $previews->preview_position = 2;
 $previews->showAll("product_previews_under_large");
 $previews->preview_position = 1;
 $total_previews = $previews->showAll("product_previews_tab");
 if ($total_previews) {
     $tabs["previews"] = PROD_PREVIEWS_MSG;
     if (!$use_tabs) {
         $t->sparse("title_previews", false);
     }
 }
 // product images
 $t->set_var("images", "");
 $image_number = 0;
 $image_section_number = 0;
 $image_below_large = 0;
 $images_section_cols = 5;
 $images_below_cols = 5;
Exemplo n.º 2
0
     }
     if (substr($weight, strlen($weight) - 1) == ".") {
         $weight = substr($weight, 0, strlen($weight) - 1);
     }
     $t->set_var("weight", $weight . " " . $weight_measure);
     $t->global_parse("weight_block", false, false, true);
 }
 if ($is_compared) {
     $t->global_parse("compare", false, false, true);
     $t->parse("forms", true);
 } else {
     $t->set_var("compare", "");
 }
 // show products previews
 $previews->item_id = $item_id;
 $previews->showAll("product_previews");
 // show points price
 if ($points_system && $points_price_list) {
     if ($points_price <= 0) {
         $points_price = $item_price * $points_conversion_rate;
     }
     $points_price += $components_points_price;
     $selected_points_price = $selected_price * $points_conversion_rate;
     $product_params["base_points_price"] = $points_price;
     if ($is_points_price) {
         $t->set_var("points_rate", $points_conversion_rate);
         $t->set_var("points_decimals", $points_decimals);
         $t->set_var("points_price", number_format($points_price + $selected_points_price, $points_decimals));
         $t->sparse("points_price_block", false);
     } else {
         $t->set_var("points_price_block", "");