Permalink in Product Page for Website & Forum - CSC 2.0


Permalink is a powerful tool to get FREE backlinks and increase your search engine rankings.

Here is a Permalink for Product Page for CSC 2.0:

1 - Edit this file:

/skins/[Your Skin]/customer/views/products/[COLOR=“Blue”]view.tpl[/COLOR]

2 - Find this code:

{include file="common_templates/tabsbox.tpl" content=$smarty.capture.tabsbox active_tab=$smarty.request.selected_section}<br />

```<br />
<br />
3 - Change it with:<br />
<br />
{include file="common_templates/tabsbox.tpl" content=$smarty.capture.tabsbox active_tab=$smarty.request.selected_section}<br />
{literal}<style>.hide{display:none;}.show{display:block;}.hover1{cursor:pointer;color:blue;margin-right:80px}</style><script type="text/javascript">function toggleView (id){div1 = document.getElementById('details' + id);div1.className = (div1.className == 'show')?div1.className = 'hide':div1.className = 'show';return true;}function SelectAll(id){document.getElementById(id).focus();document.getElementById(id).select();}</script>{/literal}<br />
<table><tbody><tr><td>Permalink from your site : <span class="hover1" onclick="toggleView(1)">Details</span><td>Permalink from a Forum: <span class="hover1" onclick="toggleView(2)">Details</span></td></tr></tbody></table><br />
<table><tbody><tr valign="top"><td><div class="hide" id="details1" style="OVERFLOW: auto"><textarea rows="3" id="txtarea" onClick="SelectAll('txtarea');" style="width:390px" ><a href="http://{$config.http_host}{$http_location}{if $seo_url}{$seo_url.href}{else}/{$current_url}{/if}">{$product.product}</a></textarea></div></td></tr><tr><td><div class="hide" id="details2" style="OVERFLOW: auto"><textarea rows="3" id="txtfld" onClick="SelectAll('txtfld');" style="width:390px" >[URL="http://{$config.http_host}{$http_location}{if $seo_url}{$seo_url.href}{else}/{$current_url}{/if}"]{$product.product}[/URL]</textarea></div></td></tr></tbody></table>
```<br />
<br />
Enjoy!<br />
<br />
Remember, this Permalink tool is good for [URL=""]Search Engine Optimization[/URL]!<br />
<br />
Thanks who?<br />
<br />
<br />
<br />
Lee Li Pop! [SIZE="1"](of course)[/SIZE] ;)

Are you tried and got any good result ?

Any examples? Thanks.

I done it and its working

You can see it live here:


I cant see your permalink on this page, sorry!

[quote name=‘Triplex’]I cant see your permalink on this page, sorry![/QUOTE]

Me too. Still no idea what is this…

You can see on my website


Scroll down the page.

You can see this demo on my website


Scroll down the page

More excellent ideas Lee Li but I think this is more of how it is supposed to be:

```php {literal}.hide{display:none;}.show{display:block;}.hover1{cursor:pointer;color:blue;margin-right:80px}{/literal}

Permalink for Your Site (HTML): Details Permalink for a Forum (BB): Details

[url={$config.http_host}{$http_location}{if $seo_url}{$seo_url.href}{else}/{$current_url}{/if}]{$product.product}[/url]

EDIT: You probably had it correct Lee Li (with a couple of exceptions). For some reason the url code was removed using the code tags. I had to use the PHP tags to retain the code.

For all that C&Ped Lee Li's code, you need to replace it with this one.

I made a great post over at my blog about Permalink [url][/url]

Hello Kennedy,

Good article with full practical step by step details.

But, is it really about Permalink, or on “How to Install URLs Rewriting on WAMP”?

Here is definition of Permalink:

[QUOTE]Short for “permanent link.”[/QUOTE]


Kennedy, if one day you need to go to the next level, for example, need a fast, stable and secure server, those posts can help you to setup a web server on your own Linux box:


Lee Li Pop

First that’s a pretty ****py definition for permalink and no my article is not about permalinks. Nor is about installing url rewrites. I was trying to simply explain how to get the permalinks working for CS-Cart. I talked about how to do this both on Wamp & on a hosted server but I am sure you have read the article and maybe just misread it.

All I have done on this forum is to try to help others, but I see that I am not welcome by a Senior Member. Just to let you know permalinks is not a tool and not does it help you get free backlinks.

Why would you even suggest something so random as installing locally on Ubuntu. This has no value in this thread.

[QUOTE]All I have done on this forum is to try to help others, but I see that I am not welcome by a Senior Member.[/QUOTE]

Hello Kennedy,

You will soon learn to completely ignore any posts from Li Li as she seems to have way too much free time on her hands & is most likely from outerspace. :wink:

Rest assured you are welcome on these forums & the majority of CS-Cart users will appreciate your contributions!