Jump to content
thirty bees forum

yaniv14

Members
  • Posts

    580
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by yaniv14

  1. The error probably caused because of regex expression that your php version unable to interpret. If you are on php version 7.3 or above, try to downgrade to php 7.2 just to see if the error resolved.
  2. Make sure your override is really not being used. rename or remove the file override/classes/dispatcher.php completely from the override folder, and delete file cache/class_index.php and then check again.
  3. Based on the screen shot it might be 2 things. you installed a ps 1.7 version of that module (the filename is font17.js?) the js file from the module is looking for some variable/object named prestashop.
  4. Just rename this file "override/classes/pdf/HTMLTemplateInvoice.php" to "override/classes/pdf/HTMLTemplateInvoice.php.bak" and delete file "cache/class_index.php" and you should be fine.
  5. This has got nothing to do with thirty bees. This error is caused by an override you did for classes/pdf/HTMLTemplateInvoice.php. Maybe you used to have this module "gwadvancedinvoice" that came with some lib named "QRCodeLib" and this module did the override for you and now you are not using this module anymore?
  6. yaniv14

    AWIN integration

    Adding currency code to custom code won't do the trick for you. This section only helps you if you need to add javascript code, like the script you have from AWIN. what you need to do is to add an override. your need to create a new file inside override/controllers/front folder and name that file OrderConfirmationController.php the content of the file should be something like <?php class OrderConfirmationController extends OrderConfirmationControllerCore { public function initContent() { $idCart = (int) Tools::getValue('id_cart'); $idOrder = Order::getOrderByCartId($idCart); $order = new Order($idOrder); $currency = new Currency($order->id_currency); $iso_code = $currency->iso_code; $cart_rules = $order->getCartRules(); $cart_rules_ids = []; foreach ($cart_rules as $cart_rule) { $cart_rules_ids[] = $cart_rule->id_cart_rule; } $cart_rules_ids_str = implode(',', $cart_rules_ids); Media::AddJsDef( [ 'iso_code' => $iso_code, 'cart_rules_ids' => $cart_rules_ids_str, ] ); $this->context->smarty->assign( [ 'iso_code' => $iso_code, 'cart_rules_ids' => $cart_rules_ids_str, ] ); return parent::initContent(); } } this is not tested and also cart_rules_ids is being passed as a comma separated ids, and I am not sure this is correct with AWIN because I am not familiar with it. also in order for the override to work you will need to delete "cache/class_index.php" file. hopes it gives you some direction where to start.
  7. yaniv14

    AWIN integration

    this line probably wont work: AWIN.Tracking.Sale.parts = DEFAULT: total_paid_tax_incl; you can try: AWIN.Tracking.Sale.parts = `DEFAULT: ${total_paid_tax_incl}`; also this line should not be inside {literal} tag and it should be like that. <img src="https://www.awin1.com/sread.img?tt=ns&tv=2&merchant=00000&amount={$order->total_paid_tax_incl}&cr={#isoCodeNum#}&ref={$order->id_order}&parts=DEFAULT:{$order->total_paid_tax_incl}&vc={#getOrderedCartRulesIds#}&ch=aw&testmode=0" border="0" width="0" height="0"> some variables as you can see are not available without overriding the controller so you need to create your override and add them like for currency iso code you can do something like $currency = new Currency($order->id_currency); $iso_core = $currency->iso_code;
  8. yaniv14

    AWIN integration

    Hi, You cannot use php code like you put. Smarty has {php} tag for that, but I think its deprecated and anyway its not recommended. What you have in your code is javascript and you should use only available javascript variables that are coming from the controller (server side). if you look at this you will see all variables that are injected to your template from the controller. So you can use it like that: AWIN.Tracking.Sale.amount = total_paid_tax_incl; if you need additional data that is not presented by the controller you can create your own override of the controller initContent() function. also keep in mind that this controller template will only loads if payment module configure proper usage of payment return and/or redirect success payment to order-confirmation page. Good luck
  9. Maybe you can try hold CTRL while clicking on save button on each section. This will submit the request in a new tab and keep the current tab open, so basically you can keep on clicking all the other sections.
  10. Go to modules -> positions and select displayFooter and see all modules that hooked to the footer.
  11. https://github.com/thirtybees/paypal/commit/781f3ad363df3d1c4968c32d4a73cf9b9bca25d7
  12. I believe you are mistaken. if I remember correctly even the original uploaded image is being recreated. So you will never really have the original uploaded file. only a modified lowered quality image.
  13. Try using ImageMagick module by Thirtybees, it should work better than build in php gd. p.s. you need to make sure that imagemagick is installed on your server.
  14. You can add it to header.tpl or footer.tpl depends if you want it before closing head or body tags. in case your script has curly braces "{ ... }" like the async one you posted, than you should wrap it inside literal tag. e.g.: {literal} your script {/literal} Good luck. p.s. I believe that @SLiCK_303 suggestion would work as well, but I never tested that feature so I can't tell.
  15. If you are on Apache try to regenerate htaccess. probably saving again in seo & url page will do the job. otherwise you probably has some cache on your computer.
  16. try: {if $smarty.get.id_cms_category} {if in_array($smarty.get.id_cms_category, array(2))} {$content|escape:nofilter} {/if} {/if}
  17. It is normal tb/ps behavior because orders are tied to carrier_id and if you change carrier info (like tracking link) and want to look at old order than you can get the carrier info from that time. I really ate this behavior because I believe that the only thing matters in orders are the shipping price and this part already being saved in the order table.
  18. I dont know how the core updater code will work when doing those updates. But in general you shouldn't have any issue doing those changes in the DB. No data will be damaged or lost if the process will finished as it should.
  19. If you are on a shared host and using Apache webserver, try to disable mod_security.
  20. yaniv14

    Welcome Email

    You should look inside the social login module folder for a "mails" folder.
  21. I guess in your sample something like this will work: https://www3.royalmail.com/track-your-item#/tracking-results/@ @toplakd I am not sure about that. if I remember correctly the code is based on string replace from carrier->url. which mean that nothing will print if no carrier->url set
  22. In order for it to work you need to setup the tracking url in the carrier settings.
  23. On older version of TB there was a bug on module translations.
  24. Try to look for a pattern related to the price of the products that fails. Maybe price with decimal or not. Maybe price that with added tax comes to floating numbers. Its hard to tell without examining the module, but I guess this error comes from the payment gateway api and not from the module code.
  25. yaniv14

    address update

    Each column is a different module. Information = Block CMS My account = Block my account footer Store info = Block contact infos
×
×
  • Create New...