Results 1 to 6 of 6
  1. #1
    Join Date
    May 2010
    Posts
    44
    Plugin Contributions
    0

    Default Adding code to every product page

    I have created a CSS class with a background image, i have added it to my pages, including the product listing page, but its going to take a while to add it to every single page (theres so many different checkout pages etc) is there a place i can put the code that is common across all the product pages? Its a div layer so needs to be at the top and bottom of the page.

  2. #2
    Join Date
    Aug 2008
    Posts
    244
    Plugin Contributions
    0

    Default Re: Adding code to every product page

    tpl_product_info_display.php

    Would affect all of the products.

  3. #3
    Join Date
    May 2010
    Posts
    44
    Plugin Contributions
    0

    Default Re: Adding code to every product page

    thanks!

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding code to every product page

    What is the essential purpose of your efforts? If you are just talking about a background, there may be a way to accomplish it without editing a bunch of PHP files.

  5. #5
    Join Date
    May 2010
    Posts
    44
    Plugin Contributions
    0

    Default Re: Adding code to every product page

    its a bit more complicated than that, its a php script that needs to run on all pages. I have it sorted now anyway, Ill post the final result at some stage soon.

  6. #6
    Join Date
    Nov 2010
    Location
    Vancouver, BC
    Posts
    108
    Plugin Contributions
    0

    Default Re: Adding code to every product page

    seems like it would have been better to put it in tpl_header or tpl_footer. gratz on sorting it tho :)

 

 

Similar Threads

  1. Adding static text on every product page
    By MaDd0g in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Jul 2010, 12:54 PM
  2. Adding tracking code for analytics To Every Page?
    By fabienne in forum Basic Configuration
    Replies: 4
    Last Post: 14 Jul 2010, 08:02 PM
  3. Applying a Javascript code on every page?
    By skyegospel in forum General Questions
    Replies: 2
    Last Post: 19 Nov 2008, 02:29 PM
  4. Where to add code so it shows on every page?
    By FatGuyinAZ in forum General Questions
    Replies: 6
    Last Post: 16 Jul 2008, 04:39 PM
  5. Adding General Information To Every Product Page
    By cjbarnaby in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jun 2007, 11:57 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