Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2008
    Posts
    7
    Plugin Contributions
    0

    Default Jrox JAM integration

    JAM is on a different server as shop one doesn't do CRON jobs. PHP code on main page of my site so it transfers the cookie. Sometimes it is working fine and commission is correct in Jrox but sometimes at the bottom of the checkout success page you can see:

    <script language="JavaScript" type="text/javascript" src="http://www.the_site_name.co.uk/jamaffiliates/sale.php?amount=0.04&trans_id=126>

    I am very confused as to why sometimes it is appearing at the bottom of the page not just in the code. Naturally enough when it stays hidden, the commission side works fine. I am using the footer page that JROX says (the zip file download from their site) and it is correctly in the right directory etc - well it must be as it is that page that comes up on checkout success.

    I am going to the shop from an affiliate link i have set up as a test.

    Any ideas or solutions most welcome.

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Jrox JAM integration

    You posted:
    <script language="JavaScript" type="text/javascript" src="http://www.the_site_name.co.uk/jamaffiliates/sale.php?amount=0.04&trans_id=126>

    When it should be:
    <script language="JavaScript" type="text/javascript" src="http://www.the_site_name.co.uk/jamaffiliates/sale.php?amount=0.04&trans_id=126" />

    If not a typo and the URL is missing the closing quotes and / then you need to correct your coding.

  3. #3
    Join Date
    Mar 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Jrox JAM integration



    Actually domain was in there but you did get me to delve into the code with a bit more care!! One of the variable names was slightly different from the code so am guessing that was it.
    I actually had to use the same footer in includes/templates/template_default/common and the cherry_zen one as the checkout_success from within cherry_zen was not overriding for some reason.
    Think i may have confused myself!

    Thanks for the quick answer though

  4. #4
    Join Date
    Mar 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Jrox JAM integration

    OK, this is now getting on my nerves. I now have nothing appearing on the checkout success page.

    tpl_footer is in includes/templates/cherry_zen/checkout_success so why on earth is it not included at the checkout success page.

    Surely that is the override for that part.

    Please help!!!

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Jrox JAM integration

    You need to be more specific about your file names and paths.

    Customized "tpl_footer.php" should be in:
    includes/templates/cherry_zen/common/

    Customized Checkout success would be here:
    includes/templates/cherry_zen/templates/checkout_success_default.php

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Jrox JAM integration

    Quote Originally Posted by Website Rob View Post
    Customized "tpl_footer.php" should be in:
    includes/templates/cherry_zen/common/
    That is true if the intent is to do that site-wide.

    But, if you want to do it on a page-specific level, the following works too:
    /includes/templates/NAME_OF_CUSTOM_TEMPLATE/NAME_OF_PAGE/filename
    ie:
    /includes/templates/cherry_zen/checkout_success/tpl_footer.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Mar 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Jrox JAM integration

    Thanks for replies

    Have i think sorted it - the code from the JAM site didn't seem to do as required for some reason but now working. The override is fine doing it as i originally did in ../cherrry_zen/checkout_success.
    Whether it was solely the code or the fact the shop is on a different domain to JAM i am not sure but seems to be working now and commission going to the right place so i think i will leave well alone!!

    Thanks again

    Of course it could all just be a case of famous last words.....

  8. #8
    Join Date
    Mar 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Jrox JAM integration

    Still working!

    One last thing i need to do - have posted it on the Jrox forum so copied below as someone here may have experience with it.

    Setup all done after a weekend which isn't too bad!
    The only thing is i want to set up affiliate links to individual product pages. I have tried using the method prescribed of replacing the "&" with "%26" but always coming up with page not found or no products.
    The reason is that the affiliate id is getting appended (as it needs to because the shop is on a different server) to the end of the product URL so instead of products_id=2 at the end of the URL i get:

    products_id=251232323123232302323230232323

    Is there any way round this (other than moving servers!)

  9. #9
    Join Date
    Jan 2010
    Posts
    65
    Plugin Contributions
    0

    Default Re: Jrox JAM integration

    Quote Originally Posted by Berzerk View Post
    Still working!

    One last thing i need to do - have posted it on the Jrox forum so copied below as someone here may have experience with it.

    Setup all done after a weekend which isn't too bad!
    The only thing is i want to set up affiliate links to individual product pages. I have tried using the method prescribed of replacing the "&" with "%26" but always coming up with page not found or no products.
    The reason is that the affiliate id is getting appended (as it needs to because the shop is on a different server) to the end of the product URL so instead of products_id=2 at the end of the URL i get:

    products_id=251232323123232302323230232323

    Is there any way round this (other than moving servers!)
    First off I'm totally new to JRox but I wanted the same thing. Basically have each item have their own specific link. I just started browsing in the documentation and came onto this little tidbit. You add the following code before the URL.

    Code:
    http://www.silverpublishing.info/affiliates/jrox.php?id=1&jxURL=YOURPRODUCTURLHERE
    As per your info above affiliates will have to know to replace the "&" with "%26". In my case that's not necessary because I use SSU which changes my links completely to something like:

    Code:
    http://mywebsite.com/product-name-product-number
    So I'll most probably never end up with an "&" in my product links. If I do, it's something I'll have to look into some more.

 

 

Similar Threads

  1. Jam Jrox Affiliate Integration & Customization Questions...
    By JabberWocky in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 22 Apr 2011, 11:41 PM
  2. JROX JAM Affiliate program integration
    By eazy in forum All Other Contributions/Addons
    Replies: 15
    Last Post: 27 Jan 2011, 01:07 AM
  3. New Jrox JAM integration code for 1.3.8
    By schoolboy in forum General Questions
    Replies: 16
    Last Post: 4 Aug 2009, 01:07 PM
  4. Jam Jrox integration - can't get it to record
    By jasonk in forum General Questions
    Replies: 29
    Last Post: 26 Sep 2008, 07:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg