Здравствуйте. Помогите пожалуйста! В joomshopping включил отображение наличия товара. Выставляю количество товара в атрибутах и скрипт отрабатывает не правильно. Поясню на картинках. Выставил положительное количество профиля в каждом атрибуте. В итоге, когда загружается страница надпись "В наличии" не отображается, затем, если щелкнуть по первому атрибуту(который итак выбран) надпись появляется и при этом пропадает "Старая цена", потом на втором атрибуте она пропадает, на третьем появляется. А должна отображаться постоянно, так как по всем атрибутам выставлено положительное значение (тоесть товар в наличии). Вот сам скрипт Код (PHP): <script type="text/javascript"> <?php if ($this->product->product_quantity >0){?> var translate_not_available = "<?php print addslashes(_JSHOP_PRODUCT_NOT_AVAILABLE_THIS_OPTION)?>"; <?php }else{?> var translate_not_available = "<?php print addslashes(_JSHOP_PRODUCT_NOT_AVAILABLE)?>"; <?php }?> var translate_zoom_image = "<?php print addslashes(_JSHOP_ZOOM_IMAGE)?>"; var product_basic_price_volume = <?php print $this->product->weight_volume_units;?>; var product_basic_price_unit_qty = <?php print $this->product->product_basic_price_unit_qty;?>; var currency_code = "<?php print $this->config->currency_code;?>"; var format_currency = "<?php print $this->config->format_currency[$this->config->currency_format];?>"; var decimal_count = <?php print $this->config->decimal_count;?>; var decimal_symbol = "<?php print $this->config->decimal_symbol;?>"; var thousand_separator = "<?php print $this->config->thousand_separator;?>"; var attr_value = new Object(); var attr_list = new Array(); var attr_img = new Object(); <?php if (count($this->attributes)){?> <?php $i=0;foreach($this->attributes as $attribut){?> attr_value["<?php print $attribut->attr_id?>"] = "<?php print $attribut->firstval?>"; attr_list[<?php print $i++;?>] = "<?php print $attribut->attr_id?>"; <?php } ?> <?php } ?> <?php foreach($this->all_attr_values as $attrval){ if ($attrval->image){?>attr_img[<?php print $attrval->value_id?>] = "<?php print $attrval->image?>";<?php } }?> var liveurl = '<?php print JURI::root()?>'; var liveattrpath = '<?php print $this->config->image_attributes_live_path;?>'; var liveproductimgpath = '<?php print $this->config->image_product_live_path;?>'; var liveimgpath = '<?php print $this->config->live_path."images";?>'; var urlupdateprice = '<?php print $this->urlupdateprice;?>'; <?php print $this->_tmp_product_ext_js;?> </script>