Issue with fee payments to site

  • Posts: 205
  • Thank you received: 12
3 years 9 months ago #320627

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.2.30

Hello

Suddenly we are dealing with a strange situation that appeared. It was working pretty fine before.

We have a multivendor store set, that the vendor is paid directly.

When a customer purchases a product from a vendor, an order is created and we can see in HikaMarket / Vendors that this vendor ows a fee.

We enter the vendor's account to "Generate invoice" for this fee.

This invoice is created and appears in...

1. Backend / vendor's statistics (tab invoices)
2. Frontend / Vendor Control Panel / Orders / (Payments button)

so the invoice exists!

This invoive does not appear in...

1. Backend / Orders / Orders (and we can not manage it)
2. Frontend / User Control Panel / Orders (the vendor can not pay the fees)

Please advise!

Last edit: 3 years 9 months ago by liaskas.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 9 months ago #320638

Hello,

What you describe let me think that your vendor was not paid directly since the "invoice" is displayed in the vendor control panel.
The vendor "payments" list the payments that the vendor received, not the invoice he need to pay.
So, it would mean that the order have been paid to your store or a bug when generating the invoice.

Would it be possible to have more details about your HIkaMarket setting and what you got before validating the generation of the invoice for the vendor ?

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: 205
  • Thank you received: 12
3 years 9 months ago #320643

Thank you for your gentle reply Jerome!
Unfortunately i do not know which part or parts of the HikaMarket settings are needed. I am sending the admin login credentials through your contact form, so that you can see what you want, or please tell me which part of the HikaMarket settings is required so that i can send you screenshots.

Thank you for your help.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 9 months ago #320666

Hello,

We need details about the "market mode" :
www.hikashop.com/support/documentation/1...ml#config_market_tax

Credentials can be useful to access to your website but without knowledge regarding the vendor, the generated invoice, etc.
We need to know first where we can take a look before connect to your backend.

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: 205
  • Thank you received: 12
3 years 9 months ago #320675

Thank you for clarifying.

Market mode: Vendor paid directly
Vendor price with tax: NO
Apply fees on shipping: NO
Vendor payment content: Orders

Hope these are the desired info.

Thank you

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 9 months ago #320686

Hello,

Credentials can be useful to access to your website but without knowledge regarding the vendor, the generated invoice, etc.
We need to know first where we can take a look before connect to your backend.

Can you please provide the elements which allow us to take a look at your website and see directly the problem you have for one vendor and one invoice ?

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: 205
  • Thank you received: 12
3 years 9 months ago #320690

Thank you for your reply Jerome...

i have sent the following access details by mail:

1. Frontend Vendor
2. Frontend Customer
3. Backend Credentials:

Thank you.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 9 months ago #320702

Hello,

We could see in your HikaShop orders that "vendorpayment" has been created instead of "orders" ; thus the entry is considered as a payment from the store to the vendor even if the price value is negative.
Normally, in such condition, the negative price is converted into a positive one and an "order" is generated, so the vendor can pay it to the store.

Would it be possible to know how you generated the invoice ?
We need to know the exact steps and the exact screens to understand in which part of the code the issue is.

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: 205
  • Thank you received: 12
3 years 9 months ago #320728

Thank you for your reply Jerome.

So...

Vendor has set his shop up and created his product.

Customer orders the product (payment method is Bank transfer).

At this point, this shows at the Backend for this Vendor:



So the Vendor owns 0,8 $ to the site. The vendor at the frontend can see the following when he visits the VENDOR CONTROL PANEL.


and this is what the vendor sees at his USER CONTROL PANEL


Now the vendor receives payment from customer to his bank account and confirms payment. So the site will create the invoice for the commission that the vendor has to pay to the site. So we go to HikaMarket / Vendors, open the vendor account and we click on Generate Invoice at the top left.


This is the page we see in backend after we click on create invoice:


And this is what we see when we click again on generate invoice:


Now the invoice has been created and normally the vendor should be able to see it in USER CONTROL PANEL / Orders.
(Still no order shows here even if the invoice has been created)


At the backend, the invoice we created credited the vendor, so now the vendor owns nothing to the site. But the site was not paid. The vendor can't see the invoice to pay!


Thank you

Last edit: 3 years 9 months ago by liaskas.
The following user(s) said Thank You: Jerome

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 9 months ago #320784

Hello,

In the file "administrator/components/com_hikamarket/classes/vendor.php" can you please replace the line

$pay_total += hikamarket::toFloat( (int)$t->order_transaction_price );
By
$pay_total += hikamarket::toFloat( $t->order_transaction_price );
It should fix your issue which do not detect the used mode based on the total of the orders.
Your tests were made with orders below 1$ thus, it generated that unwanted side effect.

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.
The following user(s) said Thank You: liaskas

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

  • Posts: 205
  • Thank you received: 12
3 years 9 months ago #320785

Thank you for your help Jerome!

You are right... it was because the fee was lower than 1. Thank you again!

Have not tested the code modification but i will tomorrow.

Regards.

The following user(s) said Thank You: Jerome

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

  • Posts: 205
  • Thank you received: 12
3 years 9 months ago #321242

Hello again...

following this ticket, we have discovered another issue related to fees that the site has to receive vrom vendors for each sale they make.

This issue is related to payment confirmation.

Here is the situation...

Vendor sells product, he gets paid from the customer.

Case 1
Vendor has not yet changed order status through his vendor control panel
In the backend we see the following:


The vendor shows in the "vendors with unpaid orders" list and the site is able to generate invoice for the fees that the vendor has to pay.

Case 2
Vendor has changed the status of the order to "confirmed" through his vendor control panel
In the backend we see the following:

The vendor does not show in the "vendors with unpaid orders" list and the site is NOT able to generate invoice for the fees that the vendor has to pay.

So...
when the vendor sets an order as confirmed... he can not be invoiced for the fees!

Is there a bug somewhere or we have configured something wrong?

Please advise... thank you.

Attachments:

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 9 months ago #321296

Hello,

You do have configured "valid order statuses" with the value "created". You should not have this status but confirmed statuses.
Please refer to the documentation for the configuration of that setting :
www.hikashop.com/support/documentation/1...onfig_market_general

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: 205
  • Thank you received: 12
3 years 9 months ago #321391

Yes... this was the issue. Thank you Jerome.

Now another question related to payments to site.

Description of problem:

Vendor ows money (the fee) to the site for a sale and he wants to pay. He moves to his account's "User control Panel" / "Orders" where he can see the specific order.
There he has 3 choices:
1. Details
2. Pay now
3. Reorder

By clicking on "Pay now" he is transferred to URL .../order/pay/order_id-xxx (where xxx is the number of the order), but on this page he sees just the template page (menu items, modules, logo) but nothing related to the payment he wants to perform.

Same thing happens if he clicks on "Details" and then "Pay now".

Looks like that the site has not set payment method.

Can you please point us to the right direction?

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 8 months ago #321471

Hello,

Do you have configure a menu for the default checkout page in your HikaShop settings ?
www.hikashop.com/support/documentation/5...ml#checkout_checkout

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: 205
  • Thank you received: 12
3 years 8 months ago #321478

Thank you for your reply Jerome.

We created a HikaShop » Checkout menu item and pointed "Force a menu on the checkout" in HikaShop settings to that menu item.

Same result...

Attachments:

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
3 years 8 months ago #321501

Hi,

This looks like there is a problem and an error message should be displayed in the main area explaining why.
It's possible that your template is not displaying the error message:
www.hikashop.com/support/documentation/6...tibility-issues.html
Switch temporarily to the Protostar default template and try agin in order to check if you get an error message or if it works properly with it.
If you get an error please report it and we should be able to understand what's going on and provide a solution.
If you don't, then we'll have to get a vendor access with an order that needs to be paid in order to check the situation ourselves. In that case, please provide that along with a link to this thread via our contact form:
www.hikashop.com/support/contact-us.html

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

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #321542

Thank you Nicolas for your detailed reply!

We are already using an override of the default "Protostar" template (css changes only)

The reason that made the errors not to show was that we have chosen "Error Reporting -> none" in global configuration. We switched to "Error Reporting -> Maximum" and we saw 2 Warnings. No errors.

1.
Warning: Declaration of getuddeimTab::sendUserPMS($toid, $fromid, $subject, $message, $systemGenerated = false, $escaped = false) should be compatible with cbPMSHandler::sendUserPMS($toUserId, $fromUserId, $subject, $message, $systemGenerated = false, $fromName = NULL, $fromEmail = NULL) in /home/[ACCOUNT NAME]/public_html/components/com_comprofiler/plugin/user/plug_privatemessagingsystem(uddeimpms)/pms.uddeim.php on line 618

2.
Warning: Declaration of CbmpTab::getTabTitle($tab, $user, $ui, $postdata) should be compatible with cbTabHandler::getTabTitle($tab, $user, $ui, $postdata, $reason = NULL) in /home/[ACCOUNT NAME]/public_html/components/com_comprofiler/plugin/user/plug_marketplace/cbmpapp.php on line 993

Credentials were sent.

Last edit: 3 years 8 months ago by liaskas.

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
3 years 8 months ago #321576

Hi,

The issue is that you have no payment method selected in the order. And in the HikaShop configuration, you have the option "Allow customers to change their payment method after checkout" turned off.
Thus, you can pay the order, but since no payment method has been set in the order, and it's not possible to change the payment method, you get that page without content.
So I would recommend to turn on that setting.
On our end, we'll add a patch for the next version of HikaShop to display a proper error message when the payment method is not available for the order the customer is trying to pay.

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

Time to create page: 0.137 seconds
Powered by Kunena Forum