Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    20
    Plugin Contributions
    0

    Default Zen Cart Variables

    Hello,

    I have searched the forum and FAQs and could not find the info I was looking for, if anyone could help I would greatly appreciate it.

    I am working on a full customization for an Analytics program for a client. I am looking for the PHP variables for Zen Cart.

    Pagename
    Category
    Order #
    Product Name
    Order Qty.
    Total Order Amount

    I am pretty new to Zen Cart and I am learning my way around. So far I have done up some rough PHP and Javascipt, for instance:

    PHP
    <?
    $db_pagename = "this_is_the_stuff_i_am_looking_for";
    ?>

    JAVA SCRIPT
    var PAGENAME = escape('<?php print $db_pagename;?>');

    How would I fill in "escape" with the correct Zen Cart variable? The rest would be the same, but with their own formula.

    Thank you in advance for your consideration
    Last edited by Cylants; 14 Sep 2008 at 11:58 PM. Reason: Inserted Java Script Example

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Zen Cart Variables

    There is a wiki link in the top nav bar...

    http://www.zen-cart.com/wiki/index.php/Developers
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: Zen Cart Variables

    I am revisting this issue I had in the past, I went with google analytics for awhile but need to switch.

    I am trying to find variables, as I am still pretty new to zen cart.

    Am I correct in saying the following:

    Order Total Variable (I know it says subtotal, I am new):

    Code:
    $order->info['subtotal']

    I still cannot figure the variable on a pagename. Any help would be greatly appreciated.

    Regards.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 23 Jan 2011, 10:42 PM
  2. Use Zen Variables outside Zen Cart
    By renkforce in forum General Questions
    Replies: 0
    Last Post: 4 Mar 2009, 07:12 PM
  3. Zen variables in define_privacy.php
    By willsy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Mar 2008, 04:43 AM
  4. Replies: 0
    Last Post: 5 Mar 2008, 01:22 PM
  5. Zen Cart product page variables
    By m3s_4ev3r in forum General Questions
    Replies: 1
    Last Post: 28 Feb 2008, 04:47 PM

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