Jump to content
henri

OSC-Affiliate

Recommended Posts

Hi!

 

Its calculate wrong for me.. Example..

 

Totalt: 138 kr inkl tax

Shipping: 39 kr

Smallorder fee: 50 kr

COD fee: 50 kr

Totalt - Pay: 277 kr

 

If it calculate right, 10 = 14 kr (13.80)

But the affiliate get 28 kr

 

10 percent on everything.. Shipping, cod, smallorder etc..

Thats not so good..

 

Best Regards,

Patrick Andersson

 

 

 

 

Just checked it:

 

Zwischensumme: 34.79EUR inc. Tax

Tax.: 4.80EUR

Shiping: 10.00EUR

Nachnahmegeb?hr: 3.48EUR <- comes from a german extra modul

Sum: 48.27EUR

 

10% Provision:  3.82EUR

 

 

$affiliate_total = $order->info['total']-$order->info['shipping_cost'];

$affiliate_percentage = AFFILIATE_PERCENT/100;

 

48.27Euro - 10.00 Euro = 38.27 Euro

38.27 Euro *10/100 = 3,82 Euro (10%)

 

Seems to be right. (its like amazon bills here)

So if you want to calc stuff without tax, you have to substract it also.

If you are using this Nachname-Modul you shou subtract its cost too..

 

And as i recall it works with all Checkouts, cause i didn't adjust it for the new one.

Share this post


Link to post
Share on other sites

I think all sales must added before all shipping modules. So if we use the subtotal + tax. I think thats right. If i have an affiliate outside germany or.....you don't pay Tax. Maybe i'm wrong, i'm a not a pro in php but i do my best........

 

I adde to the caffiliate contact the id To the name. Its better if you search an affiliate in your admin.

 

 

go to line 96

 

<td class="smallText"><?php echo ENTRY_NAME; ?><br><?php echo tep_draw_input_field('name', $affiliate['affiliate_firstname'] . ' ' . $affiliate['affiliate_lastname'], 'size=40'); ?></td>

 

 

replace with this

 

<tr>

<td class="smallText"><?php echo ENTRY_NAME; ?><br><?php echo tep_draw_input_field('name', $affiliate['affiliate_firstname'] . ' ' . $affiliate['affiliate_lastname'] . ' ' . $affiliate['affiliate_id'], 'size=40'); ?></td>

</tr>

 

Result is like

 

 

Test Affiliate 99999999

 

in the form field

Share this post


Link to post
Share on other sites

Yes yes yes... It works! :)

 

Thanks!

 

Best Regards,

Patrick Andersson

 

 

 

 

Hmm, try this:

 

$affiliate_total = $order->info['subtotal'];

Share this post


Link to post
Share on other sites

I think it's under construction

 

What do you think about the affiliate_signup ?

 

My idea: If a Affiliate sign in is complete, the next site should be the affiliate_banners or a part of it. So the affiliate had the banners after the signup process.

Share this post


Link to post
Share on other sites
Do you got any idea why Payment doesnt work?

Not really,

Has the affiliate earned enough to get billed?

-> If it'S online i could take a look.

Share this post


Link to post
Share on other sites
I think it's under construction

 

What do you think about the affiliate_signup ?

 

My idea: If a Affiliate sign in is complete, the next site should be the affiliate_banners or a part of it. So the affiliate had the banners after the signup process.

Simply change the Link, in affiliate_signup_ok.php :wink:

I think the startpage should stay the summary -> perhaps here some quickbuttons.

Cu Henri

Share this post


Link to post
Share on other sites

Hi!

 

Yes you can take a look, what is your e-mail adress?

 

Best Regards,

Patrick Andersson

 

 

 

 

 

Do you got any idea why Payment doesnt work?

Not really,

Has the affiliate earned enough to get billed?

-> If it'S online i could take a look.

Share this post


Link to post
Share on other sites

Note.. Does Payment - Start billing working for anyone???

Please let me know..

 

 

Hi!

 

Isnt 'AFFILIATE_PAYMENT_ORDER_MIN_STATUS' function working correct?

Just wonder because of // before the line?

 

If the function isnt working, thats why I cant Payment - Start billing?!!

 

Best Regards,

Patrick Andersson

 

 

 

Copy from original file.........

define ('AFFILIATE_BILLING_TIME','30'); // Orders billed must be at leat '30' days old.

// needed if a order is refunded

// CHECKIT

// define ('AFFILIATE_PAYMENT_ORDER_MIN_STATUS','3') // Which status must an order have, to be billed

?>

Share this post


Link to post
Share on other sites

Oh shit;

I implemented the variable, but hadn't had the time to get it to the code :(

(my Reminder CHECKIT (there are about 8 in the code));

and then i forget about it...

At time theres is a status=3 in the code which i wanted to change to the variable.

Next thing i do

sorry.

Share this post


Link to post
Share on other sites

Hi!

 

I changed affiliate_payment_status and order_status to...

 

INSERT INTO orders_status VALUES (3, 4, 'Betald - Uth?mtad');

INSERT INTO affiliate_payment_status VALUES (3, 4, 'Betald - Uth?mtad');

 

But.. No, it will not work..

 

Have also following parameters..

define ('AFFILIATE_BILLING_TIME','-1');

define ('AFFILIATE_PAYMENT_ORDER_MIN_STATUS','3');

 

The sales is counting, and clicks and 10% comission rate..

Its only Payment - that are empty..

If I click on "start billing" I get following information.

"Your Affiliates have been sucessfully billed"

 

Hmmm...

 

 

Best Regards,

Patrick Andersson

Share this post


Link to post
Share on other sites

The AFFILIATE_PAYMENT_ORDER_MIN_STATUS is implemented now (CVS).

 

@nyckeln my email is: henri@in-solution.de I'll take a look

Share this post


Link to post
Share on other sites

I understand this is not complete, but is anyone using this yet?

I looked in ToDo and it said:

$Id$

 

Bannermanager

 

So does it work?

 

Thank you for putting this together!

Share this post


Link to post
Share on other sites

Yes it works fine.

 

I'm thinking of rewritting / adjusting the Bannermanager

But this will take a time...

Share this post


Link to post
Share on other sites

Henri,

 

Just wondering if the cookies or anything else is implimented so that affiliate gets paid even if the customer didn't buy anything right away.

I if this is there, where do we change for how this works:

1 week or 4 weeks.

 

Thank you!

Share this post


Link to post
Share on other sites
I love the demo!!!

Is it ready then to download and try?  

 

 

Vikki

Yes, just try it out.

New Version will come within the next days.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×