Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Custom Script Help - Populate Variable Data

    I am beefing up some scripts on my site. I would like to pull variable data into different scripts which are linked to events (add to cart, view a product page, order placed, sign up, etc.).

    With help on one I would be able to complete the rest myself.

    For example when a product page loads I would like this to fire with the relevant content populated:

    <script>
    fbq('track', 'ViewContent', {
    content_ids: ['<PRODUCT_ID>'],
    content_type: '<CONTENT_TYPE>',
    currency: '<CURRENCY_INDICATOR>',
    value: <VALUE_OF_THE_CONVERSION>
    });
    </script>

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Custom Script Help - Populate Variable Data

    What do you expect to 'see' populated in the <CONTENT_TYPE> element? Is that 'physical' vs. 'virtual' or something else?

  3. #3
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: Custom Script Help - Populate Variable Data

    In this instance CONTENT_TYPE would be 'product'

 

 

Similar Threads

  1. Replies: 2
    Last Post: 4 Nov 2013, 06:15 PM
  2. Easy Populate Custom Field Help
    By wonderbread101 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 12 Feb 2012, 03:22 PM
  3. Custom Import Script Help
    By aaron1988 in forum General Questions
    Replies: 8
    Last Post: 26 Jan 2011, 12:10 PM
  4. Custom Customer Data To Order Data
    By fotofx in forum General Questions
    Replies: 1
    Last Post: 22 Aug 2010, 08:10 PM
  5. zen_draw_input_fields change value to data from php variable
    By zvenson in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Jun 2009, 06:25 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR