I would like to know the answer too. Anyone here know what is the right answer to your question. I'll do some research in Google and get back to you if I bump into an useful answer. You should email the people at iPage as they probably could answer your iPage question..
Thanks for that..
However is there a way that the page doesn't have to reload as I am using the anchor within a page?..
Sorry I already have the answer..
Your code contained "/#a" but it's should be "#a".
Thanks heaps for this...
Sorry it doesnt totally work yet..
When my current page for example is:.
Then the anchor links to:.
So it leaves out cPath=32&products_id=92& which links to the current product..
How do I solve this?..
Are you using the tep_href_link function I gave above? If not, that is your problems. If so, post your code..
I am using this:.
<a href="'tep_href_link(FILENAME_PRODUCT_INFO, '', 'NONSSL')"#a"'">''Click here to see result</a>.
<p><a name="a">Here is the result.</a>..
The code you use depends on what kind of page you are using it on (one from catalog or one from english). Pick a catalog page, say privacy.php and place this somewhere near the top so that it is one of the first things you see when the page is displayed.
<?php echo '<a href="'tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL')"/#a"'">''Click here to see result</a> ' ?>.
Then farther down the page (only adding this spacing to show it works) add the following:.
It works fine here. Be sure to add the code snippets above in the proper places - in a table but outside of a row..
I worked it out..
Since I was in a products page I needed to link to the product parameters aswell..
So this was the final coding:.
Link at the top of the page:.
<?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params())"#a"'">Click for additional images</a>' ?>.
Images at bottom of the page:.
<a name="a"> </a><?php require(DIR_WS_MODULESFILENAME_ADDITIONAL_IMAGES); ?>.
Thanks heaps for all your help...
I'm trying to setup an anchor on the product_info.php page..
At the top I have a link to #images and at the bottom I have the anchor #images..
So it's supposed to refer to the anchor on the same page and scroll down..
But it tries to go to site/#images..
Is there a special php coding for anchors?..
Something like this should work.
<a href="'tep_href_link(FILENAME_SOME_PAGE, '', 'NONSSL')"/#a"'">''Click here to see result</a></li>.
<li><p><a name="a">Here is the result.</a></li>.