Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Minik

Members
  • Content Count

    15
  • Joined

  • Last visited

Everything posted by Minik

  1. Yes, it works perfect with no errors and no in_transit email.
  2. It works now, thank you very much. I changed: if (@Mail::Send( (int) $order->id_lang, 'in_transit', Mail::l('Package in transit', (int) $order->id_lang), $templateVars, $customer->email, $customer->firstname.' '.$customer->lastname, null, null, null, null, _PS_MAIL_DIR_, true, (int) $order->id_shop )) { Hook::exec('actionAdminOrdersTrackingNumberUpdate', ['order' => $order, 'customer' => $customer, 'carrier' => $carrier], null, false, true, false, $order->id_shop); Tools::redirectAdmin(static::$currentIndex.'&id_order='.$order->id.'&vieworder&conf=4&token='.$this->token); } else { $this->errors[] = Tools::displayError('An error occurred while sending an email to the customer.'); } To Hook::exec('actionAdminOrdersTrackingNumberUpdate', ['order' => $order, 'customer' => $customer, 'carrier' => $carrier], null, false, true, false, $order->id_shop); Tools::redirectAdmin(static::$currentIndex.'&id_order='.$order->id.'&vieworder&conf=4&token='.$this->token);
  3. I get a 500 server error with that code when i go to Backoffice - Orders
  4. Hello @wakabayashi What exactly would you suggest with the "if (1==1) {}" ? The code looks like this: if (@Mail::Send( (int) $order->id_lang, 'in_transit', Mail::l('Package in transit', (int) $order->id_lang), $templateVars, $customer->email, $customer->firstname.' '.$customer->lastname, null, null, null, null, _PS_MAIL_DIR_, true, (int) $order->id_shop )) {
  5. How do i disable the in_transit email so the customer do not receive the email everytime i insert a trackingnumber for an order? The problem was solved by following @wakabayashi 's suggestion by editing AdminOrdersController.php in /public_html/controllers/admin/. Change: if (@Mail::Send( (int) $order->id_lang, 'in_transit', Mail::l('Package in transit', (int) $order->id_lang), $templateVars, $customer->email, $customer->firstname.' '.$customer->lastname, null, null, null, null, _PS_MAIL_DIR_, true, (int) $order->id_shop )) { Hook::exec('actionAdminOrdersTrackingNumberUpdate', ['order' => $order, 'customer' => $customer, 'carrier' => $carrier], null, false, true, false, $order->id_shop); Tools::redirectAdmin(static::$currentIndex.'&id_order='.$order->id.'&vieworder&conf=4&token='.$this->token); } else { $this->errors[] = Tools::displayError('An error occurred while sending an email to the customer.'); } To Hook::exec('actionAdminOrdersTrackingNumberUpdate', ['order' => $order, 'customer' => $customer, 'carrier' => $carrier], null, false, true, false, $order->id_shop); Tools::redirectAdmin(static::$currentIndex.'&id_order='.$order->id.'&vieworder&conf=4&token='.$this->token);
  6. Thank you all :-) Problem has been solved with @SLiCK_303's suggestion. How do i mark the topic as solved?
  7. Hi @mdekker Have there been found a solution for the problem posted 27th October?
  8. I would like to have the tracking/shipping number in the shipped email, but it does not work with {shipping_number} like it used to do in Prestashop 1.6. Does anyone know what i have to write in the email html file so the number will appear?
  9. I'm having the same problem in Thirty Bees 1.0.3 with the warehouse theme where i can't choose "CMS page" and "Product page" for the left column in the advanced settings for the theme. It looks like the Thirty Bees demo is having the same problem with the default theme.
  10. Yes dublicates loses the attachments but the main problem is that attachments uploaded in "Catalog - Attachments" can't be chosen afterwards in the products, which is a problem if you would like to use the same attachment for several products. The print screen in the top is an example of how it looks when i edit a product and would like to choose an attachment i already have uploaded, then i can't find the attachment.
  11. When i go to backoffice in Thirtybees 1.0.3 and upload an attachment in "Catalog - Attachments", i am not able to find the uploaded attachment when i go to a product and would like to choose the recent uploaded attachment. If i dublicate a product with an attachment, the attachment disappears on the new product. If i try to upload the attachment manually in each product, it works fine. Problem solved 02.01.2018 by following @SLiCK_303's suggestion by replacing the code below in "Classes/Attachment.php" Replace: public static function getAttachments($idLang, $idProduct, $include = true) { return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS( (new DbQuery()) ->select('a.*, al.*') ->from('attachment', 'a') ->leftJoin('attachment_lang', 'al', 'a.`id_attachment` = al.`id_attachment`') ->leftJoin('product_attachment', 'pa', 'pa.`id_attachment` = a.`id_attachment`') ->where('al.`id_lang` = '.(int) $idLang) ->where($include ? 'pa.`id_product` = '.(int) $idProduct : '') ->where('pa.`id_product` IS '.($include ? 'NOT ' : '').'NULL') ); } with: public static function getAttachments($idLang, $idProduct, $include = true) { return Db::getInstance()->executeS(' SELECT * FROM '._DB_PREFIX_.'attachment a LEFT JOIN '._DB_PREFIX_.'attachment_lang al ON (a.id_attachment = al.id_attachment AND al.id_lang = '.(int) $idLang.') WHERE a.id_attachment '.($include ? 'IN' : 'NOT IN').' ( SELECT pa.id_attachment FROM '._DB_PREFIX_.'product_attachment pa WHERE id_product = '.(int) $idProduct.' )' ); }
  12. I’m having a similar error 500 problem when trying to install thirty bees. When clicking “Next” on the “store information” install page, i receive this error: Fatal error: Uncaught Error: Class ‘Validate’ not found in /var/“DOMAINNAME”/install/controllers/http/configure.php:118 Stack trace: #0 /var/www/DOMAINNAME/install/classes/controllerHttp.php(182): InstallControllerHttpConfigure->validate() #1 /var/www/DOMAINNAME/install/trystart.php(34): InstallControllerHttp::execute() #2 /var/www/DOMAINNAME/install/index.php(56): require_once(’/var/www/DOMAINNAME…’) #3 {main} thrown in /var/www/DOMAINNAME/install/controllers/http/configure.php on line 118 Anyone have a solution for the problem?
  13. I'm having a similar error 500 problem when trying to install thirty bees. When clicking "Next" on the "store information" install page, i receive this error: Fatal error: Uncaught Error: Class 'Validate' not found in /var/"DOMAINNAME"/install/controllers/http/configure.php:118 Stack trace: #0 /var/www/DOMAINNAME/install/classes/controllerHttp.php(182): InstallControllerHttpConfigure->validate() #1 /var/www/DOMAINNAME/install/trystart.php(34): InstallControllerHttp::execute() #2 /var/www/DOMAINNAME/install/index.php(56): require_once('/var/www/DOMAINNAME...') #3 {main} thrown in /var/www/DOMAINNAME/install/controllers/http/configure.php on line 118 Anyone have a solution for the problem?
  14. Re: Can't install 1.0.1 - gives 500 and white screen on /install/
×
×
  • Create New...