[Skip to main content](#vessel-content)

#   Vendor commission invoice

##

- **[DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")**
- [![DavidThor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30643-davidthor "View DavidThor's Profile") Topic Author
- [ Offline](/forum/user/30643-davidthor)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 1 month ago [\#214837](#214837) by [DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")  *[Vendor commission invoice](/forum/23-market-how-to/879398-vendor-commission-invoice#214837 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.5 -- Joomla version -- : 3.4.4  Hi,  I have a set-up with vendor paid directly and where we generate and send the invoice for the commission when the vendor changes order status to 'confirmed'. When selecting vendor and generating invoice, the vendor first receives an 'order creation' email and then an 'order confirmed' email (along the PDF invoice).  Two questions:  Is it possible to have only the 'order confirmed' e-mail going out with the PDF invoice - i.e. not send 'order created' regarding vendor commission.  Is it possible to have the vendors billing address auto-loading when the commission order is generated. Currently, I have to select the customer and then click 'set user address' manually.  Thanks, David")* was created by *[DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")*

-- HikaShop version -- : 2.5.0
-- HikaMarket version -- : 1.6.5
-- Joomla version -- : 3.4.4

Hi,

I have a set-up with vendor paid directly and where we generate and send the invoice for the commission when the vendor changes order status to 'confirmed'. When selecting vendor and generating invoice, the vendor first receives an 'order creation' email and then an 'order confirmed' email (along the PDF invoice).

Two questions:

Is it possible to have only the 'order confirmed' e-mail going out with the PDF invoice - i.e. not send 'order created' regarding vendor commission.

Is it possible to have the vendors billing address auto-loading when the commission order is generated. Currently, I have to select the customer and then click 'set user address' manually.

Thanks,
David

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc5Mzk4LXZlbmRvci1jb21taXNzaW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#214842](#214842) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor commission invoice](/forum/23-market-how-to/879398-vendor-commission-invoice#214842 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.5 -- Joomla version -- : 3.4.4  Hi,  I have a set-up with vendor paid directly and where we generate and send the invoice for the commission when the vendor changes order status to 'confirmed'. When selecting vendor and generating invoice, the vendor first receives an 'order creation' email and then an 'order confirmed' email (along the PDF invoice).  Two questions:  Is it possible to have only the 'order confirmed' e-mail going out with the PDF invoice - i.e. not send 'order created' regarding vendor commission.  Is it possible to have the vendors billing address auto-loading when the commission order is generated. Currently, I have to select the customer and then click 'set user address' manually.  Thanks, David")*

Hi,

1/ In the HikaMarket configuration you have a setting for that, it is called "Order notification status filter".
[ www.hikashop.com/support/documentation/1...ml#config\_main\_email](http://www.hikashop.com/support/documentation/143-hikamarket-configuration.html#config_main_email)
There you can select all order status which will send an email to the vendors. If the field is empty, all statuses will be used.

2/ When the vendor is paid directly, the "commission order" generated is a HikaShop "sale" order.
In that case, HikaMarket set the "order_billing_address_id" with the address of the vendor, thanks to that line (in the HikaMarket vendor class) Code:

$order-&gt;order_billing_address_id = $this-&gt;getAddressId($vendor);

That function should return an address ID which corresponds to the vendor address (regarding his vendor settings).
In your case, it looks like you want to link that to the vendor administrator default address and not to the address configured for the vendor ; I am right ?

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc5Mzk4LXZlbmRvci1jb21taXNzaW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")**
- [![DavidThor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30643-davidthor "View DavidThor's Profile") Topic Author
- [ Offline](/forum/user/30643-davidthor)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 1 month ago [\#214873](#214873) by [DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")  Replied by *[DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")* on topic *[Vendor commission invoice](/forum/23-market-how-to/879398-vendor-commission-invoice#214873 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.5 -- Joomla version -- : 3.4.4  Hi,  I have a set-up with vendor paid directly and where we generate and send the invoice for the commission when the vendor changes order status to 'confirmed'. When selecting vendor and generating invoice, the vendor first receives an 'order creation' email and then an 'order confirmed' email (along the PDF invoice).  Two questions:  Is it possible to have only the 'order confirmed' e-mail going out with the PDF invoice - i.e. not send 'order created' regarding vendor commission.  Is it possible to have the vendors billing address auto-loading when the commission order is generated. Currently, I have to select the customer and then click 'set user address' manually.  Thanks, David")*

Hi again,

1) The ideal method would be to have different 'Order notification status filter' for normal orders and commission 'orders'.

2) For the address - no address is added in the process at all (see screenshot). And I'm looking for the vendor address according to the vendor setting and not the administrator default address. To generate the address, I have to click customer, reselect the same customer, and and set 'Set user addresses' to 'Yes'.

Regards,
David

- [ ![generate&#95;commission&#95;invoice.png](/forum/attachment/26593) ](/forum/attachment/26593 "...on&#95;invoice.png") [ ](/forum/attachment/26593?download=1 "...on&#95;invoice.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc5Mzk4LXZlbmRvci1jb21taXNzaW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#214879](#214879) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor commission invoice](/forum/23-market-how-to/879398-vendor-commission-invoice#214879 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.5 -- Joomla version -- : 3.4.4  Hi,  I have a set-up with vendor paid directly and where we generate and send the invoice for the commission when the vendor changes order status to 'confirmed'. When selecting vendor and generating invoice, the vendor first receives an 'order creation' email and then an 'order confirmed' email (along the PDF invoice).  Two questions:  Is it possible to have only the 'order confirmed' e-mail going out with the PDF invoice - i.e. not send 'order created' regarding vendor commission.  Is it possible to have the vendors billing address auto-loading when the commission order is generated. Currently, I have to select the customer and then click 'set user address' manually.  Thanks, David")*

Hi,

1/ But.. The commission order is not a "subsale" or something attached to the vendor.
The setting "order notification status filter" is just for the vendor notification.
I'm afraid that I don't understand your request.

2/ If you select the same user and check "set user addresses" ; you are using the vendor adminsitrator default address and not the vendor address.
The vendor address that you can find for example, in the backend, under the "description" :
[ www.hikashop.com/support/documentation/1...ket-vendor-form.html](http://www.hikashop.com/support/documentation/149-hikamarket-vendor-form.html)

I'll perform some tests in my side but please provide me details which will show me that your configuration is right according to what you want to do.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc5Mzk4LXZlbmRvci1jb21taXNzaW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")**
- [![DavidThor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30643-davidthor "View DavidThor's Profile") Topic Author
- [ Offline](/forum/user/30643-davidthor)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 1 month ago [\#214914](#214914) by [DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")  Replied by *[DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")* on topic *[Vendor commission invoice](/forum/23-market-how-to/879398-vendor-commission-invoice#214914 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.5 -- Joomla version -- : 3.4.4  Hi,  I have a set-up with vendor paid directly and where we generate and send the invoice for the commission when the vendor changes order status to 'confirmed'. When selecting vendor and generating invoice, the vendor first receives an 'order creation' email and then an 'order confirmed' email (along the PDF invoice).  Two questions:  Is it possible to have only the 'order confirmed' e-mail going out with the PDF invoice - i.e. not send 'order created' regarding vendor commission.  Is it possible to have the vendors billing address auto-loading when the commission order is generated. Currently, I have to select the customer and then click 'set user address' manually.  Thanks, David")*

Hi,

With the current setup, vendor address and vendor administrator address are the same (as I can see in the vendor page and the user page).

The issue is that neither address is added as you can see in the previous screenshot. So, the choice is either adding the vendor address manually in the Billing Address fields or re-selecting the customer and setting Set User Address to yes.

Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc5Mzk4LXZlbmRvci1jb21taXNzaW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#214954](#214954) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor commission invoice](/forum/23-market-how-to/879398-vendor-commission-invoice#214954 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.5 -- Joomla version -- : 3.4.4  Hi,  I have a set-up with vendor paid directly and where we generate and send the invoice for the commission when the vendor changes order status to 'confirmed'. When selecting vendor and generating invoice, the vendor first receives an 'order creation' email and then an 'order confirmed' email (along the PDF invoice).  Two questions:  Is it possible to have only the 'order confirmed' e-mail going out with the PDF invoice - i.e. not send 'order created' regarding vendor commission.  Is it possible to have the vendors billing address auto-loading when the commission order is generated. Currently, I have to select the customer and then click 'set user address' manually.  Thanks, David")*

Hi,

Please edit the file "administrator/components/com_hikamarket/classes/vendor.php" and replace Code:

if(empty($status)) { $addressClass = hikamarket::get('shop.class.address'); $status = $addressClass-&gt;save($address); }

By Code:

if(empty($status)) { $address-&gt;address_user_id = (int)$vendor-&gt;vendor_admin_id; $addressClass = hikamarket::get('shop.class.address'); $status = $addressClass-&gt;save($address, 1); }

It will force the "address_user_id" in the address object and also force the save by avoiding some HikaShop checks.

Regards,

---

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

The following user(s) said Thank You: [DavidThor](/forum/user/30643-davidthor "View DavidThor's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc5Mzk4LXZlbmRvci1jb21taXNzaW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.179 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
