Shop Support News Archive - Shopbetreiber News -> Forum : xt eCommerce Templates Module SEO Support: GPL Shop Anpassung: Popup Entfernen
Hallo,
Ich möchte gerne das die Versandkosten nicht mehr in einem Popup Fenster geöffnet werden, sondern ganz normal mit einen zurück Button angezeigt werden.
Halt so wie er in den meisten Shops unter " Mehr über... Liefer und Versandkosten steht".
Kann mir jemand da helfen?
Ich habe mir schon diese Geschnichte mit der "Neuen Abmahnwelle" durchgelesen und das es wohl doch schon zu Abmahnungen gekommen sein soll weil die Versandkosten in einen Popup-Fenster erscheinen.
Ich persönlich finde dieses Popup auch nicht so toll.
Wo muss ich was ändern damit dieser Link geändert wird und die Popups überall verschwinden.?
Gruß
Andy
So, nun habe ich selber mal ein bischen herumgefummelt.
// Link zu den Versandkosten ändern ( ohne Popup-Fenster )
Bitte vorher eine Sicherung der Dateien anlegen!!
Suche in: shop/includes/modules/product_listing.php
****if (SHOW_SHIPPING=='true') {
********$ship_info=' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' (java script:newWin=void(window.open(\''.xtc_href_link(F ILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\')))';
****}
ersetzen durch:
if (SHOW_SHIPPING=='true') {
********$ship_info=' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' ('.xtc_href_link(FILENAME_CONTENT, 'coID='.SHIPPING_INFOS).')';
****}
Suche in: shop/includes/modules/product_info.php
if (SHOW_SHIPPING=='true') {
********$info_smarty->assign('PRODUCTS_SHIPPING_LINK',' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' (java script:newWin=void(window.open(\''.xtc_href_link(F ILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\')))');
****}
ersetzen durch:
if (SHOW_SHIPPING=='true') {
****************$info_smarty->assign('PRODUCTS_SHIPPING_LINK',' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' ('.xtc_href_link(FILENAME_CONTENT, 'coID='.SHIPPING_INFOS).')');
****}
Suche in: shop/templates/Dein Template/source/boxes/shopping_cart.php
****if (SHOW_SHIPPING=='true') {
************$box_smarty->assign('SHIPPING_INFO',' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' (java script:newWin=void(window.open(\''.xtc_href_link(F ILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\')))');
****}
ersetzen durch:
if (SHOW_SHIPPING=='true') {
************$box_smarty->assign('SHIPPING_INFO',' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' ('.xtc_href_link(FILENAME_CONTENT, 'coID='.SHIPPING_INFOS).')');
****}
Suche in: shop/includes/modules/order_details_cart.php
if (SHOW_SHIPPING == 'true') {
********$module_smarty->assign('SHIPPING_INFO', ' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' (java script:newWin=void(window.open(\''.xtc_href_link(F ILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\')))');
****}
ersetzen durch:
if (SHOW_SHIPPING == 'true') {
********$module_smarty->assign('SHIPPING_INFO',' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' ('.xtc_href_link(FILENAME_CONTENT, 'coID='.SHIPPING_INFOS).')');
****}
Suche in: Shop/specials.php
if (SHOW_SHIPPING=='true') {
********$ship_info=' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' (java script:newWin=void(window.open(\''.xtc_href_link(F ILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\')))';
********}
ersetzen durch:
if (SHOW_SHIPPING=='true') {
********$ship_info=' '.SHIPPING_EXCL. Anwalt Hamm''.SHIPPING_COSTS.' ('.xtc_href_link(FILENAME_CONTENT, 'coID='.SHIPPING_INFOS).')';
********}
Suche in: shop/products_new.php
if (SHOW_SHIPPING=='true') {
********$ship_info=' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' (java script:newWin=void(window.open(\''.xtc_href_link(F ILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\')))';
********}
ersetzen durch:
if (SHOW_SHIPPING=='true') {
********$ship_info=' '.SHIPPING_EXCL. Anwalt Hamm''.SHIPPING_COSTS.' ('.xtc_href_link(FILENAME_CONTENT, 'coID='.SHIPPING_INFOS).')';
********}
Suche nach: shop/includes/modules/news_products.php
if (SHOW_SHIPPING=='true') {
************$ship_info= ' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' (java script:newWin=void(window.open(\''.xtc_href_link(F ILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\')))';
********}
ersetzen durch:
if (SHOW_SHIPPING=='true') {
************$ship_info= ' '.SHIPPING_EXCL. Anwalt Hamm''.SHIPPING_COSTS.' ('.xtc_href_link(FILENAME_CONTENT, 'coID='.SHIPPING_INFOS).')';
********}
Nun sollte das Popup-Fenster überall verschwunden sein.
Falls noch einer eine bessere Lösung hat bitte posten.
Für die Änderungen ist jeder selbst verantwortlich.
Getestet mit xtc 3.04 SP1
Gruß
Andy
@Andy - danke für deine anleitung hier!
hinweis (kleiner fehler in der anleitung) :
''>ZITAT</div>
Suche in: shop/templates/Dein Template/source/boxes/shipping_cart.php[/b]
sollte bestimmt sein:
''>ZITAT</div>
Suche in: shop/templates/Dein Template/source/boxes/shopping_cart.php[/b]
mmhh ich hatte früher einfach einen link zu den Versandkosten eingefügt, da hatte ich auch kein popup mehr....
gruss
dywoo
@ Barcelo
hast recht.
Habe es bernichtigt.
Gruß
Andy
@dywoo
poste doch auch Deine Lösung bitte.
Gruß
Andy
ohinrichs
20.09.2006, 14:13
Auch von mir ein fettes Dankeschön für diese Anleitung!!! :)
fundus-owl
20.09.2006, 16:16
''>ZITAT(ohinrichs @ Sep 20 2006, 14:13) 11488
Auch von mir ein fettes Dankeschön für diese Anleitung!!! :)
[/b]
hm,
also ich habe kein popup für die versandkosten, wird ganz einfach in ner neuen adresse aufgemacht.
das ist bei meinem shop standard, nix geändert.
ohinrichs
20.09.2006, 16:19
Hmm?? Ich hab die 3.0.4 SP1 und Standard war dort, dass ein Javascript für ein Popup verantwortlich war, siehe Quellcode oben. Ich hatte davon gelesen, dass das Abmahnungstechnisch Probleme verursachen könnte und wollte das dann weghaben. Dank dieses Threads hier hat es ja auch geklappt :)
EDIT: Du hast ja auch GAMBIO, da ist das viellenicht schon gelöst!?
bluemoon
13.11.2006, 08:54
ja, bei Gambio ist es schon gelöst
''>ZITAT</div> Suche in: shop/includes/modules/product_listing.php
QUELLTEXT
if (SHOW_SHIPPING=='true') {
$ship_info=' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' (java script:newWin=void(window.open(\''.xtc_href_link(F ILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\')))';
}
[/b]
find ich bei mir nicht habe aber auch das popup kann ich das so einfach reinsetzten?
hier mal zur kontrolle die product_listing.php
<?php
/ -----------------------------------------------------------------------------------------
** $Id: product_listing.php 1286 2005-10-07 10:10:18Z mz $
** XT-Commerce - community made shopping
** http://www.xt-commerce.com
** Copyright (c) 2003 XT-Commerce
** -----------------------------------------------------------------------------------------
** based on:
** (c) 2000-2001 The Exchange Project**(earlier name of osCommerce)
** (c) 2002-2003 osCommerce(product_listing.php,v 1.42 2003/05/27); www.oscommerce.com
** (c) 2003**** nextcommerce (product_listing.php,v 1.19 2003/08/1); www.nextcommerce.org
** Released under the GNU General Public License
** --------------------------------------------------------------------------------------- /
$module_smarty = new Smarty;
$module_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
$result = true;
// include needed functions
require_once (DIR_FS_INC.'xtc_get_all_get_params.inc.php');
require_once (DIR_FS_INC.'xtc_get_vpe_name.inc.php');
$listing_split = new splitPageResults($listing_sql, (int)$_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');
$module_content = array ();
if ($listing_split->number_of_rows > 0) {
****$navigation = '
********<table border="0" width="100%" cellspacing="0" cellpadding="2">
**********<tr>
************<td class="smallText">'.$listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS).'</td>
************<td class="smallText" align="right">'.TEXT_RESULT_PAGE.' '.$listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array ('page', 'info', 'x', 'y'))).'</td>
**********</tr>
********</table>';
****if (GROUP_CHECK == 'true') {
********$group_check = "and c.group_permission_".$_SESSION['customers_status']['customers_status_id']."=1 ";
****}
****$category_query = xtDBquery("select
********************************************cd.cat egories_description,
********************************************cd.cat egories_name,
****************************cd.categories_heading_ title,
********************************************c.list ing_template,
********************************************c.cate gories_image from ".TABLE_CATEGORIES." c, ".TABLE_CATEGORIES_DESCRIPTION." cd
********************************************where c.categories_id = '".$current_category_id."'
********************************************and cd.categories_id = '".$current_category_id."'
********************************************".$group_check."
********************************************and cd.language_id = '".$_SESSION['languages_id']."'");
****$category = xtc_db_fetch_array($category_query,true);
****$image = '';
****if ($category['categories_image'] != '')
********$image = DIR_WS_IMAGES.'categories/'.$category['categories_image'];
****$module_smarty->assign('CATEGORIES_NAME', $category['categories_name']);
****$module_smarty->assign('CATEGORIES_HEADING_TITLE', $category['categories_heading_title']);
****$module_smarty->assign('CATEGORIES_IMAGE', $image);
****$module_smarty->assign('CATEGORIES_DESCRIPTION', $category['categories_description']);
****$rows = 0;
****$listing_query = xtDBquery($listing_split->sql_query);
****while ($listing = xtc_db_fetch_array($listing_query, true)) {
********$rows ++;
********$module_content[] =**$product->buildDataArray($listing);********
****}
} else {
****// no product found
****$result = false;
}
// get default template
if ($category['listing_template'] == '' or $category['listing_template'] == 'default') {
****$files = array ();
****if ($dir = opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_listing/')) {
********while (($file = readdir($dir)) !== false) {
************if (is_file(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_listing/'.$file) and ($file != "index.html") and (substr($file, 0, 1) !=".")) {
****************$files[] = array ('id' => $file, 'text' => $file);
************} //if
********} // while
********closedir($dir);
****}
****$category['listing_template'] = $files[0]['id'];
}
if ($result != false) {
****$module_smarty->assign('MANUFACTURER_DROPDOWN', $manufacturer_dropdown);
****$module_smarty->assign('language', $_SESSION['language']);
****$module_smarty->assign('module_content', $module_content);
****$module_smarty->assign('NAVIGATION', $navigation);
****// set cache ID
**** if (!CacheCheck()) {
********$module_smarty->caching = 0;
********$module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_listing/'.$category['listing_template']);
****} else {
********$module_smarty->caching = 1;
********$module_smarty->cache_lifetime = CACHE_LIFETIME;
********$module_smarty->cache_modified_check = CACHE_CHECK;
********$cache_id = $current_category_id.'_'.$_SESSION['language'].'_'.$_SESSION['customers_status']['customers_status_name'].'_'.$_SESSION['currency'].'_'.$_GET['manufacturers_id'].'_'.$_GET['filter_id'].'_'.$_GET['page'].'_'.$_GET['keywords'].'_'.$_GET['categories_id'].'_'.$_GET['pfrom'].'_'.$_GET['pto'].'_'.$_GET['x'].'_'.$_GET['y'];
********$module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_listing/'.$category['listing_template'], $cache_id);
****}
****$smarty->assign('main_content', $module);
} else {
****$error = TEXT_PRODUCT_NOT_FOUND;
****include (DIR_WS_MODULES.FILENAME_ERROR_HANDLER);
}
?>
vlt auch mal wieder blind und es is ja früh kann sein das der koffeinspiegel noch nicht sein level errenicht hat ;)
Hallo,
du hast die 304SP2.1 und die Anleitung ist für die SP1!
die rnichtige Stelle für die SP2.1 wäre in dieser Datei:
includes/classes/main.php
function getShippingLink() {
********return ' '.SHIPPING_EXCL. Anwalt Hamm'<script language="javascript">document.write(\''.SHIPPING_COSTS.' (java script:newWin=void(window.open(\\\''.xtc_href_link (FILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\\\', \\\'popup\\\', \\\'toolbar=0, scrollbars=yes, resizable=yes, height=400, width=400\\\')))\');</script><noscript>'.SHIPPING_COSTS.' ('.xtc_href_link(FILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).')</noscript>';
****}
diese musst du nun ändern!
Gruß
Steffen
thx erstmal für die schnelle antwort am frühen morgen es scheint aber nicht zu reichen bei
FILENAME_POPUP_CONTENT
das "POPUP" zu entfernen oder sind etwa noch weitere php´s zu bearbeiten?
geht es so nicht?
********function getShippingLink() {
********return ' '.SHIPPING_EXCL. Anwalt Hamm' '.SHIPPING_COSTS.' ('.xtc_href_link(FILENAME_CONTENT, 'coID='.SHIPPING_INFOS).')';
****}
doch so is super hatte das ganze andere gedöns noch mit bei
danke dir
oder auch so (http://www.ecombase.de/forum/index.php?showtopic=3137) zu lösen bei SP2
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.