Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product tabs


petsk

Recommended Posts

Hi all :)

 

I'm using the Product Tabs Contribution that gives you an extra product description filed, view View Demo Here (the "related tab" isn't part of this contribution).

 

Now I wan't new tab/url next the specifications, linking to the current products reviewpage.

 

In product_info.php, after the <script type="text/javascript" src="scr.js"></script>

 

<TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="70%" STYLE="BORDER: 0PX SOLID #000000;background: #ffffff;">
<tr>
<TD>
    <ul id="mainnav1">
<li><a href="#DESC"><?PHP ECHO TEXT_TAB_DESCRIPTION; ?></a></li>
	 <li><a href="#SPEC"><?PHP ECHO TEXT_TAB_SPEC; ?></a></li>

</ul>

<div id="DESC" class="tabcontent">
      <div style="font-size: 10px;font-weight: bold;border-bottom: 0px dashed #999999;"><?php echo TEXT_TAB_DH; ?></div>
         <br>
         <p><?php echo stripslashes($product_info['products_description']); ?></p>


</div>

<div id="SPEC" class="tabcontent">
      <div style="font-size: 10px;font-weight: bold;border-bottom: 0px dashed #999999;"><?PHP echo TEXT_TAB_SH; ?></div>
         <BR>
         <?php echo stripslashes($product_info['products_spec']); ?>

</DIV>

 

The url to the review page should be inserted after..

<li><a href="#DESC"><?PHP ECHO TEXT_TAB_DESCRIPTION; ?></a></li>
<li><a href="#SPEC"><?PHP ECHO TEXT_TAB_SPEC; ?></a></li>

 

I tried whit te following code but it gives me a Javasript error..

<li><a href="#DESC"><?PHP ECHO TEXT_TAB_DESCRIPTION; ></a></li>
<li><a href="#SPEC"><?PHP ECHO TEXT_TAB_SPEC; ?></a></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . BOX_HEADING_REVIEWS . '</a>'; ?></li>

 

The question is how should the review link be coded? Ideas anyone?

 

:blink:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...