Jump to content
thirty bees forum

yaniv14

Trusted Members
  • Posts

    630
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by yaniv14

  1. Can you try instead of passing $customer variable to smarty to pass the membership, and use that variable instead. /**** CHNYC extra fields ********/ 'voucher_text' => Configuration::get('PS_VOUCHER_TEXT'), 'commodore' => Configuration::get('PS_COMMODORE'), 'associate_member_voucher' => Configuration::get('PS_ASSOCIATE_MEMBER_VOUCHER'), 'regular_member_voucher' => Configuration::get('PS_REGULAR_MEMBER_VOUCHER'), 'voucher_enable' => Configuration::get('PS_VOUCHER_ENABLE'), 'customer' => $customer, 'customer_membership' => $customer->member, /****** end CHNYC Extra Fields *****/
  2. How do you create your modified PDF?
  3. I would probably create a small module instead of doing overrides. If I understand your question than you only need to modify DB table of customer with extra data that later order confirmation email with pdf will do the job based on that value. If thats the case I will create a module with a single hook of `hookActionValidateOrder` which provide in the $params argument everything you need to run your logic. $params will include: order, cart, customer, currency and orderStatus. of course you need to place it first in the modules -> positions -> actionValidateOrder. all payment module on success payment calls `PaymentModule::validateOrder()` which trigger modules `hookActionValidateOrder` before the order_conf email is sent.
  4. in this single example you sent I think changing: 'context' => (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') == 0) ? 1 : ($this->context->shop->getTotalShops() != 1) ? $this->context->shop->getContext() : 1 to 'context' => (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') == 0) ? 1 : (($this->context->shop->getTotalShops() != 1) ? $this->context->shop->getContext() : 1) would do the trick
  5. Can you verify that you have under advanced parameters -> email "html and text"
  6. sorry i forgot to mention, you need to put it between lines 2096-2097. before this line throw new Exception($this->lang('data_not_accepted'), self::STOP_CRITICAL);
  7. Based on the line of the error in PHPMailer.php it seems like its failing when its trying to check/validate your email address in your server (email mx). Can you try different email addresses? preffered gmail. I am talking about the email you set under the module configuration page "Send notification for". btw: you can also log to file the results of phpmailer similar to what you did before. file_put_contents('email_log.txt', json_encode($bad_rcpt)); this will write the file to the root folder of your shop and the file name will be 'email_log.txt' you should see in the file 'to' and 'error'
  8. Yes, I've used v3.4.5 from your post here. Did you try with the basic configuration? can you try to add this code to `sendMessage` function at the beginning. file_put_contents( __DIR__.'/../../log.txt', 'template_vars => '.implode(PHP_EOL, $template_vars).PHP_EOL.'send_to => '.$send_to.PHP_EOL.'email => '.$email.PHP_EOL ); the sendMessage function located at modules/callforprice/controllers/front/AjaxForm.php file at line 68. just add it before this line ``` $mail = Mail::Send( so you will have something like this. public function sendMessage($template_vars, $send_to, $email = false){ file_put_contents( __DIR__.'/../../log.txt', 'template_vars => '.implode(PHP_EOL, $template_vars).PHP_EOL.'send_to => '.$send_to.PHP_EOL.'email => '.$email.PHP_EOL ); $mail = Mail::Send( once you try to submit a new call for price form in product page you will see a new file called `log.txt` inside the module folder. paste the content of the file here.
  9. are you able to send other email from your tb shop? I just installed the module you posted here on my local bleeding edge version of tb 1.7 on PHP 8.3, setup the hooks for the product.tpl and the form submission works fine. I did get an email and a valid confirmation message. I just used the basic configuration of the module. Use global settings for all products, = yes Send notification for = my email, Activate for all products = yes, Show "Call For Price" button = yes
  10. its hard to tell because I am not familiar with the module. I recommend getting the latest available version of the module that suitable for prestashop v1.6. if you are using PHP 8 and the module is compatiable with PHP 8 than you might get lucky. test the module and if you get any errors post the error log and I am sure we will be able to help you fix it.
  11. try to get an error log from your server and post the error log here
  12. try to fix other issues for same table before trying this one
  13. just change private to protected in line 9
  14. just place it after the beginning of the class class Hook extends HookCore { protected static $_hook_modules_cache_exec = null; ..... }
  15. after you installed phpmailer module did you configure the smtp for the module?
  16. After you installed the phpmailer module, did you selected it as email transport?
  17. it looks like you upgrade did not finish correctly. this 'product_attribute_shop.width' column introduced in todays commits and was suppose to be added to your db as part of the upgrade, without the need to go to the db part and do a manual db upgrade. I would suggest to try the upgrade again.
  18. its probably not working because the autoload css files loads before the modules css files. so the original superfish-modified.css has higher priority than your modified version. you will probably need to use some !important declaration or get a better specificy than the origin class/id.
  19. It seems like the module did not modified to comply with recent core commits. for now you can manually update the module. edit this file modules/custompayments/controllers/admin/AdminCustomPayments.php line 429 and change this protected function uploadImage($id, $name, $dir, $ext = false, $width = null, $height = null) { $width = (int) Configuration::get(CustomPayments::IMAGE_WIDTH); $height = (int) Configuration::get(CustomPayments::IMAGE_HEIGHT); return parent::uploadImage($id, $name, $dir, $ext, $width, $height); } to this protected function uploadImage($id, $name, $dir, $ext = false, $width = null, $height = null, $generateImageTypes = []) { $width = (int) Configuration::get(CustomPayments::IMAGE_WIDTH); $height = (int) Configuration::get(CustomPayments::IMAGE_HEIGHT); return parent::uploadImage($id, $name, $dir, $ext, $width, $height, $generateImageTypes); } just to point out that I am not familiar with the custompayment module so I don't know if you will have any other issues.
  20. did you try to set the desire position of each attribute in the back office? based on the code it should works fine. ORDER BY ag.`position` ASC, a.`position` ASC, agl.`name` ASC'; unless you have an override for ProductController "assignAttributesGroups" or Product class "getAttributesGroups"
  21. swiftmailer stopped being maintained since 2021, you should use phpmailer for better future support.
  22. mailalerts module sent order email to admin. make sure you have the correct email address, one per line. and also make sure the module is hooked to actionValidateOrder
  23. I think you will have to override isCleanHtml function in classes/Validate.php just remember that this validation is used in many places beside Product
  24. try removing "ajax_add_to_cart_button" class, because there is a click event bind to this class
  25. I think it will be better to translate in https://crowdin.com/project/thirty-bees so everyone can use this translation. @datakick is crowdin still active?
×
×
  • Create New...