Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC-Affiliate


henri

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.

Link to comment
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

Link to comment
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.

Link to comment
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

Link to comment
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.

Link to comment
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

?>

Link to comment
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.

Link to comment
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

Link to comment
Share on other sites

Ok as wished:

a cvs-commit Mailing list:

 

http://lists.sourceforge.net/lists/listinf...filiate-commits

 

 

Problem of nyckeln has been solved. Configuration error (or to much thinking..)

 

 

Next releae with the small changes mentioned above will come within the next days (will most likely also be the last of this year)

Link to comment
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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...