Jump to content

Chillax86

Members
  • Posts

    25
  • Joined

  • Last visited

Profile Information

  • Location
    Yeovil
  • Activity
    Developer

Recent Profile Visitors

1,995,911 profile views

Chillax86's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I cannot seem to find details for what cookies are used by PrestaShop and for what purpose. Could someone post the details for PS 1.6 & PS 1.7. TBH, I think this should be in the documentation! I know other modules use cookies and I'll have to look into those but I would like to know what the default PrestaShop cookies are and what they are for.
  2. Hi, I would like to know how to grab the 'meta_title' variable from a cms page/controller from within a module. Is there an easy way to do this without modifying the core code. Even if it means grabbing the id of the cms page being displayed and rebuilding the variable from the database as I then want to assign it to a smarty variable. Any help would be appreciated.
  3. I hadn't tried that, I thought I had to code it in as my google searches suggested, thank you for a quick reply, is there a way I can see all the available smarty variables in the .tpl?
  4. I need to display a different stock message on the product page when a product from a certain category has been sold. So I would like to do something like this {if defaultCategoryID == 8} {l s='Sold'} {else} {l s='Currently out of stock'}{/if} I don't think you can grab the default category from an already established smarty variable in Product.tpl correct me if I am wrong, I think I may have to override/extend the ProductCore class. If so how would be the best way to achieve this or is there a better way? I'm using PrestaShop 1.6.1.5
  5. Hello anyone there? Even if you think this is not part of the core code please say something!!!
  6. Does any one know how to easily get the order details, i.e is there an object that loads the order details ready to be used in my script. looking for something like $order = new Order((int)$params['id_order']); It needs to hold product name, quantity, unit price, ex vat prices and incl prices. I can code this myself and get it out of the database but I'd thought I'd check if this is already included in the core programming.
  7. Turns out I just needed to reset the module, don't know why this happened am beginning to think it had something to do with the presta cleaner check & fix
  8. Please help me, the Pay with PayPal option has disappeared and I don't know why. The module is still enabled for all shops.
  9. I was wondering what the mail template .txt files are for?? How are they used?
  10. it's ok just figured it out "_PS_MAIL_DIR_" should be "dirname(__FILE__).'/mails/'"
  11. How do I get this mail function to use a mail template stored in /shop/modules/myModule/mails/gb/ Mail::Send( (int)$order->id_lang, 'template', Mail::l('a subject', (int)$order->id_lang), $data, $this->context->customer->email, $this->context->customer->firstname.' '.$this->context->customer->lastname, null, null, null, null, _PS_MAIL_DIR_, false, (int)$order->id_shop
  12. I can now confirm it works in both locations, which one do you recommend?
  13. No I haven't tried it yet but when I saw the directory structure to the paypal module and the prestashop documentation on overrides it leads you to believe that the first suggestion was right so I thought I'd check. As it is the second suggestion I have another question, to override any of paypal's tpl's do they all belong in shop/themes/myTheme/modules/paypal?
  14. I would like to know how I should override paypal's order-confirmation.tpl. Do I override... shop/modules/paypal/views/templates/front/order-confirmation.tpl in shop/themes/myTheme/modules/paypal/views/templates/front/order-confirmation.tpl or shop/themes/myTheme/modules/paypal/order-confirmation.tpl or am I totally wrong???
×
×
  • Create New...