Post by Tromas » Fri Jul 01, 2011 1:10 am

Is there a way to avoid commison being paid for the the shipping cost?
(Except to offer free shipping :joker: )

Anbefalt vibrator
Dildo i glass og metall
Myke sex leketøy i silikon


New member

Posts

Joined
Sat Feb 12, 2011 1:06 am


Post by mberlant » Fri Jul 01, 2011 9:32 am

That sounds like a bug. Commission should only be paid on the base price of goods and not on any ancillary charges (shipping, taxes, handling, etc.) added to the base price.

Please use proper English at all times, so that all members may understand you.


User avatar
Active Member

Posts

Joined
Sun Mar 13, 2011 8:33 pm

Post by SXGuy » Fri Jul 01, 2011 4:50 pm

perhaps not a bug, just a misunderstanding on how comission is calculated. Tromas, set up an affiliate account and see if the % of comission recieved is relative to the product price and not the total including shipping.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by Tromas » Sun Jul 03, 2011 2:30 am

SXGuy wrote:perhaps not a bug, just a misunderstanding on how comission is calculated. Tromas, set up an affiliate account and see if the % of comission recieved is relative to the product price and not the total including shipping.
I did set the affiliate commission to 10%.
Registered an affiliate account, and followed the link.

Products bought: $90
Shipping: $10
Total: $100
Affiliate commission: $10


Anywhere I can make changes, so that commission is only being paid of products bought and not the shipping cost?

Anbefalt vibrator
Dildo i glass og metall
Myke sex leketøy i silikon


New member

Posts

Joined
Sat Feb 12, 2011 1:06 am


Post by grgr » Sun Jul 03, 2011 4:46 am

You can give this a go...

Edit ../catalog/controller/checkout/confirm.php

change:

Code: Select all

				if ($affiliate_info) {
					$data['affiliate_id'] = $affiliate_info['affiliate_id']; 
					$data['commission'] = ($total / 100) * $affiliate_info['commission']; 


to:

Code: Select all

				$subtotal = $this->cart->getSubTotal();
				
				if ($affiliate_info) {
					$data['affiliate_id'] = $affiliate_info['affiliate_id']; 
					$data['commission'] = ($subtotal / 100) * $affiliate_info['commission']; 


Image Image Image Image Image Image Image Image


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by Tromas » Sun Jul 03, 2011 5:24 am

:joker:

That seems to work!!

Thanks so much. Couldn't figure out this by myself!

Anbefalt vibrator
Dildo i glass og metall
Myke sex leketøy i silikon


New member

Posts

Joined
Sat Feb 12, 2011 1:06 am


Post by matts118 » Wed Jan 18, 2012 2:45 am

Hi.

This works great, but could somebody also please tell me how to also minus any coupons from the amount calculated for the affiliate. I have been trying for ages, but don't seem to be able to do it.

Many Thanks

Newbie

Posts

Joined
Mon Dec 12, 2011 2:41 am

Post by cyansnow » Wed Jan 25, 2012 5:04 am

Did anyone come up with an answer to the coupons question ..... i am also needing to do this, and i cant find it either

Good fix for the shipping

Thanks so much

Newbie

Posts

Joined
Thu Jul 08, 2010 9:33 am

Post by thehoneyjar » Thu Feb 23, 2012 2:29 am

Thanks! This is just what I needed! So grateful to the Opencart community!

Kyle K.
The Honey Jar
Delicious Pure Raw Honey from Honeyville, UT
http://thehoneyjarhome.com


Newbie

Posts

Joined
Thu Feb 23, 2012 2:24 am
Location - Honeyville, UT

Post by naturesfootprint » Tue May 15, 2012 2:44 am

Any solution to the coupon problem?


Posts

Joined
Wed Apr 11, 2012 6:54 am

Post by cocooner » Wed Aug 01, 2012 5:30 pm

what is the difference between this solution and following vQmod?

http://www.opencart.com/index.php?route ... e=0&page=7

It seems that vQmod is someting wrong to me...

Newbie

Posts

Joined
Sun May 13, 2012 1:39 am

Post by grduniam » Thu Aug 02, 2012 12:21 pm

Hi Cocooner,

There was a difference with the Vqmod and because of it, it only seemed to work with version 1.5.2.1 and below. Now I've updated the Vqmod to what is specified in this thread and it now is working with 1.5.2.1 and 1.5.3+.

So now, there is nothing different to the solution in this thread and the vqmod: http://www.opencart.com/index.php?route ... on_id=6690

Please let me know if you have any issues.

Affiliate Homepage Link and Promote All Products
Hide Empty Shopping Cart
Remove Shipping and Handling from Affiliate Commission
Move Affiliate Info to Top of Orders Page


User avatar
New member

Posts

Joined
Wed Apr 11, 2012 7:26 pm
Location - Tasmania

Post by Astron » Sat Nov 10, 2012 8:46 pm

This works fine at the front end. It doesn't work at the admin panel, any ideas on how to make it work from the admin panel?

Newbie

Posts

Joined
Sat Nov 10, 2012 7:37 pm

Post by ChadRogers » Sun Nov 11, 2012 12:32 pm

Hi,

Do you guys have an update if this works for version 1.5.4.1?

Having a hard time here.
Thanks

Newbie

Posts

Joined
Sun Nov 11, 2012 8:54 am

Post by ChadRogers » Mon Nov 12, 2012 4:10 pm

grgr wrote:You can give this a go...

Edit ../catalog/controller/checkout/confirm.php

change:

Code: Select all

				if ($affiliate_info) {
					$data['affiliate_id'] = $affiliate_info['affiliate_id']; 
					$data['commission'] = ($total / 100) * $affiliate_info['commission']; 


to:

Code: Select all

				$subtotal = $this->cart->getSubTotal();
				
				if ($affiliate_info) {
					$data['affiliate_id'] = $affiliate_info['affiliate_id']; 
					$data['commission'] = ($subtotal / 100) * $affiliate_info['commission']; 

Hi,
Please help me out. Is this applicable to v1.5.4.1? it my file seems to have that already but its still not working... Is there something that I have to change on the back office of opencart?

Newbie

Posts

Joined
Sun Nov 11, 2012 8:54 am

Post by grgr » Mon Nov 12, 2012 5:07 pm

1.5.4 already has this fixed as you have seen and mentioned. Not sure what isn't working for you, it's a fairly simple sum: (subtotal/100) x commision rate. There's not really a lot to 'not work'.

Image Image Image Image Image Image Image Image


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by ChadRogers » Wed Nov 14, 2012 6:23 pm

grgr wrote:1.5.4 already has this fixed as you have seen and mentioned. Not sure what isn't working for you, it's a fairly simple sum: (subtotal/100) x commision rate. There's not really a lot to 'not work'.
Hi,

Thank you for your response,

That's what I'm saying, I already did that but it still is computing the shipping on the affiliate commission..

Newbie

Posts

Joined
Sun Nov 11, 2012 8:54 am

Post by ChadRogers » Wed Nov 14, 2012 6:58 pm

Here is an attached copy of my php file..

It's still now working.. shipping is still in the computation

Attachments

Capture.PNG

image in file manager - Capture.PNG (20.09 KiB) Viewed 3734 times


Newbie

Posts

Joined
Sun Nov 11, 2012 8:54 am

Post by ocmta » Wed Nov 14, 2012 7:27 pm

Make sure that Shipping has higher Sort Order in Order Totals than Sub Total (so Sub Total doesn't include Shipping). E.g. Sub Total should have Sort Order set to 1, and Shipping should have Sort Order set to 2.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by im4dlaw » Tue Feb 12, 2013 11:24 pm

Has this ever been solved? I have fresh install of OC 1.5.4 WITH settings mentioned above already in code by default as well as the orders set properly and it is still including shipping on affiliate commission..

Newbie

Posts

Joined
Wed Mar 10, 2010 3:13 am
Who is online

Users browsing this forum: No registered users and 47 guests