Jump to content

Add links in categories


Recommended Posts

hello im trying to add a link in my categorie

im trying to link from t shirt designer button on this page www.custom-funky.com

to my www.custom-funky.com/tshirt-designer can any one help me please im pulling my hair out im

i want it to work as when some on press t shirt designer it take them directly to www.custom-funky.com/tshirt-designer

Link to comment
Share on other sites

The easiest way is to edit the /modules/blockcategories/blockcategories.tpl file.

 

1.create a module directory in your themes folder

 

/themes/mytheme/modules/

 

 

2. copy the blockcategories module there and edit the blockcategories.tpl file

 

3. Insert the link to the product page e.g.

 

<li><a href="http://www.yourdomain.com/product.php?id_product=12">T shirt designer</a></li>

 

before </ul> as shown below.

 

<!-- Block categories module -->
<div id="categories_block_left" class="block">
<h4>{l s='Categories' mod='blockcategories'}</h4>
<div class="block_content">
 <ul class="tree {if $isDhtml}dhtml{/if}">
 {foreach from=$blockCategTree.children item=child name=blockCategTree}
  {if $smarty.foreach.blockCategTree.last}
{include file="$branche_tpl_path" node=$child last='true'}
  {else}
{include file="$branche_tpl_path" node=$child}
  {/if}
 {/foreach}

<li><a href="http://www.yourdomain.com/product.php?id_product=12">T shirt designer</a></li>

</ul>
 {* Javascript moved here to fix bug #PSCFI-151 *}
 <script type="text/javascript">
 // <![CDATA[
  // we hide the tree only if JavaScript is activated
  $('div#categories_block_left ul.dhtml').hide();
 // ]]>
 </script>
</div>
</div>
<!-- /Block categories module -->

 

 

 

 

Hope it helps --Let me know if this works for you.

Edited by halennoor (see edit history)
Link to comment
Share on other sites

works like a treat how do i stop it deleting it when upgrading

and how do i move tshirtdesigner to top of the page in the left had colum as i like it at top of all my categies

 

move it up the

 

<ul class="tree {if $isDhtml}dhtml{/if}">
<li><a href="http://www.yourdomain.com/product.php?id_product=12">T shirt designer</a></li>

 

if you have the module folder in the theme directory it won't be overwritten when your upgrading your presta version.

Link to comment
Share on other sites

got it to work like a treat thanyou so much been trying to do this for day :) i got only 2 more question how do i make it so when you load up my website the currency in pound not dollars i still want to give my customer the opion to viw in dollar and euros but i want the website to load up in pound how do i change it .

second question when you load up www.custom-funky.com there a second right at the top that say need help email us but at the side of this it say live chat how do i take the live chat text way and times as i cant find this any were i look please help thankyou in advance

Link to comment
Share on other sites

got it to work like a treat thanyou so much been trying to do this for day :) i got only 2 more question how do i make it so when you load up my website the currency in pound not dollars i still want to give my customer the opion to viw in dollar and euros but i want the website to load up in pound how do i change it .

second question when you load up www.custom-funky.com there a second right at the top that say need help email us but at the side of this it say live chat how do i take the live chat text way and times as i cant find this any were i look please help thankyou in advance

 

if this topic about "adding the link in categories" is solved can you change the topic to [solved] as requested in the forum rule.

the new questions can be started as a new topic :)

Link to comment
Share on other sites

  • 1 month later...

Hi, I have a question about links in category text. I want for example link in text : " This is a red car." and CAR is а link for another page, RED for another ....

I use < a href="" > CAR </a> in admine panel, but in client panel is like : " This is a red < a href=""> CAR. <_<

I want many links for do SEO and page rank not only one. In products this is easy but in category i don't know how to do it.

The site is sikera-bs.com but it is in Bulgarian and I don't know do you understand something.

 

Sorry for errors but I can't write very well in english. :unsure:

Link to comment
Share on other sites

×
×
  • Create New...