I am affilliating with a T Shirt company who are building a site based on my store. What I want to do is add a link to this page/pages in the Categories Sidebox.
Is this possible and if so how do I do it?
Many thanks in advance.
I am affilliating with a T Shirt company who are building a site based on my store. What I want to do is add a link to this page/pages in the Categories Sidebox.
Is this possible and if so how do I do it?
Many thanks in advance.
Wild Fashions (Alternative)
Using Zen Cart 1.38 and Purple Lily Template
What are you trying to accomplish with the link(s)?
Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.
Holzheimer
Fan Odyssey
Quite possible. There are several ways you could do it; probably the easiest is to add the link directly to your tpl_categories.php with code like this: How do I add additional links to the Header and Footer?
To put the link near the all/featured/new links, add it here:PHP Code:
// display a separator between categories and links
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<hr id="catBoxDivider" />' . "\n";
}
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
PHP Code:
// display a separator between categories and links
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<hr id="catBoxDivider" />' . "\n";
}
echo '<a href="http://your_external_link.com">Your Link Text</a><br />'. "\n";
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
Depending on the goal or use, I was going to suggest either EZ-Pages or the "about us" mod to put the link(s) in a separate box because I'm not sure the info belongs with the categories.
Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.
Holzheimer
Fan Odyssey
True ... there are any number of ways the OP's intention could be organized, and knowing the best would require more info than we have.
OK and thanks for the replies, seems a bit heavy
No time at the mo but will try the above options later on.
Its giving me a headache just thinking about it!
Wild Fashions (Alternative)
Using Zen Cart 1.38 and Purple Lily Template
Sorry should have added:
The only goal I require is that I can place a link in the Categories sidebox to an external web page.
Wild Fashions (Alternative)
Using Zen Cart 1.38 and Purple Lily Template
OK and again thanks for your quick replies.
Decided to use ezpages to acomplish this. I would have preferred the link in the categories sidebox but this is just as good. Renamed the sidebox to T Shirts and set the order for it to be just below the categories sidebox.
Thanks
Wild Fashions (Alternative)
Using Zen Cart 1.38 and Purple Lily Template
Hello,
I wanted to do the same thing and came up with the following, perhaps it works for you too:
first of all, find tpl_header.php from the includes/templates/template_default/sideboxes folder
open it and add the following code
after line 14 for a link above the menu (like this:)PHP Code:
$content .= '<a class="category-external" href="http://URL">EXTERNAL</a>' . "\n";
and the same after line 61 for one on the bottom (like this:)PHP Code:
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<a class="category-external" href="http://yourexternalURL">EXTERNALTOP</a>' . "\n";
for ($i=0;$i<sizeof($box_categories_array);$i++) {
Hope this helps, let us know!PHP Code:
$content .= '<br />' . "\n";
}
}
$content .= '<a class="category-external" href="http://yourexternalURL">EXTERNALBOTTOM</a>' . "\n";
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
DMR
Hi, I hope this thread is still running.
I want to do something similiar, but if I change the code using one of the ways suggested, will it affect the way the rest of my store functions?
I want all my categories to act as normal but then have 1 or 2 link to an affiliate site when clicked on, such amazon.
Is this possible?
I've seen that i can do it for products by changing them to general-document, but want to be able to link straight fromt eh categorie title.
Thanks
Bookmarks