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

#   Affiliate reset

##

- **[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")**
- [![zipadyduda's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30673.gif)](/forum/user/30673-zipadyduda "View zipadyduda's Profile") Topic Author
- [ Offline](/forum/user/30673-zipadyduda)

Less More

- Posts: 140
- Thank you received: 0
-
-

11 years 9 months ago [\#191893](#191893) by [zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")  *[Affiliate reset](/forum/33-customers/875187-affiliate-reset#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.")* was created by *[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzUxODctYWZmaWxpYXRlLXJlc2V0P3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#192111](#192111) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Affiliate reset](/forum/33-customers/875187-affiliate-reset#192111 "-- 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.")*

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 &amp; HikaSerial developer / HikaShop core dev team.

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

- **[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")**
- [![zipadyduda's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30673.gif)](/forum/user/30673-zipadyduda "View zipadyduda's Profile") Topic Author
- [ Offline](/forum/user/30673-zipadyduda)

Less More

- Posts: 140
- Thank you received: 0
-
-

11 years 9 months ago [\#192124](#192124) by [zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")  Replied by *[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")* on topic *[Affiliate reset](/forum/33-customers/875187-affiliate-reset#192124 "-- 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzUxODctYWZmaWxpYXRlLXJlc2V0P3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#192153](#192153) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Affiliate reset](/forum/33-customers/875187-affiliate-reset#192153 "-- 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.")*

Hi,

It will be difficult to create button for every possible tasks ; I think that HikaShop already have a lot of buttons and features ![:)](/media/kunena/emoticons/3.png ":)")
The best for your will be to use a mass action.
[ www.hikashop.com/support/support/documen...massaction-form.html](http://www.hikashop.com/support/support/documentation/167-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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzUxODctYWZmaWxpYXRlLXJlc2V0P3RtcGw9bWFya2Rvd24=) 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?

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

Time to create page: 0.066 seconds

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