Sent pdf invoice automatically to my warehouse

  • Posts: 159
  • Thank you received: 2
9 years 8 months ago #168025

-- HikaShop version -- : 2.3.2
-- HikaMarket version -- : 1.4.3
-- Joomla version -- : 3.3.3

Hi,
one of my vendors wants to send a pdf invoice via mail automatically to his warehouse, once the order status has been changed to confirmed. Is that possible?
Thanks
Roger

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 8 months ago #168046

Hi,

I want to say that with some development, mostly anything is possible.

But like that, your requirement can't be done like that in HikaMarket (or HikaShop) without a custom plugin.
The plugin "pdf invoice" just attach his PDF file to confirmation emails ; so if you want to send an email to a specific address with a specific content, it will require a custom plugin.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
9 years 8 months ago #168118

Hi,
if a order has be changed to confirmed I receive a mail to my administrator account. Could I attach a PDF invoice to this mail?
If not, what are my options with a custom plugin and howe much would it cost?
Thanks
Roger

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 8 months ago #168142

Hi,

You can modify the plugin "attachinvoice" in order to authorize new mail names, by replacing this line

if(empty($data->mail_name) || empty($data->data->order_status) || !in_array($data->mail_name,array('order_status_notification','order_creation_notification')) || $data->data->order_status != $confirmed) return;
The plugin attach the PDF in the emails "order_status_notification" and "order_creation_notification", so it does not attach in the HikaMarket emails or in the admin emails.
But by adding the email name in the list, you can change that.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
9 years 7 months ago #170329

Hi Jerome,
where can I find this plugin?
Thanks
Roger

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 7 months ago #170333

Hi,

The plugin "attachinvoice" is also called "Pdf Invoice".
hikashop.com/component/hikashop/product/cid-18.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
9 years 7 months ago #170413

Hi Jerome,
thanks for the link. Just to make sure I got it right...
This Plugin will attach an invoice to the status change mail, but not with HikaMarket.
I need to attach an invoice to the status change mail when a vendor changes the status for an order at HikaMarket frontend manually or automatically if the customer paid via Papypal.
Will this work with the plugin?
Thanks
Roger

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 7 months ago #170426

Hi,

The main goal of the plugin is to attach a PDF invoice to the customers' emails.
But with a little modification, you can change that rule and also attach the PDF to the vendor emails (the code I gave you in a previous message).

About the rule of the payment method, it is also possible but it will also require a modification of the plugin to add the custom rule.

Regards


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.131 seconds
Powered by Kunena Forum