Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Location
  • Activity

Ramio's Achievements


Newbie (1/14)



  1. I've found where order discount is calculated On cart.php (lines 1525-1551) and on cart_rule.php (line 841-850) For every rule, prestashop calculate % reduction on total order price reading this value from $order_total = $context->cart->getOrderTotal($use_tax, Cart::ONLY_PRODUCTS, $package_products); Now i think i need to decrease this value everytime a % reduction is calculated Someone can help me? Thanks Ramio
  2. Hi... I need to customize my presta... i'm using prestashop My customer asked me to enable multiple Discount on an order For example My user "A" have got 3 discount rule: 50% 10% and 10% on total order My user "A" add to cart some product for a total of 100$ With his 3 discount rule him have to pay only 40,5$ (100$ -50% = 50$ - 10% = 45 - 10% = 40,5$) If I set 3 discount rule normally my prestashop wrong calculation is: (100$ - 50$ -10$ -10$ = 30$) How can i do this? Thanks in advance Ramio
  3. No niente... ancora non ho trovato alcun tema mobile. Alla fine ho convino il mio cliente ad utilizzare il sito responsivo del tema default-bootstrap
  4. ok I solved my problem fixing my lines of codes like this {foreach from=$subcategories item=subcategory} <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}"> <img class="replace-2x" src="{$base_dir}icone/{$subcategory.id_category|escape:'html':'UTF-8'}.jpg" /> </a> {/foreach} I needed this solution because i'll do a multilanguage shop and an orizzontal menù with subcategories icons. Icons have got a watermark on the botton with the name of subcategory so I can't use default subcategory image.
  5. I made this lines of code but nothing {foreach from=$subscategories item=subcategory} <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}"><img src="{$base_dir}icone/{$subcategory.id_category}.jpg" /></a> {/foreach}
  6. Hi... I'm trying to customize default-bootstrap and after i've totally hidden left column, i've to show subcategories image with link in place of category image. I'm editing category.tpl in themes/default-bootstrap after <!-- Category image --> How can I get subcategories information? I need subcategory id and subcategory name. Could somebody help me? thanks
  7. Conosci qualche template, magari free, che disponga di un template mobile da cui potrei studiare la codifica interna per poi crearne uno mio?
  8. Salve a tutti... come da domanda, volevo chiedere se qualcuno conoscesse come modificare il tema mobile di prestashop Volevo modificare la posizione di alcuni moduli solo sul lato mobile e non sul lato desktop. Dal BO ho solo la possibilità di deprecare la visualizzazione sui dispositivi mobili o tablet dei moduli ma non di cambiarne la posizione. Ringrazio in anticipo per le eventuali risposte Cordiali saluti Ramio
  • Create New...