nyckeln Posted December 11, 2002 Share Posted December 11, 2002 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. Quote Link to comment Share on other sites More sharing options...
henri Posted December 11, 2002 Author Share Posted December 11, 2002 Hmm, try this: $affiliate_total = $order->info['subtotal']; Quote Link to comment Share on other sites More sharing options...
smigo Posted December 11, 2002 Share Posted December 11, 2002 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 Quote Link to comment Share on other sites More sharing options...
smigo Posted December 11, 2002 Share Posted December 11, 2002 Thank Henry We post at the same time. With subtotal it works correct. Thanks Quote Link to comment Share on other sites More sharing options...
nyckeln Posted December 11, 2002 Share Posted December 11, 2002 Yes yes yes... It works! :) Thanks! Best Regards, Patrick Andersson Hmm, try this: $affiliate_total = $order->info['subtotal']; Quote Link to comment Share on other sites More sharing options...
henri Posted December 11, 2002 Author Share Posted December 11, 2002 Ok, changed it also in CVS Quote Link to comment Share on other sites More sharing options...
nyckeln Posted December 11, 2002 Share Posted December 11, 2002 Hi! Do you got any idea why Payment doesnt work? Best Regards, Patrick Andersson Quote Link to comment Share on other sites More sharing options...
smigo Posted December 11, 2002 Share Posted December 11, 2002 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. Quote Link to comment Share on other sites More sharing options...
henri Posted December 11, 2002 Author Share Posted December 11, 2002 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. Quote Link to comment Share on other sites More sharing options...
henri Posted December 11, 2002 Author Share Posted December 11, 2002 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 Quote Link to comment Share on other sites More sharing options...
elbavaro Posted December 11, 2002 Share Posted December 11, 2002 Henri, I think the startpage should stay the summary -> perhaps here some quickbuttons. quickbuttons ??? - dont forget me Henri! Regards, EL Bavaro http://www.win-vermieter.de/osc/button_texts.htm Quote EL Bavaro Link to comment Share on other sites More sharing options...
nyckeln Posted December 11, 2002 Share Posted December 11, 2002 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. Quote Link to comment Share on other sites More sharing options...
nyckeln Posted December 11, 2002 Share Posted December 11, 2002 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 ?> Quote Link to comment Share on other sites More sharing options...
henri Posted December 11, 2002 Author Share Posted December 11, 2002 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. Quote Link to comment Share on other sites More sharing options...
nyckeln Posted December 12, 2002 Share Posted December 12, 2002 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 Quote Link to comment Share on other sites More sharing options...
henri Posted December 12, 2002 Author Share Posted December 12, 2002 The AFFILIATE_PAYMENT_ORDER_MIN_STATUS is implemented now (CVS). @nyckeln my email is: [email protected] I'll take a look Quote Link to comment Share on other sites More sharing options...
henri Posted December 13, 2002 Author Share Posted December 13, 2002 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) Quote Link to comment Share on other sites More sharing options...
dynamok Posted December 13, 2002 Share Posted December 13, 2002 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! Quote Link to comment Share on other sites More sharing options...
henri Posted December 14, 2002 Author Share Posted December 14, 2002 Yes it works fine. I'm thinking of rewritting / adjusting the Bannermanager But this will take a time... Quote Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2002 Share Posted December 14, 2002 Is there a demo of this somewhere? Quote Link to comment Share on other sites More sharing options...
henri Posted December 14, 2002 Author Share Posted December 14, 2002 Demo: http://62.146.28.232/admin/admin/ http://62.146.28.232/catalog/catalog/ Quote Link to comment Share on other sites More sharing options...
vikkic Posted December 14, 2002 Share Posted December 14, 2002 I love the demo!!! Is it ready then to download and try? Vikki Quote Link to comment Share on other sites More sharing options...
dynamok Posted December 14, 2002 Share Posted December 14, 2002 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! Quote Link to comment Share on other sites More sharing options...
henri Posted December 14, 2002 Author Share Posted December 14, 2002 administration->affiliate-> Cookie Lifetime Quote Link to comment Share on other sites More sharing options...
henri Posted December 14, 2002 Author Share Posted December 14, 2002 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.