Jump to content

saphire

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Location
    portugal
  • Activity
    Freelancer

saphire's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Hi, don't know how make it work. Plese help Thanks
  2. Hi, can someone help me configure the default display order of products differently in each language? Example : English> products ordered by default Price: lowest first. French > Products ordered by default Price: highest first In BO as the option to define the default order but applies to all store and languages. Thank you very much
  3. Thanks to point the direction. I will work around.
  4. On BO exist the option to define the default order of products on all store Preferences > Products What I need is have a order (ASC or DESC) on products on one especific language Geral example english is ok whith the order defined on BO (PRICE = ASC) but I need that products in French have the order (PRICE = DESC).
  5. I experienced change in product-sort.tpl Adding by language for each block {if $lang_iso == en} <option value="{$orderbydefault|escape:'html':'UTF-8'}:{$orderwaydefault|escape:'html':'UTF-8'}" {if $orderby eq $orderbydefault}selected="selected"{/if}>{l s='Sort by'}</option> ... {/if} {if $lang_iso == fr} <option value="{$orderbydefault|escape:'html':'UTF-8'}:{$orderwaydefaultb|escape:'html':'UTF-8'}" {if $orderby eq $orderbydefaultb}selected="selected"{/if}>{l s='Sort by'}</option> {/if} and edited Frontcontroller.php $stock_management = Configuration::get('PS_STOCK_MANAGEMENT') ? true : false; // no display quantity order if stock management disabled $order_by_values = array(0 => 'name', 1 => 'price', 2 => 'date_add', 3 => 'date_upd', 4 => 'position', 5 => 'manufacturer_name', 6 => 'quantity', 7 => 'reference'); $order_way_values = array(0 => 'asc', 1 => 'desc'); $this->orderBy = Tools::strtolower(Tools::getValue('orderby', $order_by_values[(int)Configuration::get('PS_PRODUCTS_ORDER_BY')])); $this->orderWay = Tools::strtolower(Tools::getValue('orderway', $order_way_values[(int)Configuration::get('PS_PRODUCTS_ORDER_WAY')])); $this->orderWay = Tools::strtolower(Tools::getValue('orderway', $order_way_valuesb[(int)Configuration::get('PS_PRODUCTS_ORDER_WAYB')])); if (!in_array($this->orderBy, $order_by_values)) $this->orderBy = $order_by_values[0]; if (!in_array($this->orderWay, $order_way_values)) $this->orderWay = $order_way_values[0]; if (!in_array($this->orderWay, $order_way_valuesb)) $this->orderWay = $order_way_valuesb[0]; $this->context->smarty->assign(array( 'orderby' => $this->orderBy, 'orderway' => $this->orderWay, 'orderbydefault' => $order_by_values[(int)Configuration::get('PS_PRODUCTS_ORDER_BY')], 'orderwayposition' => $order_way_values[(int)Configuration::get('PS_PRODUCTS_ORDER_WAY')], // Deprecated: orderwayposition 'orderwaydefault' => $order_way_values[(int)Configuration::get('PS_PRODUCTS_ORDER_WAY')], 'orderwaydefaultb' => $order_way_valuesb[(int)Configuration::get('PS_PRODUCTS_ORDER_WAYB')], 'stock_management' => (int)$stock_management)); } In db duplicate the PS_PRODUCTS_ORDER_WAY to PS_PRODUCTS_ORDER_WAYB One with value 0 = ASC other Value 1= DESC But not happens. The default order configured on BO remain. Sorry but I'm not a programmer . I try to find out
  6. Hello, does anyone know how to set a default order of products depending on the language? Example: EN language default view of products sort by price ASC FR language default view of products sort by price DESC Thank you very much
×
×
  • Create New...