Jump to content

huko

Members
  • Posts

    9
  • Joined

  • Last visited

About huko

  • Birthday 08/15/1982

Contact Methods

Profile Information

  • Location
    La Laguna, Tenerife, Canary Islands, Spain
  • Activity
    Freelancer

Recent Profile Visitors

3,850,036 profile views

huko's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

5

Reputation

  1. Tiwelle, thank you very much for the solution!!! Works perfectly.
  2. I was looking for this solution but for Prestashop 1.7 and there is one small change necessary to make it work. in blockreinsurance.tpl > {$info.text|escape:html:'UTF-8'} for Prestashop 1.7 is like this: {$element.text nofilter} I hope it will help to someone :)
  3. I had the same problem like Boguslaw, blank page after using idea of gonebdg. There was error about rewriting initContent function, so I make some changes and in CategoryController.php I changed original initContent function like this (about line 98): public function initContent() { parent::initContent(); $this->setTemplate(_PS_THEME_DIR_.'category.tpl'); if (!$this->customer_access) return; if (isset($this->context->cookie->id_compare)) $this->context->smarty->assign('compareProducts', CompareProduct::getCompareProducts((int)$this->context->cookie->id_compare)); $this->productSort(); // Product sort must be called before assignProductList() $this->assignScenes(); $this->assignSubcategories(); if ($this->category->id != 1) $this->assignProductList(); $products = $this->category->getProducts($this->context->language->id, (int)$this->p, (int)$this->n, $this->orderBy, $this->orderWay); $combinations = $this->getProductAttributeCombinations($products); $this->context->smarty->assign(array( 'category' => $this->category, 'combinations' => $combinations, 'description_short' => Tools::truncateString($this->category->description), 'products' => (isset($this->cat_products) && $this->cat_products) ? $this->cat_products : null, 'id_category' => (int)$this->category->id, 'id_category_parent' => (int)$this->category->id_parent, 'return_category_name' => Tools::safeOutput($this->category->name), 'path' => Tools::getPath($this->category->id), 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'categorySize' => Image::getSize(ImageType::getFormatedName('category')), 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), 'thumbSceneSize' => Image::getSize(ImageType::getFormatedName('m_scene')), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), 'allow_oosp' => (int)Configuration::get('PS_ORDER_OUT_OF_STOCK'), 'comparator_max_item' => (int)Configuration::get('PS_COMPARATOR_MAX_ITEM'), 'suppliers' => Supplier::getSuppliers() )); } before this code I put code of public function getProductAttributeCombinations($products) what gonebdg mentioned. And in Productlist.tpl this code from gonebdg aswell: {foreach from=$combinations key=k item=comb} {if $k = $product.id_product} <p class="comb_title">{$comb.group_name}</p> <select> {foreach from=$comb item=attr} <option value="{$attr.id_attribute}">{$attr.attribute_name}</option> {/foreach} </select> {/if} {/foreach} Problems: If I look to some category now I see in every article attributes of all articles. It dificult to explain so I'm attaching screenshot. Prestashop saying error about Undefinied index $comb.group_name How can I show only sizes what are available (by quantity in stock) Somebody have some idea how to solve it? The second point is not so important for me but the first one.
  4. Reinstall the modul is not the solution, it's not working for me or I don't do it properly (uninstal and instal it's obviously not enough . Somebody have solution?
  5. I solved directly in MySQL database, I think it's not solution for everybody but for now maybe the only one.
  6. I think, they solved it here http://forge.prestashop.com/browse/PSCFV-5717
  7. And if I want change this text for hundreds of products? I have to do it one by one? I hope not. There is some solutions? Thank for advice.
  8. Zdravím, měl bych jednu záludnost, kterou řeším už přes 2 dny. Po migraci webu www.charadaweb.com na verzi 1.5.2 se změnila většina odkazů na produkty, kategorie apod. Google má většinu starých adres stále zaindexovanou a rád bych ty nejdůležitější přesměroval na nové. Upravil jsem soubor .htaccess a skoro to problém vyřešilo. Přesměruji starou stránku například /58-desigual na novou stránku /155-dresses. Přesměrování funguje, ale pouze v případě, že do prohlížeče zadám adresu bez www. Viz: charadaweb.com/en/58-desigual (přesměrování na /155-dresses proběhne v pořádku) www.charadaweb.com/en/58-desigual (přesměrování na /155-dresses vyhodí stránku nenalezena) V . htaccess mám toto --- to co generuje prestashop --- ... # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again --- a pak tohle ---- RewriteRule en\/58-desigual 155-dresses [R=301,L,NC] Options -Indexes RewriteCond %{HTTP_HOST} ^charadaweb.com [NC] RewriteRule ^(.*)$ http://www.charadaweb.com/$1 [R=301,L] Zkoušel sem před ten rewrite stránky i tohle RewriteCond %{HTTP_HOST} ^www.charadaweb.com$ [OR] RewriteCond %{HTTP_HOST} ^charadaweb.com$ ale nepomohlo to. Setkal jste se někdo s něčím podobným, nemáte radu jak dosáhnout toho, aby to fungovalo i s www? Předem díky za jakkoukoliv radu.
×
×
  • Create New...