Jump to content

mojtaba6485

Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • First Name
    Mojtaba
  • Last Name
    Baghban

mojtaba6485's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi everybody. Excuse me for my bad English. When I add a limited special price to a product while cache is active, after expire the special price still reduced price show in blocknewproduct, homefeatured and some other modules. while price in product page, block cart and some parts of my site is correct. I think this is a bug of blocknewproduct, homefeatured modules. In my opinion some cached file must recreate when a special price expire. Please chech whether this is a bug or not. I use prestashop 1.6.1.1
  2. Thanks. Now you suppose that you have two special price that have same config for store, currency, country and group. I think the last special price apply.
  3. Thanks for your answer and sorry for my bad english. I add 3 or more special price for a product. now which special price affect to price?
  4. Hi everyone. Excuse me for my bad English. when I have some special price for a product, which one apply to price?
  5. Hi. Excuse me for my bad english. I think in file "blocklayered.php" in function "hookAfterSaveFeatureValue" the line if(empty($seo_url)) $seo_url = Tools::getValue('name_'.(int)$language['id_lang']); must replace by line if(empty($seo_url)) $seo_url = Tools::getValue('value_'.(int)$language['id_lang']); Please accurate it. Thanks.
  6. Hi everybody Excuse me for my bad english. I add two fields multi_value and id_categry to feature table and feature class and feature controller. and put related files to override folder. When I add new feature this added fields work and save to table but when I want edit them new fields do not chane in table. Please help me. Thanks in advance. Feature Class class Feature extends FeatureCore { public $id_category; public $multi_value; /** * @see ObjectModel::$definition */ public static $definition = array( 'table' => 'feature', 'primary' => 'id_feature', 'multilang' => true, 'fields' => array( 'position' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), // Category ID 'id_category' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'multi_value' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true), // Lang fields 'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 128), ) ); } AdminFeatureController class AdminFeaturesController extends AdminFeaturesControllerCore { public function __construct() { $this->table = 'feature'; $this->className = 'Feature'; $this->list_id = 'feature'; $this->identifier = 'id_feature'; $this->lang = true; $this->fields_list = array( 'id_feature' => array( 'title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Name'), 'width' => 'auto', 'filter_key' => 'b!name' ), 'value' => array( 'title' => $this->l('Values'), 'orderby' => false, 'search' => false, 'align' => 'center', 'class' => 'fixed-width-xs' ), 'id_category' => array( 'title' => $this->l('Category ID'), 'align' => 'center', 'class' => 'fixed-width-xs' ), 'multi_value' => array( 'title' => $this->l('Multiple Value'), 'align' => 'center', 'class' => 'fixed-width-xs' ), 'position' => array( 'title' => $this->l('Position'), 'filter_key' => 'a!position', 'align' => 'center', 'class' => 'fixed-width-xs', 'position' => 'position' ) ); $this->bulk_actions = array( 'delete' => array( 'text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?') ) ); AdminController::__construct(); //parent::__construct(); } /** * AdminController::renderForm() override * @see AdminController::renderForm() */ public function renderForm() { $obj = $this->loadObject(true); $selected_categories = array(isset($obj->id_category) ? (int)$obj->id_category : (int)Category::getRootCategory()->id); $this->toolbar_title = $this->l('Add a new feature'); $this->fields_form = array( 'legend' => array( 'title' => $this->l('Feature'), 'icon' => 'icon-info-sign' ), 'input' => array( array( 'type' => 'text', 'label' => $this->l('Name'), 'name' => 'name', 'lang' => true, 'size' => 33, 'hint' => $this->l('Invalid characters:').' <>;=#{}', 'required' => true ), array( 'type' => 'categories', 'label' => $this->l('Associate category'), 'name' => 'id_category', 'tree' => array( 'id' => 'categories-tree', 'selected_categories' => $selected_categories, //'disabled_categories' => null, 'required' => true ) ), array( 'type' => 'switch', 'label' => $this->l('Multiple Value'), 'name' => 'multi_value', 'required' => true, 'is_bool' => true, 'values' => array( array( 'id' => 'active_on', 'value' => 1, 'label' => $this->l('Enabled') ), array( 'id' => 'active_off', 'value' => 0, 'label' => $this->l('Disabled') ) ) ) ) ); if (Shop::isFeatureActive()) { $this->fields_form['input'][] = array( 'type' => 'shop', 'label' => $this->l('Shop association'), 'name' => 'checkBoxShopAsso', ); } $this->fields_form['submit'] = array( 'title' => $this->l('Save'), ); return AdminController::renderForm(); } }
×
×
  • Create New...