Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 15 Ответов
  • 4996 Просмотров
*

Nishtiak

  • Захожу иногда
  • 112
  • 3 / 0
Подскажите как переделать файл product_default.php для того чтоб товар отображался как на картинке и добавить новый стиль. Заранее спасибо.
*

nevigen

  • Moderator
  • 10436
  • 863 / 25
  • http://n*****n.com
Re: Отображение материала Joomshoping 3.6.1
« Ответ #1 : 24.06.2012, 21:09:19 »
Подсказываю
/components/com_jshopping/templates/default/product/product_default.php
Профессиональные / Бесплатные решения для JoomShopping
Не лечи бесплатно, ибо тот, кто лечится бесплатно, рано или поздно перестает ценить свое здоровье,
а тот, кто лечит бесплатно, рано или поздно перестает ценить результаты своего труда/ (с) Гиппократ?
Не ищите ответов, ищите решение !
*

Nishtiak

  • Захожу иногда
  • 112
  • 3 / 0
Re: Отображение материала Joomshoping 3.6.1
« Ответ #2 : 26.06.2012, 22:26:14 »
Да я знаю что нужно редактировать этот файл но методом проб и ошибок я ничего не добился
*

nevigen

  • Moderator
  • 10436
  • 863 / 25
  • http://n*****n.com
Re: Отображение материала Joomshoping 3.6.1
« Ответ #3 : 26.06.2012, 23:11:47 »
просто разберитесь как формируются таблицы найдите часть кода где выводится цена
приблизительно такой кусок отвечает за вывод цены.
Код
		<?php if ($this->product->_display_price){?>
    <div class="prod_price">
        <strong><?php print _JSHOP_PRICE?>:</strong><span id="block_price"><?php print formatprice($this->product->getPriceCalculate())?><?php print $this->product->_tmp_var_price_ext;?></span>
    </div>
    <?php }?>
    <?php print $this->product->_tmp_var_bottom_price;?>
Старая цена
Код
<?php if ($this->product->product_old_price > 0){?>
    <div class="old_price">
        <strong><?php print _JSHOP_OLD_PRICE?> </strong>
<<span class="old_price" id="old_price"><?php print formatprice($this->product->product_old_price)?></span>
    </div>
    <?php }?>
найдите его вырежьте
и вставте его у нужное место таблицы.включив воображение.
Профессиональные / Бесплатные решения для JoomShopping
Не лечи бесплатно, ибо тот, кто лечится бесплатно, рано или поздно перестает ценить свое здоровье,
а тот, кто лечит бесплатно, рано или поздно перестает ценить результаты своего труда/ (с) Гиппократ?
Не ищите ответов, ищите решение !
*

johnrass

  • Захожу иногда
  • 125
  • 26 / 0
Re: Отображение материала Joomshoping 3.6.1
« Ответ #4 : 27.06.2012, 08:20:43 »
Пришли свой вариант файла /components/com_jshopping/templates/default/product/product_default.php
*

Nishtiak

  • Захожу иногда
  • 112
  • 3 / 0
Re: Отображение материала Joomshoping 3.6.1
« Ответ #5 : 27.06.2012, 22:57:41 »
Мой файл product_default.php

[вложение удалено Администратором]
*

Nishtiak

  • Захожу иногда
  • 112
  • 3 / 0
Re: Отображение материала Joomshoping 3.6.1
« Ответ #6 : 27.06.2012, 23:05:20 »
Может все же как для чайника, раз подскажите что куда, думаю после по таким пустякам форум засорять не буду
*

johnrass

  • Захожу иногда
  • 125
  • 26 / 0
Re: Отображение материала Joomshoping 3.6.1
« Ответ #7 : 28.06.2012, 17:14:05 »
Попробуй так, например, CSS поправь как надо
Код
<?php $product = $this->product?>
<?php include(dirname(__FILE__)."/load.js.php");?>
<div class="jshop productfull">
<form name = "product" method = "post" action = "<?php print $this->action?>" enctype="multipart/form-data">
   
    <h1><?php print $this->product->name?><?php if ($this->config->show_product_code){?> <span class="jshop_code_prod">(<?php print _JSHOP_EAN?>: <span id="product_code"><?php print $this->product->getEan();?></span>)</span><?php }?></h1>
    <?php print $this->_tmp_product_html_start;?>
    <?php if ($this->config->display_button_print) print printContent();?>
   
    <?php include(dirname(__FILE__)."/ratingandhits.php");?>
       
    <table class = "jshop">
    <tr>
        <td width = "100">
            <?php print $this->_tmp_product_html_before_image;?>           
            <?php if ($product->label_id){?>
                <div class="product_label">
                    <?php if ($product->_label_image){?>
                        <img src="<?php print $product->_label_image?>" alt="<?php print htmlspecialchars($product->_label_name)?>" />
                    <?php }else{?>
                        <span class="label_name"><?php print $product->_label_name;?></span>
                    <?php }?>
                </div>
            <?php }?>
            <?php if (count($this->videos)){?>
                <?php foreach($this->videos as $k=>$video){?>
                    <a style = "display:none" class = "video_full" id = "hide_video_<?php print $k;?>" href = ""></a>
                <?php } ?>
            <?php }?>
           
            <span id='list_product_image_middle'>
            <?php if(!count($this->images)){?>
                <img id = "main_image" src = "<?php print $this->image_product_path?>/<?php print $this->noimage?>" alt = "<?php print htmlspecialchars($this->product->name)?>" />
            <?php }?>
            <?php foreach($this->images as $k=>$image){?>
            <a class="lightbox" id="main_image_full_<?php print $image->image_id?>" href="<?php print $this->image_product_path?>/<?php print $image->image_full;?>" <?php if ($k!=0){?>style="display:none"<?php }?>>
                <img id = "main_image_<?php print $image->image_id?>" src = "<?php print $this->image_product_path?>/<?php print $image->image_name;?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" />
            </a>
            <?php }?>
            </span>
            <?php print $this->_tmp_product_html_after_image;?>
           
            <?php if ($this->config->product_show_manufacturer_logo && $this->product->manufacturer_info->manufacturer_logo!=""){?>
            <div class="manufacturer_logo">
                <a href="<?php print SEFLink('index.php?option=com_jshopping&controller=manufacturer&task=view&manufacturer_id='.$this->product->product_manufacturer_id, 2);?>">
                    <img src="<?php print $this->config->image_manufs_live_path."/".$this->product->manufacturer_info->manufacturer_logo?>" alt="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" title="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" border="0" />
                </a>
            </div>
            <?php }?>
        </td>
        <td class = "jshop_img_description" style = "padding-left: 10px;">
            <?php print $this->_tmp_product_html_before_image_thumb;?>
            <span id='list_product_image_thumb'>
            <?php if ( (count($this->images)>1) || (count($this->videos) && count($this->images)) ) {?>
                <?php foreach($this->images as $k=>$image){?>
                    <img class="jshop_img_thumb" src="<?php print $this->image_product_path?>/<?php print $image->image_thumb?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" onclick="showImage(<?php print $image->image_id?>)" />
                <?php }?>
            <br />
            <?php }?>
            </span>
            <?php print $this->_tmp_product_html_after_image_thumb;?>
            <?php if (count($this->videos)){?>
                <?php foreach($this->videos as $k=>$video){?>               
                    <a href="<?php print $this->video_product_path?>/<?php print $video->video_name?>" id="video_<?php print $k?>" onclick = "showVideo(this.id, '<?php print $this->config->video_product_width;?>', '<?php print $this->config->video_product_height;?>'); return false;"><img class="jshop_video_thumb" src = "<?php print $this->video_image_preview_path."/"; if ($video->video_preview) print $video->video_preview; else print 'video.gif'?>" alt = "video" /></a>
                <?php } ?>
            <?php }?>
            <?php print $this->_tmp_product_html_after_video;?>
        </td>
<td class = "jshop_prod_right">
<?php if ($this->product->product_is_add_price){?>
<div class="price_prod_qty_list_head"><?php print _JSHOP_PRICE_FOR_QTY?></div>
<table class="price_prod_qty_list">
<?php foreach($this->product->product_add_prices as $k=>$add_price){?>
<tr>
<td class="qty_from" <?php if ($add_price->product_quantity_finish==0){?>colspan="3"<?php } ?>>
<?php if ($add_price->product_quantity_finish==0) print _JSHOP_FROM; ?>
<?php print $add_price->product_quantity_start?> <?php print $this->product->product_add_price_unit?>
</td>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_line"> - </td>
<?php } ?>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_to">
<?php print $add_price->product_quantity_finish?> <?php print $this->product->product_add_price_unit?>
</td>
<?php } ?>
<td class="qty_price">           
<span id="pricelist_from_<?php print $add_price->product_quantity_start?>"><?php print formatprice($add_price->price)?><?php print $add_price->ext_price?></span> <span class="per_piece">/ <?php print $this->product->product_add_price_unit?></span>
</td>
</tr>
<?php }?>
</table>
<br/>
<?php }?>

<?php if ($this->product->product_old_price > 0){?>
<div class="old_price">
<?php print _JSHOP_OLD_PRICE?> <span class="old_price" id="old_price"><?php print formatprice($this->product->product_old_price)?></span>
</div>
<?php }?>

<?php if ($this->product->product_price_default > 0 && $this->config->product_list_show_price_default){?>
<div class="default_price"><?php print _JSHOP_DEFAULT_PRICE;?>: <span id="pricedefault"><?php print formatprice($this->product->product_price_default)?></span></div>
<?php }?>       

<?php if ($this->product->_display_price){?>
<div class="prod_price">
<?php print _JSHOP_PRICE?>: <span id="block_price"><?php print formatprice($this->product->getPriceCalculate())?><?php print $this->product->_tmp_var_price_ext;?></span>
</div>
<?php }?>
<?php print $this->product->_tmp_var_bottom_price;?>

<?php print $this->_tmp_product_html_before_buttons;?>
<?php if (!$this->hide_buy){?>                         
<table class="prod_buttons">
<tr>
<td class="prod_qty">
<?php print _JSHOP_QUANTITY?>:&nbsp;
</td>
<td class="prod_qty_input">
<input type = "text" name = "quantity" id = "quantity" onkeyup="reloadPrices();" class = "inputbox" style = "width: 20px" value = "<?php print $this->default_count_product?>" /><?php print $this->_tmp_qty_unit;?>
</td>       
<td class = "buttons">           
<input type = "submit" class = "button" value = "<?php print _JSHOP_ADD_TO_CART?>" onclick="jQuery('#to').val('cart');" />
<?php if ($this->enable_wishlist){?>
<input type = "submit" class = "button" value = "<?php print _JSHOP_ADD_TO_WISHLIST?>" onclick="jQuery('#to').val('wishlist');" />
<?php }?>
<?php print $this->_tmp_product_html_buttons;?>
</td>
<td id = "jshop_image_loading" style = "display:none"></td>
</tr>
</table>
<?php }?>
<?php print $this->_tmp_product_html_after_buttons;?>

</td>
    </tr>
    </table>

    <div class = "jshop_prod_description">
        <?php print $this->product->description; ?>
    </div>       
   
    <?php if ($this->product->product_url!=""){?>
    <div class="prod_url">
        <a target="_blank" href="<?php print $this->product->product_url;?>"><?php print _JSHOP_READ_MORE?></a>
    </div>
    <?php }?>   
    <br />
   
    <?php if ($this->config->product_show_manufacturer_logo && $this->product->manufacturer_info->name!=""){?>
    <div class="manufacturer_name">
        <?php print _JSHOP_MANUFACTURER;?>: <?php print $this->product->manufacturer_info->name;?>
    </div>
    <?php }?>
   
    <?php if (count($this->attributes)){?>
    <div class = "jshop_prod_attributes">
        <table class = "jshop">
        <?php foreach($this->attributes as $attribut){?>
        <tr>
            <td width = "50">
                <?php print $attribut->attr_name?>:
            </td>
            <td>
                <span id='block_attr_sel_<?php print $attribut->attr_id?>'>
                <?php print $attribut->selects?>
                </span>
            </td>
        </tr>
        <?php }?>
        </table>
    </div>
    <br />
    <?php }?>
   
    <?php if (count($this->product->freeattributes)){?>
    <div class="prod_free_attribs">
        <table class = "jshop">
        <?php foreach($this->product->freeattributes as $freeattribut){?>
        <tr>
            <td class="name" width="80"><?php print $freeattribut->name;?> <?php if ($freeattribut->required){?><span>*</span><?php }?></td>
            <td class="field"><?php print $freeattribut->input_field;?></td>
        </tr>
        <?php }?>
        </table>
        <?php if ($this->product->freeattribrequire) {?>
        <div class="requiredtext">* <?php print _JSHOP_REQUIRED?></div>
        <?php }?>
    </div>
    <br/>
    <?php }?>
   
   
   
    <?php if ($this->config->show_tax_in_product && $this->product->product_tax > 0){?>
        <span class="taxinfo"><?php print productTaxInfo($this->product->product_tax);?></span>
    <?php }?>
    <?php if ($this->config->show_plus_shipping_in_product){?>
        <span class="plusshippinginfo"><?php print sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);?></span>
    <?php }?>
    <?php if ($this->product->delivery_time != ''){?>
        <div class="deliverytime"><?php print _JSHOP_DELIVERY_TIME?>: <?php print $this->product->delivery_time?></div>
    <?php }?>
    <?php if ($this->config->product_show_weight && $this->product->product_weight > 0){?>
        <div class="productweight"><?php print _JSHOP_WEIGHT?>: <span id="block_weight"><?php print formatweight($this->product->getWeight())?></span></div>
    <?php }?>
   
    <?php if ($this->product->product_basic_price_show){?>
        <div class="prod_base_price"><?php print _JSHOP_BASIC_PRICE?>: <span id="block_basic_price"><?php print formatprice($this->product->product_basic_price_calculate)?></span> / <?php print $this->product->product_basic_price_unit_name;?></div>
    <?php }?>
   
    <?php if (is_array($this->product->extra_field)){?>
        <div class="extra_fields">
        <?php $extra_field_group = "";
        foreach($this->product->extra_field as $extra_field){
            if ($extra_field_group!=$extra_field['groupname']){
                $extra_field_group = $extra_field['groupname'];
            ?>
            <div class='extra_fields_group'><?php print $extra_field_group?></div>
            <?php }?>
            <div><?php print $extra_field['name'];?>: <?php print $extra_field['value'];?></div>
        <?php }?>
        </div>
    <?php }?>
   
    <?php if ($this->product->vendor_info){?>
        <div class="vendorinfo">
            <?php print _JSHOP_VENDOR?>: <?php print $this->product->vendor_info->shop_name?> (<?php print $this->product->vendor_info->l_name." ".$this->product->vendor_info->f_name;?>),
            (
            <?php if ($this->config->product_show_vendor_detail){?><a href="<?php print $this->product->vendor_info->urlinfo?>"><?php print _JSHOP_ABOUT_VENDOR?></a>,<?php }?>
            <a href="<?php print $this->product->vendor_info->urllistproducts?>"><?php print _JSHOP_VIEW_OTHER_VENDOR_PRODUCTS?></a> )
        </div>
    <?php }?>
   
    <?php if (!$this->config->hide_text_product_not_available){ ?>
        <div class = "not_available" id="not_available"><?php print $this->available?></div>
    <?php }?>
   
    <?php if ($this->config->product_show_qty_stock){?>
        <div class="qty_in_stock"><?php print _JSHOP_QTY_IN_STOCK?>: <span id="product_qty"><?php print sprintQtyInStock($this->product->qty_in_stock);?></span></div>
    <?php }?>
   
   
   
<input type="hidden" name="to" id='to' value="cart" />
<input type = "hidden" name = "product_id" id = "product_id" value = "<?php print $this->product->product_id?>" />
<input type = "hidden" name = "category_id" id = "category_id" value = "<?php print $this->category_id?>" />
</form>
<?php

if (count ($this->demofiles)){?>
<div class="list_product_demo">
<table>
    <?php foreach($this->demofiles as $demo){?>
    <tr>
        <td class="descr"><?php print $demo->demo_descr?></td>           
        <?php if ($this->config->demo_type == 1) { ?>
            <td class="download"><a target="_blank" href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>" onClick="popupWin = window.open('<?php print SEFLink("index.php?option=com_jshopping&controller=product&task=showmedia&media_id=".$demo->id);?>', 'video', 'width=<?php print $this->config->video_product_width;?>,height=<?php print $this->config->video_product_height;?>,top=0,resizable=no,location=no'); popupWin.focus(); return false;"><img src = "<?php print $this->config->live_path.'images/play.gif'; ?>" alt = "play" title = "play"/></a></td>
        <?php } else { ?>
            <td class="download"><a target="_blank" href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>"><?php print _JSHOP_DOWNLOAD;?></a></td>
        <?php }?>
    </tr>
    <?php }?>
</table>
</div>
<?php } ?>

<?php if ($this->config->product_show_button_back){?>
<br/>
<input type="button" class = "button" value="<?php print _JSHOP_BACK;?>" onclick="<?php print $this->product->button_back_js_click;?>" />
<?php }?>
<?php
    print $this->_tmp_product_html_before_related;
    include(dirname(__FILE__)."/related.php");
    print $this->_tmp_product_html_before_review;
    include(dirname(__FILE__)."/review.php");
?>
<?php print $this->_tmp_product_html_end;?>
</div>
« Последнее редактирование: 28.06.2012, 17:20:58 от johnrass »
*

Nishtiak

  • Захожу иногда
  • 112
  • 3 / 0
Re: Отображение материала Joomshoping 3.6.1
« Ответ #8 : 29.06.2012, 00:19:35 »
Спасибо johnrass  :D очень помог, с CSS я разобрался сам. Если интересно можете глянуть как вышло на http://voentorg.md/. Может рекомендации появятся, буду рад выслушать.  *DRINK*
« Последнее редактирование: 11.08.2012, 01:40:41 от Nishtiak »
*

kefla

  • Захожу иногда
  • 87
  • 4 / 0
  • Учусь, учусь, все время учусь, а края не видно...
Re: Отображение материала Joomshoping 3.6.1
« Ответ #9 : 28.07.2012, 11:01:42 »
Подсказываю
/components/com_jshopping/templates/default/product/product_default.php

Спасибо за подсказку"где", а дальше наставили подумать :)
*

webwork2012

  • Новичок
  • 6
  • 0 / 0
Re: Отображение материала Joomshoping 3.6.1
« Ответ #10 : 14.09.2012, 08:03:36 »
Всем привет, у меня схожий вопрос: подскажите пожалуйста как сделать чтобы описание товара было справа от изображения(а не под ним)

Вот так выглядит сейчас:



Но поскольку у меня только одно фото товара, то мне нужно чтобы описание было справа от него а не под ним, т.е. вот здесь:



Я сам пробовал разобраться, но у меня никак не получается( я новичек в этом). Кто знает подскажите пожалуйста что и куда нужно прописать.
Заранее благодарен:)
*

nevigen

  • Moderator
  • 10436
  • 863 / 25
  • http://n*****n.com
Re: Отображение материала Joomshoping 3.6.1
« Ответ #11 : 14.09.2012, 09:55:51 »
изменить здесь /components/com_jshopping/templates/default/product/product_default.php
используя вот это
Профессиональные / Бесплатные решения для JoomShopping
Не лечи бесплатно, ибо тот, кто лечится бесплатно, рано или поздно перестает ценить свое здоровье,
а тот, кто лечит бесплатно, рано или поздно перестает ценить результаты своего труда/ (с) Гиппократ?
Не ищите ответов, ищите решение !
*

webwork2012

  • Новичок
  • 6
  • 0 / 0
Re: Отображение материала Joomshoping 3.6.1
« Ответ #12 : 14.09.2012, 10:29:59 »
nevigen спасибо за наводку, но не мог бы ты по конкретней сказать. а то намек "изучай css" не очень то все по полкам то расставляет, базовые вещи в CSS я знаю, а вот более конкретно изучить сейчас к сожалению время не позволяет((
Я понял что там используется несколько таблиц, но какие там нужно менять ячейки и таблицы я не понимаю, я попробовал удалить правую колонку где типа изображения и вставить туда ту что ниже, но у меня вобще все испоганилось и я вернул на место. Я сам модератор был на форумах, понимаю что не охото отвечать на похожие вопросы постоянно, но иногда бывает так что людям реально некогда, постепенно я конечно разберусь, но сейчас я бы был очень рад если бы Вы мне помогли
*

nevigen

  • Moderator
  • 10436
  • 863 / 25
  • http://n*****n.com
Re: Отображение материала Joomshoping 3.6.1
« Ответ #13 : 14.09.2012, 10:54:12 »
Если шаблон дефолтный
вот это
Строки 79-81 (это собственно и есть блок вывода описания)
Код
    <div class="jshop_prod_description">
        <?php print $this->product->description; ?>
    </div>   

Вставить в строку 75 сдвинув остальное вниз

Т.е. должно получится
Код
<?php print $this->_tmp_product_html_after_video;?>
<div class="jshop_prod_description">
        <?php print $this->product->description; ?>
    </div>         
</td>
    </tr>
    </table>
Но там в дефолтном выводятся мини изображения, потому может перед ними встаивть.
В приведеном примере после них.
Либо вообще удалите блок доп-мини изображений если не используете.

Дальше сами. Фантазируйте ;)
Профессиональные / Бесплатные решения для JoomShopping
Не лечи бесплатно, ибо тот, кто лечится бесплатно, рано или поздно перестает ценить свое здоровье,
а тот, кто лечит бесплатно, рано или поздно перестает ценить результаты своего труда/ (с) Гиппократ?
Не ищите ответов, ищите решение !
*

kefla

  • Захожу иногда
  • 87
  • 4 / 0
  • Учусь, учусь, все время учусь, а края не видно...
Re: Отображение материала Joomshoping 3.6.1
« Ответ #14 : 14.09.2012, 21:24:32 »
nevigen спасибо за наводку, но не мог бы ты по конкретней сказать. а то намек "изучай css" не очень то все по полкам то расставляет, базовые вещи в CSS я знаю, а вот более конкретно изучить сейчас к сожалению время не позволяет((
Я понял что там используется несколько таблиц, но какие там нужно менять ячейки и таблицы я не понимаю, я попробовал удалить правую колонку где типа изображения и вставить туда ту что ниже, но у меня вобще все испоганилось и я вернул на место. Я сам модератор был на форумах, понимаю что не охото отвечать на похожие вопросы постоянно, но иногда бывает так что людям реально некогда, постепенно я конечно разберусь, но сейчас я бы был очень рад если бы Вы мне помогли

webwork2012, доброго Вам вечера.
Может .быть помогу :), сам только недавно стал копаться...
Я фантазировал с файлом \components\com_jshopping\templates\default\product\product_default.php
При использовании кода ниже (со строки 113), получается так, как у меня на страничке http://www.папка.com.ua/магазин/папки-регистраторы-с-рычажными-механизмами/item020-папка-регистратор-цветная-70мм-а3-горизонтальная-кармашек-полипропиленовое-покрытие-pp.html
Код
<td class = "jshop_prod_right"> 
<?php if ($this->product->product_is_add_price){?>
<div class="price_prod_qty_list_head"><?php print _JSHOP_PRICE_FOR_QTY?></div>
</tr>
<table class="price_prod_qty_list">
<?php foreach($this->product->product_add_prices as $k=>$add_price){?>
<tr>
<td class="qty_from" <?php if ($add_price->product_quantity_finish==0){?>colspan="3"<?php } ?>>
<?php if ($add_price->product_quantity_finish==0) print _JSHOP_FROM; ?>
<?php print $add_price->product_quantity_start?> <?php print $this->product->product_add_price_unit?>
</td>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_line">
</td>
<?php } ?>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_to">
<?php print $add_price->product_quantity_finish?> <?php print $this->product->product_add_price_unit?>
</td>
<?php } ?>
<td class="qty_price">           
<span id="pricelist_from_<?php print $add_price->product_quantity_start?>"><?php print formatprice($add_price->price)?><?php print $add_price->ext_price?></span> <span class="per_piece">/ <?php print $this->product->product_add_price_unit?></span>
</td>
</tr>
<?php }?>
</table>
<br />
<?php }?>

<?php if ($this->product->product_old_price > 0){?>
<div class="old_price">
<?php print _JSHOP_OLD_PRICE?> <span class="old_price" id="old_price"><?php print formatprice($this->product->product_old_price)?></span>
</div>
<?php }?>

<?php if ($this->product->product_price_default > 0 && $this->config->product_list_show_price_default){?>
<div class="default_price"><?php print _JSHOP_DEFAULT_PRICE;?>: <span id="pricedefault"><?php print formatprice($this->product->product_price_default)?></span>
</div>
<?php }?>       

<?php if ($this->product->_display_price){?>
<div class="prod_price">
<?php print _JSHOP_PRICE?>: <span id="block_price"><?php print formatprice($this->product->getPriceCalculate())?><?php print $this->product->_tmp_var_price_ext;?></span>
</div>
<?php }?>

<?php if ($this->config->show_tax_in_product && $this->product->product_tax > 0){?>
<div class="taxinfo"><?php print productTaxInfo($this->product->product_tax);?>
</div>
<?php }?>

<?php print $this->product->_tmp_var_bottom_price;?>
<?php print $this->_tmp_product_html_before_buttons;?>
<?php if (!$this->hide_buy){?>                         
<div class="prod_qty">
<?php print _JSHOP_QUANTITY?>:&nbsp;
</div>

<div class="prod_qty_input">

<input type = "text" name = "quantity" id = "quantity" onkeyup="reloadPrices();" class = "inputbox" style = "width: 20px" value = "<?php print $this->default_count_product?>" />

</div>

<div class = "buttons">           
<input type = "submit" class = "button" value = "<?php print _JSHOP_ADD_TO_CART?>" onclick="jQuery('#to').val('cart');" />
<?php if ($this->enable_wishlist){?>
<input type = "submit" class = "button" value = "<?php print _JSHOP_ADD_TO_WISHLIST?>" onclick="jQuery('#to').val('wishlist');" />
<?php }?>
<?php print $this->_tmp_product_html_buttons;?>
</div>

<div id = "jshop_image_loading" style = "display:none">
</div>

<div class = "jshop_prod_description">
<?php print $this->product->description; ?>
</div>

<?php if (count($this->attributes)){?>
<div class = "jshop_prod_attributes">
<?php foreach($this->attributes as $attribut){?>
</div>
<div class = "jshop_prod_attr_name">
<?php print $attribut->attr_name?>:
</div>

            <span id='block_attr_sel_<?php print $attribut->attr_id?>'>
            <?php print $attribut->selects?>
            </span>

        <?php }?>
    <?php }?>
<?php }?>
<?php print $this->_tmp_product_html_after_buttons;?>
</td>
Чтобы переместить описательную часть товара, Вам нужно подвигать вот этот div:
Код
<div class="extra_fields">
        <?php $extra_field_group = "";
        foreach($this->product->extra_field as $extra_field){
            if ($extra_field_group!=$extra_field['groupname']){
                $extra_field_group = $extra_field['groupname'];
            ?>
            <div class='extra_fields_group'><?php print $extra_field_group?></div>
            <?php }?>
            <div><?php print $extra_field['name'];?>: <?php print $extra_field['value'];?></div>
        <?php }?>
        </div>

*

Oshmarinmax

  • Новичок
  • 6
  • 0 / 0
Re: Отображение материала Joomshoping 3.6.1
« Ответ #15 : 30.06.2014, 23:23:14 »
 !Подскажите сделал так, нужно было отключить количество товаров, теперь задача стоит перенести вправа от картинки (цена и купить) в одну строку под описание, копаю уже вторые сутки, можете помочь? отблагодарю материально
Код
<?php $product = $this->product?>
<?php include(dirname(__FILE__)."/load.js.php");?>
<div class="jshop productfull">
<form name="product" method="post" action="<?php print $this->action?>" enctype="multipart/form-data" autocomplete="off">
   
    <h1><?php print $this->product->name?><?php if ($this->config->show_product_code){?> <span class="jshop_code_prod">(<?php print _JSHOP_EAN?>: <span id="product_code"><?php print $this->product->getEan();?></span>)</span><?php }?></h1>
    <?php print $this->_tmp_product_html_start;?>
    <?php if ($this->config->display_button_print) print printContent();?>
   
    <?php include(dirname(__FILE__)."/ratingandhits.php");?>
       
    <div class="jshop">
   
        <div class="image_middle">
            <?php print $this->_tmp_product_html_before_image;?>
            <?php if ($product->label_id){?>
                <div class="product_label">
                    <?php if ($product->_label_image){?>
                        <img src="<?php print $product->_label_image?>" alt="<?php print htmlspecialchars($product->_label_name)?>" />
                    <?php }else{?>
                        <span class="label_name"><?php print $product->_label_name;?></span>
                    <?php }?>
                </div>
            <?php }?>
            <?php if (count($this->videos)){?>
                <?php foreach($this->videos as $k=>$video){?>
<?php if ($video->video_code){ ?>
<div style="display:none" class="video_full" id="hide_video_<?php print $k?>"><?php echo $video->video_code?></div>
<?php } else { ?>
<a style="display:none" class="video_full" id="hide_video_<?php print $k?>" href=""></a>
<?php } ?>
                <?php } ?>
            <?php }?>
           
            <span id='list_product_image_middle'>
            <?php if(!count($this->images)){?>
                <img id = "main_image" src = "<?php print $this->image_product_path?>/<?php print $this->noimage?>" alt = "<?php print htmlspecialchars($this->product->name)?>" />
            <?php }?>
            <?php foreach($this->images as $k=>$image){?>
            <a class="lightbox" id="main_image_full_<?php print $image->image_id?>" href="<?php print $this->image_product_path?>/<?php print $image->image_full;?>" <?php if ($k!=0){?>style="display:none"<?php }?>>
                <img id = "main_image_<?php print $image->image_id?>" src = "<?php print $this->image_product_path?>/<?php print $image->image_name;?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" />
            </a>
            <?php }?>
            </span>
            <?php print $this->_tmp_product_html_after_image;?>
           
            <?php if ($this->config->product_show_manufacturer_logo && $this->product->manufacturer_info->manufacturer_logo!=""){?>
            <div class="manufacturer_logo">
                <a href="<?php print SEFLink('index.php?option=com_jshopping&controller=manufacturer&task=view&manufacturer_id='.$this->product->product_manufacturer_id, 2);?>">
                    <img src="<?php print $this->config->image_manufs_live_path."/".$this->product->manufacturer_info->manufacturer_logo?>" alt="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" title="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" border="0" />
                </a>
            </div>
            <?php }?>
        </div>
        <div class="jshop_img_description">
            <?php print $this->_tmp_product_html_before_image_thumb;?>
            <span id='list_product_image_thumb'>
            <?php if ( (count($this->images)>1) || (count($this->videos) && count($this->images)) ) {?>
                <?php foreach($this->images as $k=>$image){?>
                    <img class="jshop_img_thumb" src="<?php print $this->image_product_path?>/<?php print $image->image_thumb?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" onclick="showImage(<?php print $image->image_id?>)" />
                <?php }?>
            <?php }?>
            </span>
            <?php print $this->_tmp_product_html_after_image_thumb;?>
            <?php if (count($this->videos)){?>
                <?php foreach($this->videos as $k=>$video){?>
<?php if ($video->video_code) { ?>
<a href="#" id="video_<?php print $k?>" onclick="showVideoCode(this.id);return false;"><img class="jshop_video_thumb" src="<?php print $this->video_image_preview_path."/"; if ($video->video_preview) print $video->video_preview; else print 'video.gif'?>" alt="video" /></a>
<?php } else { ?>
                    <a href="<?php print $this->video_product_path?>/<?php print $video->video_name?>" id="video_<?php print $k?>" onclick="showVideo(this.id, '<?php print $this->config->video_product_width;?>', '<?php print $this->config->video_product_height;?>'); return false;"><img class="jshop_video_thumb" src="<?php print $this->video_image_preview_path."/"; if ($video->video_preview) print $video->video_preview; else print 'video.gif'?>" alt="video" /></a>
<?php } ?>
                <?php } ?>
            <?php }?>
            <?php print $this->_tmp_product_html_after_video;?>
        </div>
   
    </div>

    <div class="jshop_prod_description">
        <?php print $this->product->description; ?>
    </div>       
    <div style="clear: both;"></div>
    <?php if ($this->product->product_url!=""){?>
   1111111111111111111111111111111111111111111
    <?php }?>

    <?php if ($this->config->product_show_manufacturer && $this->product->manufacturer_info->name!=""){?>
    <div class="manufacturer_name">
        <?php print _JSHOP_MANUFACTURER?>: <?php print $this->product->manufacturer_info->name?>
    </div>
    <?php }?>
   
    <?php if (count($this->attributes)){?>
    <div class = "jshop_prod_attributes">
        <table class = "jshop">
        <?php foreach($this->attributes as $attribut){?>
        <tr>
            <td class="attributes_title">
                <span class="attributes_name"><?php print $attribut->attr_name?>:</span><span class="attributes_description"><?php print $attribut->attr_description;?></span>
            </td>
            <td>
                <span id='block_attr_sel_<?php print $attribut->attr_id?>'>
                <?php print $attribut->selects?>
                </span>
            </td>
        </tr>
        <?php }?>
        </table>
    </div>
    <?php }?>
   
    <?php if (count($this->product->freeattributes)){?>
    <div class="prod_free_attribs">
        <table class="jshop">
        <?php foreach($this->product->freeattributes as $freeattribut){?>
        <tr>
            <td class="name"><span class="freeattribut_name"><?php print $freeattribut->name;?></span> <?php if ($freeattribut->required){?><span>*</span><?php }?><span class="freeattribut_description"><?php print $freeattribut->description;?></span></td>
            <td class="field"><?php print $freeattribut->input_field;?></td>
        </tr>
        <?php }?>
        </table>
        <?php if ($this->product->freeattribrequire) {?>
        <div class="requiredtext">* <?php print _JSHOP_REQUIRED?></div>
        <?php }?>
    </div>
    <?php }?>
   
    <?php if ($this->product->product_is_add_price){?>
    <div class="price_prod_qty_list_head"><?php print _JSHOP_PRICE_FOR_QTY?></div>
    <table class="price_prod_qty_list">
    <?php foreach($this->product->product_add_prices as $k=>$add_price){?>
        <tr>
            <td class="qty_from" <?php if ($add_price->product_quantity_finish==0){?>colspan="3"<?php } ?>>
                <?php if ($add_price->product_quantity_finish==0) print _JSHOP_FROM; ?>
                <?php print $add_price->product_quantity_start?> <?php print $this->product->product_add_price_unit?>
            </td>
            <?php if ($add_price->product_quantity_finish > 0){?>
            <td class="qty_line"> - </td>
            <?php } ?>
            <?php if ($add_price->product_quantity_finish > 0){?>
            <td class="qty_to">
                <?php print $add_price->product_quantity_finish?> <?php print $this->product->product_add_price_unit?>
            </td>
            <?php } ?>
            <td class="qty_price">           
                <span id="pricelist_from_<?php print $add_price->product_quantity_start?>"><?php print formatprice($add_price->price)?><?php print $add_price->ext_price?></span> <span class="per_piece">/ <?php print $this->product->product_add_price_unit?></span>
            </td>
        </tr>
    <?php }?>
    </table>
    <?php }?>
   
    <?php if ($this->product->product_old_price > 0){?>
    <div class="old_price">
        <?php print _JSHOP_OLD_PRICE?> <span class="old_price" id="old_price"><?php print formatprice($this->product->product_old_price)?></span>
    </div>
    <?php }?>
   
    <?php if ($this->product->product_price_default > 0 && $this->config->product_list_show_price_default){?>
        <div class="default_price"><?php print _JSHOP_DEFAULT_PRICE;?>: <span id="pricedefault"><?php print formatprice($this->product->product_price_default)?></span></div>
    <?php }?>       
   
    <?php if ($this->product->_display_price){?>
    <div class="prod_price">
        <?php print _JSHOP_PRICE?>: <span id="block_price"><?php print formatprice($this->product->getPriceCalculate())?><?php print $this->product->_tmp_var_price_ext;?></span>
    </div>
    <?php }?>
    <?php print $this->product->_tmp_var_bottom_price;?>
   
    <?php if ($this->config->show_tax_in_product && $this->product->product_tax > 0){?>
        <span class="taxinfo"><?php print productTaxInfo($this->product->product_tax);?></span>
    <?php }?>
    <?php if ($this->config->show_plus_shipping_in_product){?>
        <span class="plusshippinginfo"><?php print sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);?></span>
    <?php }?>
    <?php if ($this->product->delivery_time != ''){?>
        <div class="deliverytime"><?php print _JSHOP_DELIVERY_TIME?>: <?php print $this->product->delivery_time?></div>
    <?php }?>
    <?php if ($this->config->product_show_weight && $this->product->product_weight > 0){?>
        <div class="productweight"><?php print _JSHOP_WEIGHT?>: <span id="block_weight"><?php print formatweight($this->product->getWeight())?></span></div>
    <?php }?>
   
    <?php if ($this->product->product_basic_price_show){?>
        <div class="prod_base_price"><?php print _JSHOP_BASIC_PRICE?>: <span id="block_basic_price"><?php print formatprice($this->product->product_basic_price_calculate)?></span> / <?php print $this->product->product_basic_price_unit_name;?></div>
    <?php }?>
   
    <?php if (is_array($this->product->extra_field)){?>
        <div class="extra_fields">
        <?php $extra_field_group = "";
        foreach($this->product->extra_field as $extra_field){
            if ($extra_field_group!=$extra_field['groupname']){
                $extra_field_group = $extra_field['groupname'];
            ?>
            <div class='extra_fields_group'><?php print $extra_field_group?></div>
            <?php }?>
            <div><span class="extra_fields_name"><?php print $extra_field['name'];?></span><?php if ($extra_field['description']) {?> <span class="extra_fields_description"><?php print $extra_field['description'];?></span><?php } ?>: <span class="extra_fields_value"><?php print $extra_field['value'];?></span></div>
        <?php }?>
        </div>
    <?php }?>
   
    <?php if ($this->product->vendor_info){?>
        <div class="vendorinfo">
            <?php print _JSHOP_VENDOR?>: <?php print $this->product->vendor_info->shop_name?> (<?php print $this->product->vendor_info->l_name." ".$this->product->vendor_info->f_name;?>),
            (
            <?php if ($this->config->product_show_vendor_detail){?><a href="<?php print $this->product->vendor_info->urlinfo?>"><?php print _JSHOP_ABOUT_VENDOR?></a>,<?php }?>
            <a href="<?php print $this->product->vendor_info->urllistproducts?>"><?php print _JSHOP_VIEW_OTHER_VENDOR_PRODUCTS?></a> )
        </div>
    <?php }?>
   
    <?php if (!$this->config->hide_text_product_not_available){ ?>
        <div class = "not_available" id="not_available"><?php print $this->available?></div>
    <?php }?>
   
    <?php if ($this->config->product_show_qty_stock){?>
        <div class="qty_in_stock"><?php print _JSHOP_QTY_IN_STOCK?>: <span id="product_qty"><?php print sprintQtyInStock($this->product->qty_in_stock);?></span></div>
    <?php }?>
   
    <?php print $this->_tmp_product_html_before_buttons;?>
    <?php if (!$this->hide_buy){?>                         
        <table class="prod_buttons">
        <tr   
            <td class="buttons">           
                <input type="submit" class="button" value="<?php print _JSHOP_ADD_TO_CART?>" onclick="jQuery('#to').val('cart');" />
                <?php if ($this->enable_wishlist){?>
                    <input type="submit" class="button" value="<?php print _JSHOP_ADD_TO_WISHLIST?>" onclick="jQuery('#to').val('wishlist');" />
                <?php }?>
                <?php print $this->_tmp_product_html_buttons;?>
            </td>
            <td id="jshop_image_loading" style="display:none"></td>
        </tr>
        </table>
    <?php }?>
    <?php print $this->_tmp_product_html_after_buttons;?>
   
<input type="hidden" name="to" id='to' value="cart" />
<input type="hidden" name="product_id" id="product_id" value="<?php print $this->product->product_id?>" />
<input type="hidden" name="category_id" id="category_id" value="<?php print $this->category_id?>" />
</form>

<?php print $this->_tmp_product_html_before_demofiles; ?>
<div id="list_product_demofiles"><?php include(dirname(__FILE__)."/demofiles.php");?></div>
<?php
if ($this->config->product_show_button_back){?>
<div class="button_back">
<input type="button" class="button" value="<?php print _JSHOP_BACK;?>" onclick="<?php print $this->product->button_back_js_click;?>" />
</div>
<?php }?>
<?php
    print $this->_tmp_product_html_before_related;
    include(dirname(__FILE__)."/related.php");
    print $this->_tmp_product_html_before_review;
    include(dirname(__FILE__)."/review.php");
?>
<?php print $this->_tmp_product_html_end;?>
</div>
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Отображение товара

Автор Rebarun

Ответов: 2
Просмотров: 583
Последний ответ 24.06.2020, 18:00:33
от Rebarun
Отображение товара в корзине

Автор ev06

Ответов: 12
Просмотров: 1247
Последний ответ 29.04.2020, 06:26:48
от kit2m2
Съедает описание в карточке товара Joomshoping

Автор standerson13

Ответов: 2
Просмотров: 975
Последний ответ 24.04.2018, 21:29:25
от standerson13
подружить purity 3 и js responsive, отображение категорий и товаров

Автор instal

Ответов: 6
Просмотров: 848
Последний ответ 22.11.2017, 18:12:50
от instal
Отображение превью снизу, а описание сбоку изображения товара

Автор serg450453

Ответов: 5
Просмотров: 888
Последний ответ 27.02.2017, 19:45:02
от nevigen