Новости Joomla

Вышли релизы безопасности Joomla 6.2.2 и Joomla 5.4.12

Релиз безопасности Joomla 6.2.2 и Joomla 5.4.12

Проект Joomla! рад сообщить о выходе релизов безопасности Joomla 6.2.2 (для ветки 6.x) и Joomla 5.4.12 (для ветки 5.4).

👩‍💻 Плагин "Видео для товаров RadicalMart".

👩‍💻 Плагин "Видео для товаров RadicalMart".

Плагин добавляет в RadicalMart поле для размещения видео на страницах товаров. Добавьте ссылки на ролики RuTube или VK Видео и выберите место вывода — видео появится на странице товара без изменения кода шаблона.

Плагин позволяет:
- добавлять к товару несколько видео;
- задавать заголовок и описание блока, в том числе отдельно для каждого товара;
- показывать обложку видео с кнопкой воспроизведения;
- выбирать размер обложки для RuTube и VK Видео;
- Вместо загрузки всех видеоплееров сразу плагин может показывать обложки: плеер загружается после нажатия. Это помогает уменьшить первоначальную нагрузку на страницу. Если для ссылки не удалось сформировать встроенный плеер, она отображается как ссылка на видео.

В настройках поля можно выбрать одну из четырёх позиций:
- По умолчанию — в группе полей товара, вместе с другими характеристиками.
- После заголовка — сразу под названием товара.
- Перед содержимым — перед основным содержимым страницы товара.
- После содержимого — после основного содержимого страницы товара.

Вместе с видео выводятся заданные для блока заголовок и описание. Точное расположение стандартных позиций зависит от шаблона страницы товара.

Видео
RadicalMart - отечественный компонент интернет-магазина для Joomla.
Разработчик плагина - участник нашего сообщества Дмитрий Денисов (@mitriy_bug).

Страница расширения

@joomlafeed

Вышли релизы безопасности Joomla 6.2.1 и Joomla 5.4.11

Релиз безопасности Joomla 6.2.1 и Joomla 5.4.11

Проект Joomla! рад сообщить о выходе Joomla 6.2.1 (релиз безопасности и исправления ошибок для ветки 6.x) и Joomla 5.4.11 (релиз безопасности для ветки 5.4).

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

staskmp

  • Захожу иногда
  • 50
  • 2 / 0
Здравствуйте. Подскажите пожалуйста как реализовать ссылку на товар в списке заказов у клиента в личном кабинете.
Есть блок с названием товара
Код
<div class="name"><?php print $prod->product_name?></div>
Его надо сделать ссылкой на товар. Я пробую так
Код
 <div class="name"><a href="<?php print $prod['href']?>"><?php print $prod->product_name?>   </a></div>
Но страница не грузится при таком коде. Спасибо за ответы.
*

nevigen

  • Moderator
  • 10452
  • 863 / 25
  • http://n*****n.com
в дефолтном варианте нет товаров с списке заказов.
Профессиональные / Бесплатные решения для JoomShopping
Не лечи бесплатно, ибо тот, кто лечится бесплатно, рано или поздно перестает ценить свое здоровье,
а тот, кто лечит бесплатно, рано или поздно перестает ценить результаты своего труда/ (с) Гиппократ?
Не ищите ответов, ищите решение !
*

staskmp

  • Захожу иногда
  • 50
  • 2 / 0
в дефолтном варианте нет товаров с списке заказов.

т.е. ссылку так просто не сделать?
*

nevigen

  • Moderator
  • 10452
  • 863 / 25
  • http://n*****n.com
просто это как ? одной кнопкой ?  - нет
я не смотрел, дефолт
но если вы уже что-то сделали и выводите нейм, то там есть у вас массив с товарами и вы берете нейм, то посомтрите что в масиве через print_r(масив)
и увидите есть ли там поле ссылки или нет.
Профессиональные / Бесплатные решения для JoomShopping
Не лечи бесплатно, ибо тот, кто лечится бесплатно, рано или поздно перестает ценить свое здоровье,
а тот, кто лечит бесплатно, рано или поздно перестает ценить результаты своего труда/ (с) Гиппократ?
Не ищите ответов, ищите решение !
*

staskmp

  • Захожу иногда
  • 50
  • 2 / 0
просто это как ? одной кнопкой ?  - нет
я не смотрел, дефолт
но если вы уже что-то сделали и выводите нейм, то там есть у вас массив с товарами и вы берете нейм, то посомтрите что в масиве через print_r(масив)
и увидите есть ли там поле ссылки или нет.

спасибо за урок) нет поля с ссылкой и что в таком случае делать?
*

dmitry_stas

  • Легенда
  • 13151
  • 1234 / 8
а что там есть? покажите
Тут дарят бакс просто за регистрацию! Успей получить!
Все советы на форуме раздаю бесплатно, то есть даром. Индивидуально бесплатно консультирую только по вопросам стоимости индивидуальных консультаций
*

staskmp

  • Захожу иногда
  • 50
  • 2 / 0
а что там есть? покажите
Код
<?php defined('_JEXEC') or die(); ?>
<?php $order = $this->order;?>
<div class="jshop">
<?php if ($this->config->order_send_pdf_client){?>
<div class="downlod_order_invoice">
    <a target="_blank" href="<?php print $this->config->pdf_orders_live_path."/".$order->pdf_file;?>"><?php print _JSHOP_DOWNLOAD_INVOICE?></a>
</div>
<?php } ?>
<table>
  <tr>
    <td>
      <b><?php print _JSHOP_ORDER_NUMBER ?>:</b> <?php print $order->order_number ?>
    </td>
  </tr>
  <tr>
    <td>
      <b><?php print _JSHOP_ORDER_STATUS ?>:</b> <?php print $order->status_name ?>
    </td>
  </tr>
  <tr>
    <td>
      <b><?php print _JSHOP_ORDER_DATE ?>:</b> <?php print formatdate($order->order_date, 0)?>
    </td>
  </tr>
  <tr>
    <td>
      <b><?php print _JSHOP_PRICE_TOTAL ?>:</b> <?php print formatprice($order->order_total, $order->currency_code); ?>
    </td>
  </tr>
</table>
<br/>
<table width="100%">
<tr>
    <td width="50%" valign="top">
        <table class = "jshop_new">
        <tr>
          <td colspan=2><b><?php print _JSHOP_EMAIL_BILL_TO ?></b></td>
        </tr>
        <?php if ($this->config_fields['firma_name']['display']){?>
        <tr>
          <td><?php print _JSHOP_FIRMA_NAME?>:</td>
          <td><?php print $this->order->firma_name?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['f_name']['display']){?>
        <tr>
          <td width = "40%"><?php print _JSHOP_FULL_NAME?>:</td>
          <td width = "60%"><?php print $this->order->f_name?> <?php print $this->order->l_name?> <?php print $this->order->m_name?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['client_type']['display']){?>
        <tr>
          <td><?php print _JSHOP_CLIENT_TYPE?>:</td>
          <td><?php print $this->order->client_type_name;?></td>
        </tr>
        <?php } ?>       
<?php if ($this->config_fields['firma_code']['display'] && ($this->order->client_type==2 || !$this->config_fields['client_type']['display'])){?>
        <tr>
          <td><?php print _JSHOP_FIRMA_CODE?>:</td>
          <td><?php print $this->order->firma_code?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['tax_number']['display'] && ($this->order->client_type==2 || !$this->config_fields['client_type']['display'])){?>
        <tr>
          <td><?php print _JSHOP_VAT_NUMBER?>:</td>
          <td><?php print $this->order->tax_number?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['birthday']['display']){?>
        <tr>
          <td><?php print _JSHOP_BIRTHDAY?>:</td>
          <td><?php print $this->order->birthday?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['home']['display']){?>
        <tr>
          <td><?php print _JSHOP_HOME?>:</td>
          <td><?php print $this->order->home?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['apartment']['display']){?>
        <tr>
          <td><?php print _JSHOP_APARTMENT?>:</td>
          <td><?php print $this->order->apartment?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['street']['display']){?>
        <tr>
          <td><?php print _JSHOP_STREET_NR?>:</td>
          <td><?php print $this->order->street?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['city']['display']){?>
        <tr>
          <td><?php print _JSHOP_CITY?>:</td>
          <td><?php print $this->order->city?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['state']['display']){?>
        <tr>
          <td><?php print _JSHOP_STATE?>:</td>
          <td><?php print $this->order->state?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['zip']['display']){?>
        <tr>
          <td><?php print _JSHOP_ZIP?>:</td>
          <td><?php print $this->order->zip?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['country']['display']){?>
        <tr>
          <td><?php print _JSHOP_COUNTRY?>:</td>
          <td><?php print $this->order->country?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['phone']['display']){?>
        <tr>
          <td><?php print _JSHOP_TELEFON?>:</td>
          <td><?php print $this->order->phone?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['mobil_phone']['display']){?>
        <tr>
          <td><?php print _JSHOP_MOBIL_PHONE?>:</td>
          <td><?php print $this->order->mobil_phone?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['fax']['display']){?>
        <tr>
          <td><?php print _JSHOP_FAX?>:</td>
          <td><?php print $this->order->fax?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['email']['display']){?>
        <tr>
          <td><?php print _JSHOP_EMAIL?>:</td>
          <td><?php print $this->order->email?></td>
        </tr>
        <?php } ?>
       
        <?php if ($this->config_fields['ext_field_1']['display']){?>
        <tr>
          <td><?php print _JSHOP_EXT_FIELD_1?>:</td>
          <td><?php print $this->order->ext_field_1?></td>
        </tr>
        <?php } ?>
 
<!--      < ?php if ($this->config_fields['ext_field_2']['display']){? >
        <tr>
          <td>< ?php print _JSHOP_EXT_FIELD_2?>:</td>
          <td>< ?php print $this->order->ext_field_2?></td>
        </tr>
        < ?php } ? >
-->
       <!--< ?php if ($this->config_fields['ext_field_3']['display']){? >
-->
        <tr>
<td><?php print _JSHOP_EXT_FIELD_3?>:</td>          <td><?php print  $this->order->ext_field_3?></td>
        </tr>
      <!--< ?php } ?>          -->       
        </table>
    </td>
    <td width="50%" valign="top">
    <?php if ($this->count_filed_delivery >0) {?>
        <table class="jshop_new">
        <tr>
          <td colspan=2><b><?php print _JSHOP_EMAIL_SHIP_TO ?></b></td>
        </tr>
        <?php if ($this->config_fields['d_firma_name']['display']){?>
        <tr>
            <td><?php print _JSHOP_FIRMA_NAME?>:</td>
            <td><?php print $this->order->d_firma_name?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_f_name']['display']){?>
        <tr>
            <td width = "40%"><?php print _JSHOP_FULL_NAME?> </td>
            <td width = "60%"><?php print $this->order->d_f_name?> <?php print $this->order->d_l_name?> <?php print $this->order->d_m_name?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_birthday']['display']){?>
        <tr>
          <td><?php print _JSHOP_BIRTHDAY?>:</td>
          <td><?php print $this->order->d_birthday?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_home']['display']){?>
        <tr>
          <td><?php print _JSHOP_HOME?>:</td>
          <td><?php print $this->order->d_home?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_apartment']['display']){?>
        <tr>
          <td><?php print _JSHOP_APARTMENT?>:</td>
          <td><?php print $this->order->d_apartment?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_street']['display']){?>
        <tr>
            <td><?php print _JSHOP_STREET_NR?>:</td>
            <td><?php print $this->order->d_street?><br></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_city']['display']){?>
        <tr>
            <td><?php print _JSHOP_CITY?>:</td>
            <td><?php print $this->order->d_city?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_state']['display']){?>
        <tr>
            <td><?php print _JSHOP_STATE?>:</td>
            <td><?php print $this->order->d_state?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_zip']['display']){?>
        <tr>
            <td><?php print _JSHOP_ZIP ?>:</td>
            <td><?php print $this->order->d_zip ?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_country']['display']){?>
        <tr>
            <td><?php print _JSHOP_COUNTRY ?>:</td>
            <td><?php print $this->order->d_country ?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_phone']['display']){?>
        <tr>
            <td><?php print _JSHOP_TELEFON ?>:</td>
            <td><?php print $this->order->d_phone ?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_mobil_phone']['display']){?>
        <tr>
          <td><?php print _JSHOP_MOBIL_PHONE?>:</td>
          <td><?php print $this->order->d_mobil_phone?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_fax']['display']){?>
        <tr>
        <td><?php print _JSHOP_FAX ?>:</td>
        <td><?php print $this->order->d_fax ?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_email']['display']){?>
        <tr>
        <td><?php print _JSHOP_EMAIL ?>:</td>
        <td><?php print $this->order->d_email ?></td>
        </tr>
        <?php } ?>                           
        <?php if ($this->config_fields['d_ext_field_1']['display']){?>
        <tr>
          <td><?php print _JSHOP_EXT_FIELD_1?>:</td>
          <td><?php print $this->order->d_ext_field_1?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_ext_field_2']['display']){?>
        <tr>
          <td><?php print _JSHOP_EXT_FIELD_2?>:</td>
          <td><?php print $this->order->d_ext_field_2?></td>
        </tr>
        <?php } ?>
        <?php if ($this->config_fields['d_ext_field_3']['display']){?>
        <tr>
          <td><?php print _JSHOP_EXT_FIELD_3?>:</td>
          <td><?php print $this->order->d_ext_field_3?></td>
        </tr>
        <?php } ?>
      </table>
    <?php } ?> 
    </td>
</tr>
</table>

<br/>
<table class = "jshop cart">
  <tr>
  <th>
      <?php print "Фото";?>
    </th>
 
    <th>
      <?php print _JSHOP_ITEM?>
    </th>
    <?php if ($this->config->show_product_code_in_order){?>
    <th width = "15%">
    <?php print _JSHOP_EAN_PRODUCT?>
    </th>
    <?php }?>
    <th width = "15%">
      <?php print _JSHOP_SINGLEPRICE ?>
    </th>
    <th width = "15%">
      <?php print _JSHOP_NUMBER ?>
    </th>
    <th width = "15%">
      <?php print _JSHOP_PRICE_TOTAL ?>
    </th>
  </tr>
  <?php
  $i=1; $countprod = count($order->items);
  foreach($order->items as $key_id=>$prod){
      $files = unserialize($prod->files);
  ?>
  <tr class="jshop_prod_cart <?php if ($i%2==0) print "even"; else print "odd"?>">
  <th style="background-color: #fff; border: 1px solid #ccc;">
      <img  src="http://touchthebeauty.com.ua/components/com_jshopping/files/img_products/<?php print $prod->thumb_image ?>"/>
    </th>
    <td class="product_name">
        <div class="name"><?php print $prod->product_name?><?php print_r ($prod)?></div>
        <?php if ($prod->manufacturer!=''){?>
        <div class="manufacturer"><?php print _JSHOP_MANUFACTURER?>: <span><?php print $prod->manufacturer?></span></div>
        <?php }?>
        <div>           
            <?php print sprintAtributeInOrder($prod->product_attributes).sprintFreeAtributeInOrder($prod->product_freeattributes);?>
            <?php print $prod->_ext_attribute_html;?>
        </div>
        <?php if (count($files)){?>
            <br/>
            <?php foreach($files as $file){?>
                <div><?php print $file->file_descr?> <a href="<?php print JURI::root()?>index.php?option=com_jshopping&controller=product&task=getfile&oid=<?php print $this->order->order_id?>&id=<?php print $file->id?>&hash=<?php print $this->order->file_hash;?>"><?php print _JSHOP_DOWNLOAD?></a></div>
            <?php }?>
         <?php }?>       
    </td>
    <?php if ($this->config->show_product_code_in_order){?>
    <td>
        <?php print $prod->product_ean?>
    </td>
    <?php } ?>
    <td>
      <?php print formatprice($prod->product_item_price, $order->currency_code)?>
      <?php print $prod->_ext_price_html?>
      <?php if ($this->config->show_tax_product_in_cart && $prod->product_tax>0){?>
            <span class="taxinfo"><?php print productTaxInfo($prod->product_tax, $order->display_price);?></span>
      <?php }?>
      <?php if ($this->config->cart_basic_price_show && $prod->basicprice>0){?>
            <div class="basic_price"><?php print _JSHOP_BASIC_PRICE?>: <span><?php print sprintBasicPrice($prod);?></span></div>
      <?php }?>
    </td>
    <td>
      <?php print formatqty($prod->product_quantity);?><?php print $prod->_qty_unit;?>
    </td>
    <td>
      <?php print formatprice($prod->product_item_price * $prod->product_quantity, $order->currency_code); ?>
      <?php print $prod->_ext_price_total_html?>
      <?php if ($this->config->show_tax_product_in_cart && $prod->product_tax>0){?>
            <span class="taxinfo"><?php print productTaxInfo($prod->product_tax, $order->display_price);?></span>
        <?php }?>
    </td>
  </tr>
  <?php
  $i++;
  }
  ?>
  </table>
  <?php if ($this->config->show_weight_order){?> 
    <div class="weightorder">
        <?php print _JSHOP_WEIGHT_PRODUCTS?>: <span><?php print formatweight($this->order->weight);?></span>
    </div>
  <?php }?>
  <br/>
 
  <table class = "jshop jshop_subtotal">
  <?php if (!$this->hide_subtotal){?>
  <tr>   
    <td class = "name">
      <?php print _JSHOP_SUBTOTAL ?>
    </td>
    <td class = "value">
      <?php print formatprice($order->order_subtotal, $order->currency_code);?><?php print $this->_tmp_ext_subtotal?>
    </td>
  </tr>
  <?php } ?>
  <?php if ($order->order_discount > 0){ ?>
  <tr>
    <td class = "name">
      <?php print _JSHOP_RABATT_VALUE ?>
    </td>
    <td class = "value">
      <?php print formatprice(-$order->order_discount, $order->currency_code);?><?php print $this->_tmp_ext_discount?>
    </td>
  </tr>
  <?php } ?>
  <?php if (!$this->config->without_shipping || $order->order_shipping > 0){?>
  <tr>
    <td class = "name">
         <?php print _JSHOP_SHIPPING_PRICE;?>
    </td>
    <td class = "value">
      <?php print formatprice($order->order_shipping, $order->currency_code);?><?php print $this->_tmp_ext_shipping?>
    </td>
  </tr>
  <?php } ?>
  <?php if (!$this->config->without_shipping && ($order->order_package>0 || $this->config->display_null_package_price)){?>
  <tr>
    <td class="name"><?php print _JSHOP_PACKAGE_PRICE?></td>
    <td class="value"><?php print formatprice($order->order_package, $order->currency_code); ?><?php print $this->_tmp_ext_shipping_package?></td>
  </tr>
 <?php } ?>
  <?php if ($this->order->order_payment > 0){?>
  <tr>
    <td class = "name">
         <?php print $this->order->payment_name;?>
    </td>
    <td class = "value">
      <?php print formatprice($this->order->order_payment, $order->currency_code);?><?php print $this->_tmp_ext_payment?>
    </td>
  </tr>
  <?php } ?> 
  <?php if (!$this->config->hide_tax){ ?>
  <?php foreach($order->order_tax_list as $percent=>$value){?>
  <tr>
    <td class = "name">
      <?php print displayTotalCartTaxName($order->display_price);?>
      <?php if ($this->show_percent_tax) print formattax($percent)."%"?>
    </td>
    <td class = "value">
      <?php print formatprice($value, $order->currency_code);?><?php print $this->_tmp_ext_tax[$percent]?>
    </td>
  </tr>
  <?php }?>
  <?php }?>
  <tr>
    <td class = "name">
      <?php print $this->text_total; ?>
    </td>
    <td class = "value">
      <?php print formatprice($order->order_total, $order->currency_code);?><?php print $this->_tmp_ext_total?>
    </td>
  </tr>
</table>

<br/>
<?php if (!$this->config->without_shipping){?>
    <div><b><?php print _JSHOP_SHIPPING_INFORMATION ?></b></div>
    <div><?php print nl2br($order->shipping_info);?></div>
    <?php if ($order->delivery_time_name){?>
        <div class="delivery_time"><?php echo _JSHOP_DELIVERY_TIME.": ".$order->delivery_time_name?></div>
    <?php }?>
    <?php if ($order->delivery_date_f){?>
        <div class="delivery_date"><?php echo _JSHOP_DELIVERY_DATE.": ".$order->delivery_date_f?></div>
    <?php }?>
    <br/>
<?php }?>
<?php if (!$this->config->without_payment){?>
    <div><b><?php print _JSHOP_PAYMENT_INFORMATION ?></b></div>
    <div><?php print $order->payment_name;?></div>
    <div class="order_payment_params">
        <?php print nl2br($order->payment_params);?>
        <?php print $order->payment_description;?>
    </div>
    <br/>
<?php }?>

<?php if ($order->order_add_info){ ?>
<table class = "jshop_new" style = "margin-top:15px">
<tr>
  <td width = "100%">
    <b><?php print _JSHOP_ORDER_COMMENT ?></b><br />
    <?php print $order->order_add_info ?>
  </td>
</tr>
</table>
<?php } ?>

<table class = "jshop" style = "margin-top:15px">
<tr>
  <td width = "100%">
    <b><?php print _JSHOP_ORDER_HISTORY ?></b><br />
    <table class="order_history">
    <?php foreach($order->history as $history){?>
       <tr>
         <td>
           <?php  print formatdate($history->status_date_added, 0); ?>
         </td>
         <td>
           <?php print $history->status_name ?>
         </td>
         <td>
           <?php print nl2br($history->comments)?>
         </td>
       </tr>
    <?php } ?>
    </table>
  </td>
</tr>
</table>
<br/>
<?php if ($this->allow_cancel){?>
    <a href="<?php print SEFLink('index.php?option=com_jshopping&controller=user&task=cancelorder&order_id='.$order->order_id)?>" style="border: solid 1px;padding: 10px;"><?php print _JSHOP_CANCEL_ORDER?></a><br><br>
<?php }?>
</div>
*

dmitry_stas

  • Легенда
  • 13151
  • 1234 / 8
в массиве что есть покажите :)
Тут дарят бакс просто за регистрацию! Успей получить!
Все советы на форуме раздаю бесплатно, то есть даром. Индивидуально бесплатно консультирую только по вопросам стоимости индивидуальных консультаций
*

staskmp

  • Захожу иногда
  • 50
  • 2 / 0
попробовал так, не помогло

<?php
$cart = JModelLegacy::getInstance('cart', 'jshop');
$cart->load();
$cart->addLinkToProducts(1);
?>

и ссылка такого вида

<div class="name"><a href = "<?php echo $this->liveurlhost . $cart->products[$key_id]['href']; ?>"><?php print $prod->product_name?></a></div>
« Последнее редактирование: 10.12.2017, 21:00:15 от staskmp »
*

staskmp

  • Захожу иногда
  • 50
  • 2 / 0
А нет)) не работает
*

staskmp

  • Захожу иногда
  • 50
  • 2 / 0
вот
Код
stdClass Object ( [order_item_id] => 39070 [order_id] => 6797 [product_id] => 415 [product_ean] => 000179 [product_name] => листовой 1,2мм (КОРЕЯ) [product_quantity] => 1.00 [product_item_price] => 12.8700 [product_tax] => 19.0000 [product_attributes] => Цвет: Бордовый №15 [product_freeattributes] => [attributes] => a:1:{i:13;i:194;} [freeattributes] => a:0:{} [extra_fields] => [files] => a:0:{} [weight] => 0.0133 [thumb_image] => thumb_korea__14_.jpg [manufacturer] => [delivery_times_id] => 0 [vendor_id] => 1 [basicprice] => 0.00 [basicpriceunit] => [params] => [pv_id] => 154799 )
*

dmitry_stas

  • Легенда
  • 13151
  • 1234 / 8
плохо, category_id нету, а для построения ссылки нужен id категории в том числе... придется запрос в базу делать

Код
$product = JTable::getInstance('Product', 'jshop');
$product->load($prod->product_id);
$href = SEFLink('index.php?option=com_jshopping&controller=product&task=view&category_id='.$product->getCategory().'&product_id='.$product->product_id, 1);
Тут дарят бакс просто за регистрацию! Успей получить!
Все советы на форуме раздаю бесплатно, то есть даром. Индивидуально бесплатно консультирую только по вопросам стоимости индивидуальных консультаций
*

staskmp

  • Захожу иногда
  • 50
  • 2 / 0
Спасибо за помощь, почти получилось, вот такая вот ссылка выходит /all/product/view/
Наверное неправильно ссылку делаю
<div class="name"><?php print $prod->product_name?></div><a href = "<?php print $href ?>">-></a>
*

dmitry_stas

  • Легенда
  • 13151
  • 1234 / 8
куда вставили тот код, который я дал? нужно вставлять его внутрь цикла foreach, когда перебираются товары из заказа
Тут дарят бакс просто за регистрацию! Успей получить!
Все советы на форуме раздаю бесплатно, то есть даром. Индивидуально бесплатно консультирую только по вопросам стоимости индивидуальных консультаций
*

staskmp

  • Захожу иногда
  • 50
  • 2 / 0
Спасибо большое, заработало! :D
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Плагин - Товар на складе или Товар под заказ для JoomShopping [Скачать]

Автор kit2m2

Ответов: 58
Просмотров: 46922
Последний ответ 18.05.2023, 12:59:00
от Akeksandr
[Решено] Товар на замену в блоке с ценой

Автор dron

Ответов: 2
Просмотров: 4073
Последний ответ 13.04.2022, 16:09:53
от dron
[Решено] Разные шаблоны для разных статусов заказов

Автор nevigen

Ответов: 4
Просмотров: 6410
Последний ответ 04.04.2022, 19:45:58
от nevigen
В списке товаров вывести названия категорий каждого товара

Автор shop-user

Ответов: 5
Просмотров: 30572
Последний ответ 25.01.2022, 06:05:12
от kit2m2
MSI Юзабилити "Списка заказов" Красим заказ в цвет его статуса

Автор Cerber

Ответов: 22
Просмотров: 13167
Последний ответ 16.12.2021, 13:31:33
от Mister Shadow