Results 1 to 9 of 9

Hybrid View

  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.

 

 

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