Jump to content


  • Posts

  • Joined

  • Last visited

About zwacklmann

  • Birthday 11/30/1978

zwacklmann's Achievements


Newbie (1/14)



  1. setting the back office language, which is user specific. Thus only changing the default language is not going to do the trick! 1. setting the languages available: back office > tools > languages 2. setting the user specific language: back office > employees
  2. Would be nice if you shared you newly gained knowledge.
  3. I was wondering if it was possible to make Julien Breux' block top horizontal menu display one level of subcategories only and to display those categories in a 100% with block such as in the screenshot. Or does any other module have this feature already?
  4. Booom! Wonderful! Great module. I was wondering, it might be a good idea to display the Product image as per the current filter setting. That is to say e.g. I am filtering the products for color = yellow. Then it would be nice to see the yellow picture of each product displayed. Just the way the color picker works on the product page.
  5. Hi everyone, as for the removal of the compare functionality, you can disable that by setting the "max items in the comparator" in the back office to 0. That'll automatically make the module disappear. back office » preferences » products » max items in the comparator As for the sorting functionality, remove the following code from your theme's category.tpl: {include file="$tpl_dir./product-sort.tpl"} If that does not work (do not forget to delete smarty's cache before testing!!) your theme might call product-sort.tpl from a different location. In that case you can add an empty file named product-sort.tpl to you theme or delete the contents of your themes preexisting product-sort.tpl.
  6. $smallSize.height The Variable is not working in product.tpl. Why is that? In PrestaShop 1.4.1 the base theme is using the following code in the product.tpl to display the thumbnail images of the product. getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" /> I've changes this to getImageLink($product->link_rewrite, $imageIds, 'small')}" alt="{$image.legend|htmlspecialchars}" height="{$smallSize.height}" width="{$smallSize.width}" /> That didn't do the trick though, as the width and height variables are undefined and result in the images to be displayed in 0x0 size in IE.
  7. The blocknewsletter Module by default is not intended to be positioned in the footer. That's why you'll have to make some alternations in the module itself. Inside blocknewsletter/blocknewsletter.php you'll find the following lines of code function hookRightColumn($params) { return $this->hookLeftColumn($params); } replace them with the following: function hookRightColumn($params) { return $this->hookLeftColumn($params); } function hookFooter($params) { return $this->hookLeftColumn($params); } done.
  8. I think I'll stick to my thesis. You have an error in your theme's supplier.tpl. manufacturer.tpl which is working perfectly on your site and it is drawing its content from the exact same source: Presta's core supplier.php. Thus the error must occur on the template level. Try swapping your thmes's manufacturer.tpl for the PrestaShop default.
  9. There still is a slight little problem: The interval for displaying pagination page content is adjusted as described above. But the interval for creating the pagination links is apparently not affected. Resulting in non functional pagination links to show up on the page. Assistance needed! For the time being you problem can be solved removing the pagination call from your theme's manufacturer-list.tpl and supplier-list.tpl. That is this little snippet: {include file=$tpl_dir./pagination.tpl}
  10. Problem solved. Solution posted in another thread. The clue is to set the $n variable in Presta's core supplier.php to a specific value. You could go ahead "find and replace" "$n" with eg "'1000'". But bare in mind that supplier.php is generating the output for supplier.tpl and supplier-list.tpl as well as manufacturer.tpl and manufacturer-list.tpl. So unless you want to change the pagination interval for all of those, "find and replace" is not the way to go.
  11. The output of supplier-list.tpl and manufacturer-list.tpl is both generated in supplier.php. In that file find the following portion of code: $data = call_user_func(array($className, 'get'.$className.'s'), true, intval($cookie->id_lang), true, $p, $n); $imgDir = $objectType == 'supplier' ? _PS_SUPP_IMG_DIR_ : _PS_MANU_IMG_DIR_; foreach ($data AS &$item) $item['image'] = (!file_exists($imgDir.'/'.$item['id_'.$objectType].'-medium.jpg')) ? Language::getIsoById(intval($cookie->id_lang)).'-default' : $item['id_'.$objectType]; $smarty->assign(array( 'pages_nb' => ceil($nbProducts / intval($n)), 'nb'.$className.'s' => $nbProducts, 'mediumSize' => Image::getSize('medium'), $objectType.'s' => $data )); $smarty->display(_PS_THEME_DIR_.$objectType.'-list.tpl'); Now swap all the $n variables for the specific number of manufacturers you want displayed eg 1000: $data = call_user_func(array($className, 'get'.$className.'s'), true, intval($cookie->id_lang), true, $p, '1000'); $imgDir = $objectType == 'supplier' ? _PS_SUPP_IMG_DIR_ : _PS_MANU_IMG_DIR_; foreach ($data AS &$item) $item['image'] = (!file_exists($imgDir.'/'.$item['id_'.$objectType].'-medium.jpg')) ? Language::getIsoById(intval($cookie->id_lang)).'-default' : $item['id_'.$objectType]; $smarty->assign(array( 'pages_nb' => ceil($nbProducts / intval('1000')), 'nb'.$className.'s' => $nbProducts, 'mediumSize' => Image::getSize('medium'), $objectType.'s' => $data )); $smarty->display(_PS_THEME_DIR_.$objectType.'-list.tpl'); ...and you're done.
  12. I suppose you've made changes to your theme's supplier.tpl? Try removing that file from your theme's directory and swop in the original file from the default theme. If that works, compare the code of the two. That should give you a clue as to what went wrong.
  13. Hi everyone, by default the manufacturer-list.tpl ist paginated and uses the general "Products per page" settings I've set in BO>Preferences>Products. However, I would like to display twice as many manufacturer logos on manufacturer-list.tpl than I want to display products on product-list.tpl. So how do I set the number of items per page to a specific value for manufacturer-list.tpl?
  14. That is exactely what I am looking for. Thanks a ton. PrestaRoot/classes/Tools.php
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More