Jump to content


  • Posts

  • Joined

  • Last visited

zjean's Achievements


Newbie (1/14)



  1. Hi, sorry for my late reply. When I use the code you show, I get the new price. Say my products price is reduced from €30 -> €15. Now when ?I use $product.price, i see €15. I want to show the old price (€30) too. How to achieve that, because I don't have the propduct object to ask the old price.
  2. Hi all, I am working on a prestashop site, and see that it is possible to show that a product is on a discount, on the product list-page. (product_list.php). It shows me the discounted price. I would like to see the price it originates from also. I have the following code in the foreach of product (copied from the product.tpl) which does not work: {if isset($product.reduction) && $product.reduction} <span class="old_price"> {if !$priceDisplay} {$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {else} {$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if} </span> {/if} The template does not compile correctly: it shows one product in stead of the full page. So it looks like it failes on executing the getPriceWithoutReduct function. Can anyone advise on this?
  3. Hello, I am currently investigating into developing a module for Prestashop and I have studied some examples, and did some small modulework. Every module I saw uses inline html in the php code to display the form in the backend of the store. Does anyone of you have examples of implementing the backend of the module with a template like smarty? Regards, zjean
  4. Thanks for your reply. It doesn't need an interface, it is just a very 'strange' non default option for exactly one user, so it is OK to configure it with code. Can you give me some example, or code hint to do that?
  5. Hello all, When I edit the permissions of a employeegroup in the backend of prestashop, I can only set permission for the modules tab in the backend. It seems not to be possible to set rights to each individual module. I have created a module to show a gallery at the fontpage, and I want one specific user to edit that gallery via this module. But this user may not use every other module in the backend. Is it possible to assign this particular right to a user, or usergroup? TIA
  • Create New...