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

#   Adding Order from Backend =&gt; Vendor not credited

##

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

Less More

- Posts: 82
- Thank you received: 5
-
-

12 years 5 months ago [\#161092](#161092) by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")  *[Adding Order from Backend =&gt; Vendor not credited](/forum/22-market-bug-report/869146-adding-order-from-backend-vendor-not-credited#161092 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hikamarket 1.4.1,  When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor. I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.  PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?")* was created by *[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 2.5
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hikamarket 1.4.1,

When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor.
I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.

PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg2OTE0Ni1hZGRpbmctb3JkZXItZnJvbS1iYWNrZW5kLXZlbmRvci1ub3QtY3JlZGl0ZWQ/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#161105](#161105) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding Order from Backend =&gt; Vendor not credited](/forum/22-market-bug-report/869146-adding-order-from-backend-vendor-not-credited#161105 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hikamarket 1.4.1,  When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor. I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.  PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?")*

Hi,

When you added the product in the backend, did you selected a vendor ?
Did you set a vendor price ?

Regards,

---

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

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

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

Less More

- Posts: 82
- Thank you received: 5
-
-

12 years 5 months ago [\#161134](#161134) by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")  Replied by *[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")* on topic *[Adding Order from Backend =&gt; Vendor not credited](/forum/22-market-bug-report/869146-adding-order-from-backend-vendor-not-credited#161134 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hikamarket 1.4.1,  When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor. I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.  PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?")*

Yes, vendor is listed in the form as well the vendor price
See herea screenshot:
[ screencast.com/t/a7CzdX5tkH](http://screencast.com/t/a7CzdX5tkH)

and here the result: Vendor is missing:
[ screencast.com/t/AWk7tHVOKH](http://screencast.com/t/AWk7tHVOKH)

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg2OTE0Ni1hZGRpbmctb3JkZXItZnJvbS1iYWNrZW5kLXZlbmRvci1ub3QtY3JlZGl0ZWQ/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#161138](#161138) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding Order from Backend =&gt; Vendor not credited](/forum/22-market-bug-report/869146-adding-order-from-backend-vendor-not-credited#161138 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hikamarket 1.4.1,  When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor. I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.  PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?")*

Hi,

I reproduce the problem in my local website.
In the file "administrator/components/com_hikamarket/classes/order.php" please replace Code:

$query = 'UPDATE ' . hikamarket::table('shop.order_product') . ' SET order_product_parent_id = ' . (int)$product-&gt;order_product_parent_id.', order_product_vendor_price = ' . (float)$product-&gt;order_product_vendor_price . ' WHERE order_product_id = ' . $product-&gt;order_product_id;

By Code:

$query = 'UPDATE ' . hikamarket::table('shop.order_product') . ' SET order_product_parent_id = ' . (int)$product-&gt;order_product_parent_id.', order_product_vendor_price = ' . (float)$product-&gt;order_product_vendor_price; if(!empty($product-&gt;order_product_id)) $query .= ' WHERE order_product_id = ' . $product-&gt;order_product_id; else $query .= ' WHERE order_id = ' . (int)$product-&gt;order_id . ' AND product_id = ' . (int)$product-&gt;product_id . ' AND order_product_price = ' . (float)hikamarket::toFloat($product-&gt;order_product_price);

It will force the update of the order product even if the "order_product_id" is not available.

But I have to notice that your screenshots are a little bit weird.
In the first one, the price is "100" and in the second the price is "200".
About the fields, I see in the first one than a required field is empty, so the HikaShop save should not be possible with the custom field check.

Regards,

---

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

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

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

Less More

- Posts: 82
- Thank you received: 5
-
-

12 years 5 months ago [\#161144](#161144) by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")  Replied by *[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")* on topic *[Adding Order from Backend =&gt; Vendor not credited](/forum/22-market-bug-report/869146-adding-order-from-backend-vendor-not-credited#161144 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hikamarket 1.4.1,  When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor. I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.  PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?")*

Hi,

Thanks. Will test it.
I tried several times with different amounts. Therefore you saw 100 and 200.
But the product id was available.
About the custom fields. I also guess this is an error in hikashop. For this product, no custom fields are defined. If I add it via backend, alsways the custom fields are appearing even they are not needed. It also lets me save without filling in the mandatory fields.
When I add the same product in the frontend, the custom fields are never listed for the product.
**Could you check this also, why it always add these custom fields when adding a product from the backend ?**
Regards

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

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

Less More

- Posts: 82
- Thank you received: 5
-
-

12 years 5 months ago [\#161149](#161149) by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")  Replied by *[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")* on topic *[Adding Order from Backend =&gt; Vendor not credited](/forum/22-market-bug-report/869146-adding-order-from-backend-vendor-not-credited#161149 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hikamarket 1.4.1,  When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor. I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.  PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?")*

Hi again,

Tested it.
Does not work. It now adds it to the hikamarket order but the vendor total price is still 0.-
See here:
[ screencast.com/t/ekaevCk7q](http://screencast.com/t/ekaevCk7q)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg2OTE0Ni1hZGRpbmctb3JkZXItZnJvbS1iYWNrZW5kLXZlbmRvci1ub3QtY3JlZGl0ZWQ/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 4 months ago [\#161159](#161159) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding Order from Backend =&gt; Vendor not credited](/forum/22-market-bug-report/869146-adding-order-from-backend-vendor-not-credited#161159 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hikamarket 1.4.1,  When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor. I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.  PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?")*

Hi,

It could come from the fact that the vendor is prefilled but not passed in the form.
I have to do more investigations about it but here a fix for the class order (same file than previous).
Replacing Code:

$vendor = $vendorObj-&gt;vendor_id . ' - ' . $vendorObj-&gt;vendor_name;

By: Code:

$vendor = $vendorObj-&gt;vendor_id . ' - ' . $vendorObj-&gt;vendor_name . '&lt;input type="hidden" name="data[market][product][order_product_vendor_id]" value="'.$vendorObj-&gt;vendor_id.'"/&gt;';

It will force the information of the order_product_vendor_id and create the new suborder for the right vendor.
With my latest tests, I specified manually the vendor id using a generic product, that's why I didn't see it.

For the custom field problem, I guess you have some "item custom fields" only accessible in the backend or linked to a specific category.
When you edit products in the backend, HikaShop can't know fro where category the product come from (sometime from any category) so all fields are displayed. But removing the "required" could be useful, I think.
I will see to pass this information to the rest of the HikaShop team.

Regards,

---

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

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

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

Less More

- Posts: 82
- Thank you received: 5
-
-

12 years 4 months ago [\#161367](#161367) by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")  Replied by *[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")* on topic *[Adding Order from Backend =&gt; Vendor not credited](/forum/22-market-bug-report/869146-adding-order-from-backend-vendor-not-credited#161367 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hikamarket 1.4.1,  When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor. I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.  PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?")*

Hi,

Thank you. Now it works.
Will this be also added in the next version of hikashop or do I have to add it again after the next upgrade ?

Thanks and br

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg2OTE0Ni1hZGRpbmctb3JkZXItZnJvbS1iYWNrZW5kLXZlbmRvci1ub3QtY3JlZGl0ZWQ/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 4 months ago [\#161377](#161377) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding Order from Backend =&gt; Vendor not credited](/forum/22-market-bug-report/869146-adding-order-from-backend-vendor-not-credited#161377 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hikamarket 1.4.1,  When adding an additional order to an existing order from the backend, the vendor is not credited. No vendor fee is added to the vendor in hikamarket. The product that is added has a percent rate for the vendor. I also see the vendor and his vendor fee when adding the order manually in the backend. However, the listed amount is not credited to the vendor.  PS: In the new fee system I see 3 field. Flat rate, Fixed fee and Percentage. Whats the difference fixed fee and flat rate ?")*

Hi,

It will be integrated in the next HikaMarket release, like all bug fix we made through the forum.

Regards,

---

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

The following user(s) said Thank You: [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg2OTE0Ni1hZGRpbmctb3JkZXItZnJvbS1iYWNrZW5kLXZlbmRvci1ub3QtY3JlZGl0ZWQ/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.096 seconds

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