Neueste Nachrichten (in Englisch): (am laden..)

Küchenchef

Members
  • Gesamte Inhalte

    19
  • Benutzer seit

  • Letzter Besuch

Ansehen in der Community

1 Neutral

Über Küchenchef

Profile Information

  • Gender
  • Ihr Name
    Chef
  1. X-Sell

    Danke, das ist schon mal sehr viel besser.
  2. X-Sell

    die ganze x-sell ************************************ <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ if ((USE_CACHE == 'true') && empty($SID)) { require('includes/classes/currencies.php'); $currencies = new currencies(); } if (isset($_GET['products_id'])) { $xsell_query = tep_db_query("select p.products_id, p.products_quantity, p.products_image, pd.products_name, p.products_tax_class_id, p.products_price, pd.products_description, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price from " . TABLE_PRODUCTS_XSELL . " xp left join " . TABLE_PRODUCTS . " p on xp.xsell_id = p.products_id left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where xp.products_id = '" . $_GET['products_id'] . "' and p.products_status = '1' order by sort_order asc limit " . MAX_DISPLAY_XSELL); $num_products_xsell = tep_db_num_rows($xsell_query); if ($num_products_xsell > 0) { $products_xsell_content = NULL; while ($xsell = tep_db_fetch_array($xsell_query)) { $products_xsell_content .= '<div class="col-sm-6 col-md-4" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/Product">'; $products_xsell_content .= ' <br><div class="productHolder equal-height">'; if (PRODUCT_LIST_IMAGE > 0) { $image = ''; if ($xsell['image_display'] == 1) { $image = '<a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . '<img src="../images/list_price_std.png" alt="" border="0" />' . '</a><br>'; } elseif (($xsell['image_display'] != 2) && tep_not_null($xsell['products_image'])) { $image = '<a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . tep_image('images/' . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); } if (isset($_GET['manufacturers_id']) && tep_not_null($_GET['manufacturers_id'])) { $products_xsell_content .= ' <a href="' . tep_href_link('product_info.php', 'manufacturers_id=' . $_GET['manufacturers_id'] . '&products_id=' . $xsell['products_id']) . '"><div class="wdw_carousel-inner">' . $image . '</div></a>'; } else { $products_xsell_content .= ' <a href="' . tep_href_link('product_info.php', (isset($sort) ? 'sort=' . $sort . '&' : '') . ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $xsell['products_id']) . '"><div class="wdw_carousel-inner">' . $image . '</div></a>'; } } $products_xsell_content .= ' <div class="caption">'; if (PRODUCT_LIST_NAME > 0) { $products_xsell_content .= ' <h2 class="group inner list-group-item-heading">'; if (isset($_GET['manufacturers_id']) && tep_not_null($_GET['manufacturers_id'])) { $products_xsell_content .= ' <a itemprop="url" href="' . tep_href_link('product_info.php', 'manufacturers_id=' . $_GET['manufacturers_id'] . '&products_id=' . $xsell['products_id']) . '"><span itemprop="name">' . $xsell['products_name'] . '</span></a>'; } else { $products_xsell_content .= ' <a itemprop="url" href="' . tep_href_link('product_info.php', ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $xsell['products_id']) . '"><span itemprop="name">' . $xsell['products_name'] . '</span></a>'; } $products_xsell_content .= ' </h2>'; } $extra_list_contents = NULL; if ( (PRODUCT_LIST_MANUFACTURER > 0) && tep_not_null($xsell['manufacturers_id']) ) { $extra_list_contents .= '<dt>' . TABLE_HEADING_MANUFACTURER . '</dt>'; $extra_list_contents .= '<dd><a href="' . tep_href_link('index.php', 'manufacturers_id=' . (int)$xsell['manufacturers_id']) . '">' . $xsell['manufacturers_name'] . '</a></dd>'; } if ( (PRODUCT_LIST_MODEL > 0) && tep_not_null($xsell['products_model']) ) { $extra_list_contents .= '<dt>' . TABLE_HEADING_MODEL . '</dt>'; $extra_list_contents .= '<dd>' . $xsell['products_model'] . '</dd>'; } if ( (PRODUCT_LIST_QUANTITY > 0) && (tep_get_products_stock($xsell['products_id']) > 0) ) { $qty = $xsell['products_quantity']; $extra_list_contents .= '<dt>' . TABLE_HEADING_QUANTITY . '</dt>'; $extra_list_contents .= '<dd>' . $qty . '</dd>'; } if (PRODUCT_LIST_WEIGHT > 0) { $extra_list_contents .= '<dt>' . TABLE_HEADING_WEIGHT . '</dt>'; $extra_list_contents .= '<dd>' . $xsell['products_weight'] . '</dd>'; } if (tep_not_null($extra_list_contents)) { $products_xsell_content .= ' <dl class="dl-horizontal list-group-item-text">'; $products_xsell_content .= $extra_list_contents; $products_xsell_content .= ' </dl>'; } if ( (PRODUCT_LIST_PRICE > 0) || (PRODUCT_LIST_BUY_NOW > 0) ) { $products_xsell_content .= '<div class="row">'; if ($xsell['products_request'] != '1') { if (PRODUCT_LIST_PRICE > 0) { if (tep_not_null($xsell['specials_new_products_price'])) { $products_xsell_content .= '<div class="col-xs-12" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><meta itemprop="priceCurrency" content="' . tep_output_string($currency) . '" /><div class="btn-group" role="group"><del>' . $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</del></span>&nbsp;&nbsp;<span class="productSpecialPrice" itemprop="price" content="' . $currencies->display_raw($xsell['specials_new_products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '">' . $currencies->display_price($xsell['specials_new_products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</span></div></div>'; } else { $products_xsell_content .= '<div class="col-xs-12" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><meta itemprop="priceCurrency" content="' . tep_output_string($currency) . '" /><div class="btn-group" role="group"><span itemprop="price" content="' . $currencies->display_raw($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '">' . $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</span></div></div>'; } } } $products_xsell_content .= '</div>'; $products_xsell_content .= '<div class="row">'; if (PRODUCT_LIST_BUY_NOW > 0) { if ((STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true')) { $qty = (isset($xsell['products_quantity']) ? $xsell['products_quantity'] : 'x'); if (($xsell['products_bundle'] == 'yes') || ($qty == 'x')) $qty = tep_get_products_stock($xsell['products_id']); } if ((STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') && ($qty < 1)) { } else { if (SHOW_BUTTON_BUY_NOW == 'true') { $lc_text = '<br><div class="col-xs-12 text-right">' . tep_draw_button(SMALL_IMAGE_BUTTON_VIEW, 'fa fa-eye', tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']), 'btn-success btn-sm') .'&nbsp;'. tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' . $xsell['products_id']), NULL, NULL, 'btn btn-success') . '</div>'; }else{ $lc_text = '<br><div class="col-xs-12 text-center">' . tep_draw_button(SMALL_IMAGE_BUTTON_VIEW, 'fa fa-eye', tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']), 'btn-success btn-sm') . '</div>'; }} $products_xsell_content .= $lc_text; } $products_xsell_content .= ' </div>'; } $products_xsell_content .= ' </div>'; $products_xsell_content .= ' </div>'; $products_xsell_content .= '</div>'; } ?> <div itemscope itemtype="http://schema.org/ItemList"> <meta itemprop="itemListOrder" content="http://schema.org/ItemListUnordered" /> <meta itemprop="numberOfItems" content="<?php echo MAX_DISPLAY_XSELL; ?>" /> <h3 itemprop="name"><?php echo TEXT_XSELL_PRODUCTS; ?></h3> <div class="row list-group"> <?php echo $products_xsell_content; ?> </div> </div> <?php } } ?>
  3. X-Sell

    Hallo Ingo & Manfred, application_top.php if (DISPLAY_CART == 'true') { $goto = 'shopping_cart.php'; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { $goto = basename($PHP_SELF); if ($_GET['action'] == 'buy_now') { // BOE: XSell if (isset($_GET['product_to_buy_id'])) { $parameters = array('action', 'pid', 'products_to_buy_id'); } else { $parameters = array('action', 'pid', 'products_id'); } // EOE: XSell } else { $parameters = array('action', 'pid'); } } ******************************************************************************* modules/xsell_products.php if ((STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true')) { $qty = (isset($xsell['products_quantity']) ? $xsell['products_quantity'] : 'x'); if (($xsell['products_bundle'] == 'yes') || ($qty == 'x')) $qty = tep_get_products_stock($xsell['products_id']); } if ((STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') && ($qty < 1)) { } else { if (SHOW_BUTTON_BUY_NOW == 'true') { $lc_text = '<br><div class="col-xs-12 text-right">' . tep_draw_button(SMALL_IMAGE_BUTTON_VIEW, 'fa fa-eye', tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']), 'btn-success btn-sm') .'&nbsp;'. tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' . $xsell['products_id']), NULL, NULL, 'btn btn-success') . '</div>'; }else{ $lc_text = '<br><div class="col-xs-12 text-center">' . tep_draw_button(SMALL_IMAGE_BUTTON_VIEW, 'fa fa-eye', tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']), 'btn-success btn-sm') . '</div>'; }} $products_xsell_content .= $lc_text; }
  4. Mehrere products_id gleichzeitig

    Danke.
  5. X-Sell

    Ich habe eine Frage zum X-Sell Modul. Was muss wo eingestellt werden, damit ich beim Klick auf Kaufen nicht auf eine andere Seite weitergeleitet werde ? Im Admin ist die Weiterleitung auf false gestellt und alle Seiten bleiben gleich, doch bei X-Sell werde ich nach dem Kauf zu index.php geleitet. Kann hier jemand etwas Hilfe leisten ? Danke
  6. Hallo Leute, vielleicht könnte mir jemand weiterhelfen. Ich möchte bei bestimmten Produkten einen Extrabutton einfügen. damit kann ich einem Artikel den Button zuweisen: <?php if ( $product_info['products_id'] == '32' ) { ?> <a href='<?php echo tep_href_link('product_info_popup.php?products_id=54'); ?>', target="_blank"><?php echo tep_draw_button(IMAGE_BUTTON_EXTRA_COVERING, 'fa fa-plus-square-o');?></a> <?php } ?> aber wie mach ich es wenn es mehrere Produkte sind bei denen dieser Button erscheinen soll ? Habs so versucht doch leider funktioniert es nicht. <?php if ( $product_info['products_id'] == '32' || '33' || '34' ) { ?> Bitte, wenn jemand helfen könnte ?
  7. Surfalot und CK-Editor

    @oscspezialist Hat alles wunderbar geklappt Ein grosser Dank an Manfred von WebDesign Wedel.
  8. Surfalot und CK-Editor

    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ ?> <!DOCTYPE html> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="robots" content="noindex,nofollow"> <title><?php echo TITLE; ?></title> <base href="<?php echo ($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_ADMIN : HTTP_SERVER . DIR_WS_ADMIN; ?>" /> <!--[if IE]><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js', '', 'SSL'); ?>"></script><![endif]--> <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.10.4.min.css', '', 'SSL'); ?>"> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-2.2.3.min.js', '', 'SSL'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.10.4.min.js', '', 'SSL'); ?>"></script> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) { ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/i18n/jquery.ui.datepicker-' . JQUERY_DATEPICKER_I18N_CODE . '.js', '', 'SSL'); ?>"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script> <?php } ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.min.js', '', 'SSL'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.time.min.js', '', 'SSL'); ?>"></script> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <link rel="stylesheet" href="includes/navigation/sidebar.css"> <script type="text/javascript" src="includes/general.js"></script> <?php //this code block is optional - if you want the ability to turn the editor on and off in admin add this - its not necessary and is not needed to make the editor work if (!defined('USE_CKEDITOR_ADMIN_TEXTAREA')) { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, set_function) values ('', '<strong>HTML-Editor Wechselschalter [ * Bitte lesen * ]</strong>', 'USE_CKEDITOR_ADMIN_TEXTAREA','true','Sobald Sie Ihre Informationsseiten bearbeiten wollen, muss dieser HTML-Editor unbedingt auf (false) gesetzt werden.',1,99,now(),'tep_cfg_select_option(array(\'true\', \'false\'),' )"); define ('USE_CKEDITOR_ADMIN_TEXTAREA','true'); } if (USE_CKEDITOR_ADMIN_TEXTAREA == "true") { ?> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/ckeditor.js'); ?>"></script> <!-- If you would rather use ckeditor.js file from a CDN uncomment the line below and comment the line above - if the version number has changed remember to change the version number - you'll actually find the line of code on the ck editor web site for your version --> <!-- <script src="//cdn.ckeditor.com/4.4.4/full/ckeditor.js"></script> --> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/adapters/jquery.js'); ?>"></script> <script type="text/javascript"> $(function() { var $editors = $('textarea'); if ($editors.length) { $editors.each(function() { var editorID = $(this).attr("id"); var instance = CKEDITOR.instances[editorID]; if (instance) { CKEDITOR.remove(instance); } CKEDITOR.replace(editorID); }); } }); </script> <?php // the closing brace here forms part of the php code block above } //if you decide to leave out the php code block above then comment or remove this too ?> </head> <body> <?php require('includes/header.php'); ?> <div id="contentText" class="container-fluid"> ######################## Bei mir hat der CKEditor die anbindung über dieses script oben admin/includes/application_top.php Doch der TinyMCE ist direkt über das Surfalot Modul integriert und hier komme ich leider nicht weiter
  9. Surfalot und CK-Editor

    Danke, ja habe ich schon auch festgestellt. Das Problem ist, dass ich TinyMCE installiert habe und dann hat garnichts mehr funktioniert. Weder Surfalot noch die Produktbeschreibung war erreichbar. Bei TinyMCE genauso wie bei CK ist das script in der template_top dafür verantwortlich, dass die Anbindung nicht so ganz möchte wie ich es will. Ich hatte mir schon die Dateien von Surf angesehen ob vieleicht den Editor der schon vorhanden ist irgendwie zu verbinden doch leider schaff ich es nicht.
  10. Surfalot und CK-Editor

    Hat jemand das Surfalot und CK-Editor installiert ? Hier beisen sich die zwei Versionen. Sobald CK installiert ist funzt Surfalot WYSIWYG nicht mehr. Der Fehler wird durch dieses script erzeugr: <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/ckeditor.js'); ?>"></script> <!-- If you would rather use ckeditor.js file from a CDN uncomment the line below and comment the line above - if the version number has changed remember to change the version number - you'll actually find the line of code on the ck editor web site for your version --> <!-- <script src="//cdn.ckeditor.com/4.4.4/full/ckeditor.js"></script> --> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/adapters/jquery.js'); ?>"></script> <script type="text/javascript"> $(function() { var $editors = $('textarea'); if ($editors.length) { $editors.each(function() { var editorID = $(this).attr("id"); var instance = CKEDITOR.instances[editorID]; if (instance) { CKEDITOR.remove(instance); } CKEDITOR.replace(editorID); }); } }); </script> Für jede Hilfe bin ich dankbar. PS. Es geht um 2.3.4 Bootstrap EDGE