Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    27
    Plugin Contributions
    0

    help question adding additional info hotlink or button??

    zencart 1.37
    www.mccarthyhighland.com

    I would like to implement a "hotlink" or button for individual products or category, that brings up "additional info" when it is clicked. normal operation is click on a product to display it,a dn choose options. there's a place for descriptive info, however I'd like to also give them the option to get MORE info if they want it.

    I haven't been able to figure out how to do this and can't find any info on it.

    Can anyone explain to me how to do this properly?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: adding additional info hotlink or button??

    You could use the EXISTING "product URL" feature in zencart.

    When you add (or edit) a product, in the product data input screen there is a field into which you can insert a URL for a product's "webpage".

    If you create a range of EZpages, for example, you can prevent them from taking a menu link by not activating these in the EZPages header/sidebox/footer options, but giving them a sort order of, say, "1". This activates the EZPage, but its link won't display anywhere on your site's menu schemes.

    Then, in your product add/edit screen, insert the FULL PATH to that EZPage... eg:

    http://www.YOURWEBSITE.COM/index.php...page=page&id=2

    (note that - as per the instruction - you omit the "http://")

    In a default install of ZC, this link will appear to your visitors right at the bottom of the product info page, but re-positioning it is easy...

    Just open (for editing):

    includes/templates/template_default/templates/tpl_product_info_display.php

    (do this on a COPY of the file on your local machine).

    You will see that the page elements are neatly delimited by comment tagging <!-- bof xxxxxx --> then some code <!-- eof xxxxxx -->

    Find the one encased by:
    Code:
    <!--bof Product URL -->
     some code here
    <!--eof Product URL -->
    CUT that section and PASTE it above a section element of your choice.

    You can also edit some language defines to change the label and message of the resultant link if you want to.

    (As the tpl_product_info_display.php is now CUSTOMISED, you should add the edited file to:

    includes/templates/YOUR-TEMLATE/templates/
    Last edited by schoolboy; 11 Mar 2009 at 05:22 PM.
    20 years a Zencart User

 

 

Similar Threads

  1. v151 Adding Additional Products to Product Info Pages
    By McLovin in forum General Questions
    Replies: 2
    Last Post: 14 May 2015, 03:37 PM
  2. v150 adding additional info to email confirmation
    By mkyle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Apr 2012, 09:45 PM
  3. Adding a more info button alongside buy now button
    By jwburnside in forum General Questions
    Replies: 5
    Last Post: 6 Nov 2010, 01:36 PM
  4. adding additional payment radio button(s)
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Sep 2010, 04:21 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