Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello:

 

I want to provide users the opportunity to enter their sales person name or code in order to give them commission for their sales.

 

No luck finding it, any ideas?

If you have a serious problem but it can be solved, why worry about it? If you have a serious problem but it can't be solved, then why worry about it?

Posted

I was planing on use the coupon crontrib. I give a coupon with the name to each person and when the person buy it using that coupon, then we know who was the person that referred it.

 

Is there a way to manage this list better?

1) Like adding the sales among of each similar coupon code used.

2) Creating a section where each person can login and see how much contrib they have earned.

 

It would be a great function. Is it possible? anyone can do it?

Posted

i have used the affiliate program for doing just that.

lol i have used the affiliate program in a lot of crazy situations.

just have the ref_id change based on which coupon they use and you get a pretty good accounting

Posted

there is a contribution called osc affiliate you must install first

then you have to assign each one of your coupons an affiliate

then in checkout_process.php use that affiliate_id as ref_id

it's a bit of coding envolved

Posted

Yep, I have the osc affiliate installed already. What I dont get is how to triggle the ref_id when the person enter the coupon lets say "mycoupon"

 

Can you post the changes that you have made?

Posted

you have to add another field in the coupon table called ref_id and populate it when you create the coupon. unless you own the store and wouldn't mind entering the value from php admin you must also add another field to populate the ref_id when you create the coupon

then you must search this field and use it as a ref_id in checkout_process.php

or you can make the ref_Id to have some relationship to coupon id

i hope you understand what i am talking about. you have to think out of the box a little,

Posted

i did not use the gccv just a simple dropdown of the affiliate in checkout

this way the customer can pick their sales person but the gift certificate should work just as good but it is a little bit more complicated.

Posted

I think I found a solution.

 

Here is what I did. I changed the coupon_id to match with the ref_id and added '&ref=' . $coupon_result['coupon_id'] into the ot_coupon file.

 

Since the page gets refleshed when someone inputs a coupon code, i made it reflesh with the ref_id loaded also. For this to work, I have to give a coupon based on the affiliate id.

 

It should work fine temporally i thing, hope there appear a better way of doing it.

Posted

yes that should work

you can also make a table to establish the relation of ref_id to coupon_id if you want to use diffrent coupons for the same ref

or you can add another field to enter the ref_id when you create the coupon

just see how coupon_id is done and copy it. the potential is limitless.

just enter data in db and search for it when you need it

  • 2 years later...
Posted

i also need this, but didn't really follow what I am supposed to do. Any help would be appreciated....I am willing to pay someone a small fee to do this for me...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...