Affiliate reset

  • Posts: 140
  • Thank you received: 0
9 years 9 months ago #191893

-- HikaShop version -- : current
-- Joomla version -- : current
-- Error-message(debug-mod must be tuned on) -- : none

I had some affilaites set up just to track inbound traffic from google adwords etc. I had a click fee in there.
I am trying to reset it so that the balance is zero. I click on total unpaid amount and it says I'm about to pay 0 and I hit proceed.
It still shows a balance.
I even went into the database and under that hikashop user record I set the unpaid amount to zero, but it refreshes as the amount being unpaid. So it's calculating it from somewhere else and putting it in there.
How can I reset the amount paid?
If it were a real affiliate, and I paid them by check or whatever, I would need to reset this to keep track.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #192111

Hi,

In the table "hikashop_order", you will find three columns.
"order_partner_id" - for the link with the partner.
"order_partner_price" (+ "order_partner_currency_id") - for the price that the partner will earn
"order_partner_paid" - for the indication if the partner has been paid for this order (it should contain the order_id which generate the invoice).

So the best for you will be to empty the column "order_partner_id" and "order_partner_price" to reset the affiliate sales.

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: 140
  • Thank you received: 0
9 years 8 months ago #192124

It would be awesome if there were a button somewhere to clear it out or better yet if we could see the current balance vs lifetime balance for an affiliate.

Meanwhile, would you be able to help me with a sql command to reset those columns to zero?

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #192153

Hi,

It will be difficult to create button for every possible tasks ; I think that HikaShop already have a lot of buttons and features :)
The best for your will be to use a mass action.
www.hikashop.com/support/support/documen...massaction-form.html

So you can update orders where the order_partner_id is superior than 0 ; and reset the order_partner_id and the order_partner_price.

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.

Time to create page: 0.057 seconds
Powered by Kunena Forum