Jump to content

[SOLVED] can someone explain this to me ?


phpvox

Recommended Posts

can someone explain this to me ? .....1 + 2 ....im having hard time understanding it, thanks

 

If you have multiple products, sale.php expects them in the format sale.php?prod=X1*N1,X2*N2,X3*N3 (and so forth), where the Xs are the product IDs and the Ns are their quantities. The script can process arbitrarily many products in this fashion.

 

You can route the customer through this script in a couple of ways:

 

  1. By using this script as the return page for your payment gateway. After processing the sale, it will return the user to the URL that you have associated with the product.

  2. By including it discreetly on the return page as a one-pixel image:

 

      <img src="http://YOUR-BASE-WEBAFFILIATE-URL/SALE-PHP-URL" alt="" height="1" width="1" border="0" />

 

      In this case, no image will be seen, and only the processing occurs "in the background."

 

Link to comment
Share on other sites

What exactly is your question?

 

I add the below code in the "Payment_success.html ???

 

< i m g  src="http://www.DomainNameHere.com/webaffiliate/sale.php?prod=X1*N1,X2*N1,X3*N1,X4*N1,X5*N1" alt="" height="1" width="1" border="0" />

 

BUT IT DIDNT WORK !!!!!!

 

What didn't work? Displaying an image with all that extra junk isn't going to have any effect.  Perhaps you should be asking the person who gave you the original instructions just how you were supposed to get the desired results.

Link to comment
Share on other sites

im not getting an answer from them, thats why im here.............this script updates affiliate sales, for some reason its not recording those sales, if you sign up as affiliate, you will not be credited for your sales.  so i need to fix it, what am i doing wrong ? thanks

Link to comment
Share on other sites

ok whats the real question ?

and.. what are this for ?prod=X1*N1,X2*N1,X3*N1,X4*N1,X5*N1"

 

< i m g  src="http://www.DomainNameHere.com/webaffiliate/sale.php?prod=X1*N1,X2*N1,X3*N1,X4*N1,X5*N1" alt="" height="1" width="1" border="0" />

 

now if this is the img you want then it should be like this

 

< i m g  src="http://www.DomainNameHere.com/webaffiliate/put here the file name of the image

alt="" height="1" width="1" border="0" />

 

and not the php page

Link to comment
Share on other sites

I dont really understand, but it sounds like what ever php page that is recording sales, grabs them from the image tag for some reason. And they have set it to 1px X 1px so you cant see that. They have done that instead of using $_POST or $_GET. Its some sort of security measure I guess. you should post the code from sale.php that updates the sales.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.