Jump to content

Riva

Members
  • Posts

    50
  • Joined

  • Last visited

Profile Information

  • Location
    Ukraine
  • Activity
    Developer

Recent Profile Visitors

5,188,077 profile views

Riva's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

4

Reputation

  1. PS1.6. When you try to change the quantity of MINUS-PLUS buttons, the price changes normally. But as soon as we change the combination when the quantity changes, the price is considered relative to the default combination. With MINUS-PLUS combinations does not work. What you need to add to product.js and product.tpl so that everything worked as needed?
  2. Это уже сделано, как на картинке показано. Но не сохраняются данные в базу. Внёс в базу ALTER TABLE `ps_feature_value_lang` ADD `value_description` text AFTER `value`; В AdminFeaturesController.php в RenderView 'value_descripton_value' => array( 'title' => $this->l('Value Description'), 'align' => 'center', 'class' => 'fixed-width-xs' ), В AdminFeaturesController.php в RenderForm array( 'type' => 'textarea', 'label' => $this->l('Value Descripton'), 'name' => 'value_descripton', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ) В AdminFeaturesController.php в initFormFeatureValue array( 'type' => 'textarea', 'label' => $this->l('Value Descripton'), 'name' => 'value_descripton', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), В FeatureValue.php /** @var string */ public $value_descripton; В FeatureValue.php в public static $definition 'value_description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'),
  3. Стоит задача создать поле c описанием значения характеристик. Само поле добавил, но данные этого поля не сохраняются. Кто-то решал такую задачу на Prestashop 1.6 ? так
  4. Пробовал кучу разных вариантов никак через if не получается {if isset($manufacturer) && $manufacturer.id_manufacturer == 1} {if isset($product->id_manufacturer) && $product->id_manufacturer == 1 } {if $product->id_manufacturer == 1 || $product->id_manufacturer == 2 || $product->id_manufacturer == 3 } {if $manufacturer->id == 1 || $manufacturer->id == 2 || $manufacturer->id == 3 } {if $product.id_manufacturer == 1 || $product.id_manufacturer == 2 || $product.id_manufacturer == 3 } {if $product_manufacturer->id_manufacturer == 1 || $product_manufacturer->id_manufacturer == 2 || $product_manufacturer->id_manufacturer == 3 } <li> ... </li> {/if}
  5. Спасибо попробую. А есть способ в product-list.tpl через if это сделать?
  6. Как быстро/временно скрыть товары у производителя Попробовал через SQL запрос update `ps_product` set active = 0 where id_manufacturer = 1; Не получилось
  7. {assign var='features' value=Feature::getFeatures($cookie->id_lang)} {if isset($features) && $features} {foreach from=$features item=feature} {if $feature.name == '111'} <li> <a href="" onclick="return false;">{$feature.name}</a> <ul> <li><a href="#">{$feature.value}</a></li> </ul> </li> {/if} {/foreach} {/if} {$feature.value} is not show. How add {$feature.value} ?
  8. How add product features (example 111) with value in top menu ?
×
×
  • Create New...