Hallo,
eigentlich ganz logisch
da dein Shop schon etwas länger online ist, werden vermutlich einige User
Links auf index.php&mp=main&file=main
haben... evtl. auch Google
site:
www.domain.at Indizierte Seiten vom Shop bei Google
Ich würde daher noch die
~/shop/includes/page/main/main.php
mit
~/shop/includes/page/main/shop.php
austauschen
und
~/shop/includes/langauges/*je sprache*/main_main.php
mit
~/shop/includes/langauges/*je sprache*/main_shop.php
Wenn du doch noch deine
"Sonderangebote"
"Produkt Empfehleungen "
usw. von der Startseite (Home)
haben möchtest
<!--c1--><div class='codetop'>QUELLTEXT[/align]<div class='codemain'><!--ec1--> if ($category_depth == 'nested') {
$aOption['template_main] = $sTheme . '/system/nested.html';
$aOption['page_heading] = $sTheme . '/system/nested_heading.html';
$nPageType = OOS_PAGE_TYPE_CATALOG;
$sGroup = trim($_SESSION['member]->group['text]);
$contents_cache_id = $sTheme . '|shop|nested|' . intval($nCurrentCategoryId) . '|' . $cPath . '|' . $sGroup . '|' . $sLanguage;
include OOS_INCLUDES . 'oos_system.php';
if (!isset($option)) {
include OOS_INCLUDES . 'info_message.php';
include OOS_INCLUDES . 'oos_blocks.php';
include OOS_INCLUDES . 'oos_counter.php';
}
if ( (USE_CACHE == 'true') && (!SID) ) {
$smarty->caching = 2;
$smarty->cache_lifetime = 8 * 24 * 3600;
}
$smarty->assign('oos_breadcrumb', $oBreadcrumb->trail(BREADCRUMB_SEPARATOR));
if (!$smarty->is_cached($aOption['template_main], $contents_cache_id)) {
$sql = "SELECT cd.categories_name, cd.categories_heading_title, cd.categories_description, c.categories_image
FROM " . $oosDBTable['categories] . " c,
" . $oosDBTable['categories_description] . " cd
WHERE c.categories_id = '" . intval($nCurrentCategoryId) . "'
AND cd.categories_id = '" . intval($nCurrentCategoryId) . "'
AND cd.categories_languages_id = '" . intval($nLanguageID) . "'";
$category_result = $db->Execute($sql);
$category = $category_result->fields;
if (isset($cPath) && ereg('_', $cPath)) {
// check to see if there are deeper categories within the current category
$category_links = array_reverse($aCategoryPath);
for($i=0, $n=count($category_links); $i<$n; $i++) {
$sql = "SELECT c.categories_id, c.categories_image, c.parent_id, c.categories_status, cd.categories_name
FROM " . $oosDBTable['categories] . " c,
" . $oosDBTable['categories_description] . " cd
WHERE c.categories_status = '1'
AND c.parent_id = '" . intval($category_links[$i]) . "'
AND c.categories_id = cd.categories_id
AND cd.categories_languages_id = '" . intval($nLanguageID) . "'
ORDER BY c.sort_order, cd.categories_name";
$categories_result = $db->Execute($sql);
if ($categories_result->RecordCount() < 1) {
// do nothing, go through the loop
} else {
break; // we've found the deepest category the customer is in
}
}
} else {
$sql = "SELECT c.categories_id, cd.categories_name, cd.categories_description,
c.categories_image, c.parent_id, c.categories_status
FROM " . $oosDBTable['categories] . " c,
" . $oosDBTable['categories_description] . " cd
WHERE c.categories_status = '1'
AND c.parent_id = '" . intval($nCurrentCategoryId) . "'
AND c.categories_id = cd.categories_id
AND cd.categories_languages_id = '" . intval($nLanguageID) . "'
ORDER BY c.sort_order, cd.categories_name";
$categories_result = $db->Execute($sql);
}
$rows = 0;
$categories_box = '';
while ($categories = $categories_result->fields) {
$rows++;
$cPath_new = oos_get_path($categories['categories_id]);
$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
$categories_box .= ' <td align="center" class="smallText" style="width: ' . $width . '" valign="top"><a href="' . oos_link($aModules['main], $aFilename['shop], $cPath_new) . '">';
if (oos_is_not_null($categories['categories_image])) {
$categories_box .= oos_image(OOS_IMAGES . $categories['categories_image], $categories['categories_name], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '
';
} else {
$categories_box .= oos_image(OOS_IMAGES . 'trans.gif', $categories['categories_name], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT, 'style="border: 3px double black"') . '
';
}
$categories_box .= $categories['categories_name] . '</a></td>' . "\n";
if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $categories_result->RecordCount())) {
$categories_box .= ' </tr>' . "\n";
$categories_box .= ' <tr>' . "\n";
}
$categories_result->MoveNext();
}
$new_products_category_id = $nCurrentCategoryId;
include OOS_MODULES . 'new_products.php';
if ( (ALLOW_CATEGORY_DESCRIPTIONS == 'true') && (oos_is_not_null($category['categories_heading_title])) ) {
$smarty->assign('oos_heading_title', $category['categories_heading_title]);
} else {
$smarty->assign('oos_heading_title', $aLang['heading_title]);
}
$smarty->assign(
array(
'category' => $category,
'categories_box' => $categories_box
)
);
}
$smarty->assign('oosPageHeading', $smarty->fetch($aOption['page_heading], $contents_cache_id));
$smarty->assign('contents', $smarty->fetch($aOption['template_main], $contents_cache_id));
$smarty->caching = false;
}<!--c2-->[/align]<!--ec2-->
um die Moduel der 'main' erweitern.
Der Aufbau einer Seite (Page) ist immer gleich
Du erweiterst zuerst die die Templates in $sOption
<!--c1--><div class='codetop'>QUELLTEXT[/align]<div class='codemain'><!--ec1-->
$aOption['new_news] = $sTheme . '/modules/news/new_news.html';
if ($oEvent->installed_plugin('spezials')) $aOption['new_spezials] = $sTheme . '/modules/products/new_spezials.html';
if ($oEvent->installed_plugin('featured')) $aOption['featured] = $sTheme . '/modules/products/featured.html';
$aOption['upcoming_products] = $sTheme . '/modules/products/upcoming_products.html';<!--c2-->[/align]<!--ec2-->
um das Modul, was du haben möchtest.
Und fügst du anschliessend das Modul ein
z.B. Die 'wichtigsten Produkte' in dem Shop.
<!--c1--><div class='codetop'>QUELLTEXT[/align]<div class='codemain'><!--ec1--> if ($oEvent->installed_plugin('featured')) {
if (!$smarty->is_cached($aOption['featured], $oos_modules_cache_id)) {
include OOS_MODULES . 'featured.php';
}
$smarty->assign('featured', $smarty->fetch($aOption['featured], $oos_modules_cache_id));
}<!--c2-->[/align]<!--ec2-->
Im Template
fügst du nur noch die Anzeige ein...
{$featured}
{$new_news}
{$new_spezials}
{$new_products}
{$upcoming_products}
Dies ist die Leistungsfähigkeit von unserem Projekt
mach dies mal mit einem
anderen Shop
Und wenn man dies mit den Modulen 'kappiert' hat... kann man diese überall veröffentlichen
cu
ralf