Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: Shopzilla Tracking Code Help

    this code works for me :-)

  2. #12
    Join Date
    Nov 2007
    Posts
    21
    Plugin Contributions
    0

    Default Re: Shopzilla Tracking Code Placement?

    I get the problem as Nuin - an error based around table selection. This appears on the order success page:


    1146 Table 'xxxxxxx.orders' doesn't exist
    in:
    [SELECT count( orders_id ) AS zilla FROM orders WHERE customers_id = '189']

    xxxxx is the proper name of the full database. The code isn't selecting the orders table within that database.

    Does anyone know the correct code to do that?

    It has to be in this part I guess:

    $cn_items = "SELECT count( orders_id ) AS zitems FROM orders_products WHERE orders_id = '" . $zilla_oid ."'";
    $cn_items_result = $db->Execute($cn_items);
    $zitems = $cn_items_result->fields['zitems'];

    Any help appreciated.

  3. #13
    Join Date
    Jun 2008
    Posts
    187
    Plugin Contributions
    0

    Default Re: Shopzilla Tracking Code Placement?

    Hey all,

    @nuin & @peterdd

    Do you guys have a table prefix on your zen-cart installation?

    @nuin try:

    PHP Code:
    SELECT countzen_orders_id ) AS zilla FROM zen_orders WHERE customers_id '1' 

    @peterdd: do you also have table pre-fixes? - i can't see any in your example but i suspect that you may have?

    Andy.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v138a Facebook and Twitter tracking code placement
    By 007mcfod in forum General Questions
    Replies: 1
    Last Post: 24 Aug 2014, 01:48 AM
  2. v150 How to install Shopzilla revenue tracking script?
    By sephowin in forum General Questions
    Replies: 4
    Last Post: 16 Jan 2014, 10:54 PM
  3. Script for Shopzilla "performance tracking"
    By marvin in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Nov 2009, 04:28 AM
  4. Shopzilla tracking in Worldpay integration
    By crazycucumber in forum Addon Payment Modules
    Replies: 1
    Last Post: 24 Apr 2007, 09:13 AM
  5. Tracking Code placement - Shopzilla
    By crazycucumber in forum General Questions
    Replies: 0
    Last Post: 3 Apr 2007, 08:29 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