Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2004
    Location
    UK
    Posts
    182
    Plugin Contributions
    0

    how: a unique footer for every product and category

    Hi all,

    I've had a good hunt round to try and find information on adding a unique footer to each and every product and category page.

    I need to do this to add some new php tracking codes that are totally page specific.
    I can't even add the code to the product description area, it really does need to be placed as low as possible in every page I want to track.

    And that led me to thinking I need a unique override footer for each page .... unless you know a little secret that might make it simpler :)

    Any help you can give would be great.

    Thanks

    Kev

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: how: a unique footer for every product and category

    You could add the information at the very bottom of:

    includes -> templates -> YOUR_TEMPLATE -> templates -> tpl_product_info_display.php

  3. #3
    Join Date
    Jul 2004
    Location
    UK
    Posts
    182
    Plugin Contributions
    0

    Default Re: how: a unique footer for every product and category

    but that would put the 'same' peice of code on all product pages.

    I need to be able to add 'different' code on every 'individual' page.

    Thanks

    Kev

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: how: a unique footer for every product and category

    Two factors:

    1. You can override the tpl_footer.php on each page by placing unique versions of it in override folders like this:
    /includes/templates/YOURTEMPLATE/PAGENAME/tpl_footer.php
    where PAGENAME could be product_info or contact_us or checkout_shipping etc.

    You might need to combine that with the 2nd option somehow:

    2. You would need to build a dynamic loop to display your special tracking codes based on whatever data you are presently showing on the screen.
    Use a PHP loop that detects which product/category is currently active, and thereby display varying tracking settings based on that info.

    You didn't give much to go on, so I can't give you any examples. But, that's the concept.
    .
    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.

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: how: a unique footer for every product and category

    Let me work on it a bit and see if I can come up with something.

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: how: a unique footer for every product and category

    How many products are we talking about?

    I haven't worked everything out yet but here are some thoughts.

    You might be able to add an extra defines file in:

    includes -> languages -> english -> extra_definitions -> tracking_info_defines.php

    PHP Code:
    <?php
    define 
    ('TRACKING_CODE''Your information goes here');
    ?>
    Now you could use an if statement at the bottom of tpl_product_info_display.php

    PHP Code:
    <?php if ($product_id=? || $product_id=?) echo TRACKING_CODE?>
    I'll play around with this and see how it works.

  7. #7
    Join Date
    Jul 2004
    Location
    UK
    Posts
    182
    Plugin Contributions
    0

    Default Re: how: a unique footer for every product and category

    I think we have a solution :)

    The software I'm playing with tracks where a visitor gets too, on a page, before taking an action.

    What this means is that if you have driven a visitor to your site and they find your product and the sales page doesn't 'close' the sale you can see how much that visitor read before they left or bought.

    It's basically meant to be a server side 'eye tracking' solution (for want of a better way of explaining it)

    Having just tested it on some static pages I won't need to keep the code on the pages for long. It's just too powerful. Anything more that 20 - 30 page impressions and it slows down lots when it comes to generating the results. And to be fair, the results are not much different from getting 10 or so visitor scans.

    Initially Dr Bytes first option will give me the chance to test it out on the home page and other fixed pages. Thats a great place to start. Thanks.

    The concept of a dynamic loop sound techie to me, Creating isn't my bag.

    Here's a link to the product I'm trying to integrate. Having a look may give a better insight at the concept at this stage rather than any example.

    If what this software can do, can be done with zen cart products, it would probably be a tool worth adding to the 'marketing' section and getting some recommendation commissions into the core zen cart teams coffers.

    I know the concept isn't perfect but having the chance to measure the effectiveness of copy changes and having a 'better clue' where your visitors take any action is valuable info.

    I just want to reinforce that it's not open source, it's commercial and it is new.
    http://www.mutualadvantage.co.uk/cov...gtools-zencart

    Dr Byte: If you have any info in the wiki (or anywhere) about building dynamic loops, please point me in the right direction.

    Thanks again
    Kev

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: how: a unique footer for every product and category

    can you share a couple examples of what code would need to show up on which pages? Perhaps 2 or 3 examples?
    .
    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.

  9. #9
    Join Date
    Jul 2004
    Location
    UK
    Posts
    182
    Plugin Contributions
    0

    Default Re: how: a unique footer for every product and category

    Clyde you are a genius. I'll give that a try right now.

    Thanks.

    Kev

  10. #10
    Join Date
    Jul 2004
    Location
    UK
    Posts
    182
    Plugin Contributions
    0

    Default Re: how: a unique footer for every product and category

    Dr Byte,

    Gimme Five mins or so. I gotta get a coffee. It's too damn early over here.

    Kev

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How can i add my attributes to a whole category? and work for every product
    By magnum17 in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 29 Nov 2012, 12:27 AM
  2. Unique Footer for Index
    By button-up in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 19 Aug 2009, 03:18 PM
  3. add language=xx to every product link and category
    By sohotech in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 8 Jun 2009, 06:25 PM
  4. Product layout unique for each category?
    By DocRocks in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 23 Jun 2008, 09:53 AM
  5. One unique logo for every different country
    By jagge in forum General Questions
    Replies: 2
    Last Post: 19 Jan 2008, 01:14 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