Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default remove script from product info pages?

    Is it possible to remove a sitewide script from *only* the product_info pages? I can't seem to get the right syntax for this.

    I've saved the file *without* the "jscript" at the beginning of the filename, hoping I could call it in to all pages, then use a conditional to keep it from appearing on the product_info pages, but I've had no luck.

    If, by chance anyone has a better idea of how I could accomplish what I want - what I'm *trying* to do is remove the Image Handler 2 script from the product info pages - I don't want a popup for a larger image to be available from that page. I'd like the "larger image" link to be gone, and I don't want the image to have the popup link on it.

    The only way I can thin of to do this is by using a conditional to remove the script from those pages only - but as I said, I can't seem to get the syntax right.

    Anyone have any ideas for me, please?

  2. #2
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default Re: remove script from product info pages?

    Okay - got it. I renamed the script file so the "jscript_" wasn't in front of it. Then I added this line right before the </head>:

    Code:
    if ($tmp_products_id != '') {}
    else { echo '<script type="text/javascript" src="' . DIR_WS_TEMPLATE . 'jscript/imagehover.js"></script>'. "\n";}
    Now the script does not appear on any products page (but it *will* appear on the listing pages, etc.)

    Cool.

 

 

Similar Threads

  1. v139h Script to remove SSL from certain pages
    By cactusrunning in forum General Questions
    Replies: 9
    Last Post: 21 Mar 2013, 06:00 AM
  2. Replies: 8
    Last Post: 4 May 2012, 08:17 PM
  3. Remove 'Product 1/..' from product info pages.
    By kathsta in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Apr 2009, 11:02 PM
  4. Remove price from Browser Title Bart on product info pages?
    By trendypixels in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Feb 2009, 04:00 AM
  5. Remove In stock Qty and Manufacturer info from Product info?
    By this side up in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Dec 2006, 07:59 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