Guten Morgen in die Runde,
ich hatte das Problem in meinem Shop, dass die Sonderangebote immer ohne cPath aufgerufen wurden. Was leider mein Layout zum Teil etwas "unvorteilhaft" veränderte.
Um das zu korrigieren, habe ich folgende Änderungen vorgenommen:
1. /inc/xtc_product_link.inc.php (Änderung direkt vor return):
if (!isset($_GET['cPath'])) { // Abfrage des cPaths eines Produktes $cPath = xtc_get_product_path
(xtc_get_prid
($pID)); } else { $cPath = $_GET['cPath']; } return 'products_id='.$pID.'&cPath='.$cPath; 2. Da das Ganze dann jedoch nur mit Nicht-SEO-Urls funktionierte gab es noch eine ähnliche Änderung in der /inc/shop_stat_functions.inc.php
/*
* FUNCTION shopstat_hrefLink
*/function shopstat_hrefLink
($cat_desc, $product_name, $product_id) { $link = ""; if (shopstat_hrefSmallmask
($cat_desc)) { $link .= shopstat_hrefSmallmask
($cat_desc)."/"; } if (!isset($_GET['cPath'])) { // Abfrage des cPaths eines Produktes $cPath = xtc_get_product_path
(xtc_get_prid
($product_id)); } else { $cPath = $_GET['cPath']; } // Auskommentiert, da ein Fehler beim Übersetzung passiert / Link wird mit 3 ::: und danach der 1. : in %3A übersetzt! // $link .= shopstat_hrefMask($product_name).ART_DIVIDER.$product_id.SEO_SEPARATOR.$_GET['cPath'].".html"; $link .= shopstat_hrefMask
($product_name).ART_DIVIDER
.$product_id.SEO_SEPARATOR
.$cPath.".html"; return($link);} Vielleicht bringt es dem ein oder anderen was.
Viel Spaß damit.
Für Rückfragen stehe ich Ihnen gerne zur Verfügung.
Beste Grüße
+ werk-statt +
Linkback: https://www.modified-shop.org/forum/index.php?topic=37573.0