Ich meinte mit vorherige Versionen die Shop-Versionen vor 4642. Der php-Abschnitt war für die Breadcrumb und eben für den Sprung "zurück" zuständig.
Hier nun die Version mit "Einkauf fortsetzen"-Button mit Link auf die sitemap-Seite.
/shopping_cart.php
Original Version 4642:
//BOF - web28 - 2011-05-15 - new continue shopping linkif (!empty($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], FILENAME_SHOPPING_CART
) === false && strpos($_SERVER['HTTP_REFERER'],'in_cart') === false) { $_SESSION['continue_link'] = $_SERVER['HTTP_REFERER'];}if(!empty($_SESSION['continue_link'])) { $smarty->assign('CONTINUE_LINK',$_SESSION['continue_link']);}$smarty->assign('BUTTON_CONTINUE_SHOPPING', xtc_image_button
('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING
));//EOF - web28 - 2011-05-15 - new continue shopping link Änderung:
//BOF - web28 - 2011-05-15 - new continue shopping link
// BOC -wayne- changed button continue shopping
/*if (!empty($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], FILENAME_SHOPPING_CART) === false && strpos($_SERVER['HTTP_REFERER'],'in_cart') === false) {
$_SESSION['continue_link'] = $_SERVER['HTTP_REFERER'];
}
if(!empty($_SESSION['continue_link'])) {
$smarty->assign('CONTINUE_LINK',$_SESSION['continue_link']);
}*/
//$smarty->assign('BUTTON_CONTINUE_SHOPPING', xtc_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING));
$smarty->assign('BUTTON_CONTINUE_SHOPPING', '<a href="'.xtc_href_link(FILENAME_CONTENT, 'coID=8').'">'.xtc_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING).'</a>');
// EOC -wayne- changed button continue shopping
//EOF - web28 - 2011-05-15 - new continue shopping link
Ich habe es wie gesagt auf die sitemap-Seite gelinkt und die ganze Abfrage bzgl. Warenkorb entfernt. Wenn Du z.B. auf die index-Seite verlinken möchtest, dann ist es, wenn nichts geändert wurde, die coID=5.
in der /templates/DeinTemplate/module/shopping_cart.html suche:
<p align="right" style="padding-right:70px;">{if $CONTINUE_LINK}<a href="{$CONTINUE_LINK}">{$BUTTON_CONTINUE_SHOPPING}</a> {/if}{$BUTTON_RELOAD} {if $BUTTON_PAYPAL!=''}{$BUTTON_CHECKOUT}<br />{$BUTTON_PAYPAL}{else}{$BUTTON_CHECKOUT}{/if}</p>
{$FORM_END}{/if}
und ersetze mit:
<p align="right" style="padding-right:70px;">{$BUTTON_CONTINUE_SHOPPING} {$BUTTON_RELOAD} {if $BUTTON_PAYPAL!=''}{$BUTTON_CHECKOUT}<br />{$BUTTON_PAYPAL}{else}{$BUTTON_CHECKOUT}{/if}</p>
{$FORM_END}{/if}
Beste Grüße,
Wayne