close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Referral system

Thread began 11/08/2011 2:19 pm by wbrooks199805 | Last modified 3/19/2012 3:46 pm by wbrooks199805 | 2107 views | 6 replies


Final Solution for JAM in PowerStore 4.51

OK, this was hellish for me because I was a PHP noob. (Note the past tense.)

What I finally did is steeped in a healthy dose of PHP superstition, but it works.

Nothing I did worked on the JAM PHP integration, and I still don't know why, and maybe I never will. I ended up going with the image tag implementation, but that was meant for an HTML page, not a PHP page, but I adjusted it to work on a PHP page.

First, I found that JAM has good code to avoid duplicate commissions, so putting the image tag on the checkout_success.php page is just fine.

I did set the necessary variables as my own session variables over in the /webassist/plugins/shopping_cart/cart_readonly.php page, and there I did the math that Jason provided. I put this right before the final <script> tag:

// Affiliate Code Math Here

(My initials are EPC.)

Then, on the checkout_success.php, I put this code right after this line:

<div class="contentBox ps_pod1 borderColor">

(this is the inserted code now):


echo ('<img border="0" src="'.$FINALamount.'&trans_id='.$FINALtrans_id.'" width="1" height="1">')

As I said, superstitious, but this went on for 4 days for me. Then I learned about escaping the quotes. I could have just written--

echo ('<img border="0" src="'.$_SESSION['EPCamount'].'&trans_id='.$_SESSION['EPCtrans_id'].'" width="1" height="1">')

-- and done it in one line. Maybe I could have done the "math" here as well (probably), but I went through a bit of hell with this, so I hope it helps you if you need it. It works!

Also, note the "https://" action. My PowerStore is secure, but if your's isn't, drop the "s" and make it "http://". Good luck!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...