That is a good idea, that is what i want really but i have no idea how to go about it? I'm thinking if i look at how the manufacturer filter works to display the manufacturer info in a sidebox it would be something like that, only i would want to display more than one article in the sidebox that is related. So on the product page in the Admin, there would be a dropdown where you can select more than one article to link to that product, and the same in the category edit pages?
For the time being, i have created a new sidebox and i am trying to code it so that it displays different links for each category page. I'm not very good at coding though so it is working, however i don't know how to assign more than one link to each category? Heres what i have:
PHP Code:
<?php
/**
* editable sidebox - allows a sidebox editable with the define pages editor to be added to your site
*
* @package templateSystem
* @copyright 2007 Kuroi Web Design
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: blank_sidebox.php 2007-08-10 kuroi $
*/
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
if ($_GET['cPath'] == '75') {
$content = '<div class="adlink"><a href="http://www.drgreens.co.uk/index.php?main_page=faq_info&fcPath=3&faqs_id=3">Summer Growing</a></div>';
} elseif ($_GET['cPath'] == '30') {
$content = '<div class="adlink"><a href="http://www.drgreens.co.uk/index.php?main_page=faq_info&fcPath=4&faqs_id=5">Odour Control</a></div>';
} else {
$content = file_get_contents($define_sidebox);
}
// this is where the content that you have via the Admin is pulled in.
$content .= '</div>';
?>
Does anybody know what code i would have to put to display more than one link for each category. Something like:
if ($_GET['cPath'] == '75') {
$content = '<div class="adlink"><a href="http://www.drgreens.co.uk/index.php?...s_id=3">Summer Growing</a></div>';
AND
$content = '<div class="adlink"><a href="http://www.drgreens.co.uk/index.php?...qs_id=5">Odour Control</a></div>';
And also, this code displays it for the category pages, what code would i have to put to get it to also display on all the product pages in that category?
Any help would be appreciated.
Bookmarks