Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Add a Link (hyperlink) inside the porducts area

Add a Link (hyperlink) inside the porducts area

Locked

Views: 751

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 Aug 2009, 11:54 PM
#1
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

Add a Link (hyperlink) inside the porducts area

ok it sort of works :smile:

  1. create new product - done :smile:
  2. add in link of page you wat it to go to - done :smile:
  3. load into cart - done :smile:
  4. it shows up way at the bottom and not in the prduct description:(

What I wat to do is have someone click to see the product and then if they like what they see - click the link that takes them to my on demand printing service - something like the zen cart book.

Any ideas?

Thanks

11 Aug 2009, 10:04 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Add a Link (hyperlink) inside the porducts area

Modify the order in which elements are displayed in the Product Info page by editing tpl_product_info_display.php ...

Find the element:-

<!--bof Product URL -->
<?php
  if (zen_not_null($products_url)) {
    if ($flag_show_product_info_url == 1) {
?>
    <p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php
    } // $flag_show_product_info_url
  }
?>
<!--eof Product URL -->

... and CUT / PASTE it in a different part of the file - higher up...

Each of the elements is "sectioned" by these html commented describers:

<!--bof XXXXXXXX -->

... some code here...

<!--eof XXXXXXXX -->

... so make sure you keep them all separate, but shifting them around changes the display order on the page.

4 Jun 2010, 3:11 PM
#3
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

Re: Add a Link (hyperlink) inside the porducts area

Ok Schoolboy - I fianlly got the chance to work on this one and am stuck..

Were do I put the paste? I tried higher up but not working - not sure if I'm putting it into right place