Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

has any1 test anchor ??


cam_oai

Recommended Posts

i did a FAQ in shipping page and try to add a anchor links, so ppl who click on the "1.How do i login" it will goes to the link down under .

 

BUT the problem is when ppl click it, will will reload the index page again. the code looks ok and i did test it in a new php file and everything work ok.

 

 

how can i make the anchor in that file?

Link to comment
Share on other sites

can you post your non-working code? There are certainly many folks here who have added links to pages, but be patient - - there's no guarantee that someone will reply in less than 1 hour.

 

-jared

Link to comment
Share on other sites

ok, here was my step by step.

 

1. i copied the shipping.php file and rename to faq.php

 

2. i add the code :

-----------------------------------------

 

 

<table width="100%" border="0" cellspacing="3" cellpadding="3">

<tr>

<td class="main"><ul>

<li><strong><a name="top">up</a>Ordering</strong>

<ul>

<li><a href="#Ord1">Can I order products by phone, fax, email?</a></li>

<li>I didn't receive an order confirmation, why ?</li>

<li>I want to know my order status, where can i find it?</li>

</ul>

</li>

<br>

<li>Payment

<ul>

<li>What kind payment methods can I choose in Unique-handcrafts.com ?</li>

<li>Are the products display price included tax ?</li>

</ul>

</li>

</ul>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<a name="Ord1"></a>Can I order products by phone, fax, email?<br>

We are not accept any kind of ordering from email, phone or fax at this moment. All customers must sign up an account in Unique-handcrafts.com and place your orders. [<a href="#top">up</a>]</td>

</tr>

</table>

 

 

----------------------------------------------

 

now when customer click link nr1 it should jump the anchor 1 right? but instead they reload the index.php. i tested this code in an empty php file and is works 100%.

 

 

 

cheers

Link to comment
Share on other sites

Can you try:

<a href="<?php echo tep_href_link('faq.php'); ?>#Ord1">Can I order products by phone, fax, email?</a>

IMHO you need the tep_href_link function to not loose the osC session id when it is (still?) in the url.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...