Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.3

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Anchor to the description - Subproducts
PostPosted: Tue Dec 20, 2011 9:35 pm 
Online
CRE Newbie
User avatar

Joined: Fri Jul 29, 2011 6:48 am
Posts: 12
Hi,

I need a way to make a link to the sub products in the description as I have a lot of text to display before the actual subproducts and this is often confusing customers as they don't see them.

I have placed a text in place of the price field saying view subproducts, but need a way to anchor it to the section below as the urls are SEO based.

A typical example is in this demo : http://loadedcommerce.com/demos/65b2b/c ... l?cPath=20

I know it's pretty basic stuff but I don't have no knowledge of coding.

Cheer!


Top
 Profile  
 
 Post subject: Re: Anchor to the description - Subproducts
PostPosted: Wed Dec 21, 2011 2:49 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Try htmldog.com here:
http://htmldog.com/guides/htmlbeginner/links/

Especially this bit:
Quote:
A link can also send a user to another part of the same page they are on. You can add an id attribute to just about any tag, for example <h2 id="moss">Moss</h2>, and then link to it by using something like this: <a href="#moss">Go to moss</a>. Selecting this link will scroll the page straight to the element with that id.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Anchor to the description - Subproducts
PostPosted: Wed Dec 21, 2011 7:58 am 
Online
CRE Newbie
User avatar

Joined: Fri Jul 29, 2011 6:48 am
Posts: 12
Hello Simon,

I know how to make an anchor, its just that even if I use your implementation, when clicked the anchor reference would take it to the main page rather than the product info page for that particular product.

I think I need to include a php code to reference it to the page's url which as I said is an SEO URL and not the product_info.php?id=342

Takla


Top
 Profile  
 
 Post subject: Re: Anchor to the description - Subproducts
PostPosted: Wed Dec 21, 2011 11:03 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Nah .. .you can still use the default store urls to link pages even if you're using an url rewriter.

Try this in a <?php block on the product's page:
Code:
echo '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action','cPath','products_id')) . 'products_id=' . $product_info['products_id'] . '&amp;cPath=' . tep_get_product_path($product_info['products_id']) . '#jumphere') . '">Jump!</a>';

Calling the anchor point 'jumphere' ...

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.3

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Thu May 24, 2012 1:38 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy