Yepi1533005574 Posted November 2, 2017 Share Posted November 2, 2017 (edited) Hallo Leute, da es immer wieder zu ausfällen bei Bestellungen kam und Kundenumfrage zufolge, die Weiterleitung zur Produktseite nervte sobald ein Produkt Attribute hatte habe ich es anders gelöst und ermöglichte es Produkte direkt über ein Popup in den Warenkorb zu legen ohne dass die Kunden bestehende Seite verlassen mussten. Hierbei läuft alles gut mit der Ausnahme dass mir ein Javascript fehlt der die Parameter übernimmt. Dank Hilfe von Ingo besteht bereits ein Script mit dem ein Popup generiert wird jedoch die richtigen Werte werden nicht übernommen und es kommt immer wieder zu Anzeige der falschen products_ip Hier wenn jemand etwas nachsehen könnte wäre super. *********************************************************************************************************************************** Hier die entsprechenden Daten.: Popup-Fenster: attributte_popup.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!isset($_GET['products_id'])) { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ATTRIBUTE_POPUP); if (!empty($hiddencats)) { $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and p.products_id = p2c.products_id and (not (p2c.categories_id in (" . implode(',', $hiddencats) . "))) and pd.language_id = '" . (int)$languages_id . "'"); } else { $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); } $product_check = tep_db_fetch_array($product_check_query); // require(DIR_WS_INCLUDES . 'template_top.php'); if ($product_check['total'] < 1) { ?> <div class="contentContainer"> <div class="contentText"> <?php echo TEXT_PRODUCT_NOT_FOUND; ?> </div> <div style="float: right;"> <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?> </div> </div> <?php } else { $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, p.products_base_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$_GET['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); /* if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<del>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</del> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } */ /* WS5 Wholesale - check for wholesale customer + wholesale price if exist */ if ( (tep_session_is_registered('wholesale_customers_id')) && ($wholesale_price = tep_get_products_wholesale_price($product_info['products_id'])) ) { $products_price = '<font color="#0066FF">'. tep_get_products_wholesale_note($product_info['products_id']).'</font><br> '. '<small><span class="productWholesalePrice">' . $currencies->display_price($wholesale_price, tep_get_tax_rate(MODULE_CONTENT_WHOLESALE_LOGIN_FORM_TAX)) .'</small><br>'. $currencies->display_price($wholesale_price,'0') .'</span>'; } else { /* original query below */ if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<del>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</del> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; $priceold = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); $difference = $currencies->display_price($product_info['products_price'] - $new_price, tep_get_tax_rate($product_info['products_tax_class_id'])); $savings = round(($product_info['products_price'] - $new_price)/$product_info['products_price'],2)*100; //$savings = number_format(($product_info['products_price'] - $new_price)/$product_info['products_price']*100,2,',',''); //genau berechnen } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } } $v_new_price = (tep_not_null($new_price) ? $new_price : '0'); // ajax attribute pricechange $v_products_price = (tep_not_null($product_info['products_price']) ? $product_info['products_price'] : '0'); // ajax attribute pricechange if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br /><span class="smallText">[' . $product_info['products_model'] . ']</span>'; // Artikelnummer ausgeschalten $products_name = $product_info['products_name'] . ''; } else { $products_name = $product_info['products_name']; } $products_base_price = $product_info['products_base_price']; ?> <head> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" /> <link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.10.4.min.css" /> <script type="text/javascript" src="ext/jquery/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.10.4.min.js"></script> <?php if ($mobile=='true') { ?> <link rel="stylesheet" type="text/css" href="stylesheet_mobile.css" /> <?php } else { ?> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> <?php } ?> </head> <?php if (basename($PHP_SELF) == FILENAME_ATTRIBUTE_POPUP) { ?> <script type="text/javascript" src="js/change_price.js"></script> <?php } ?> <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_ATTRIBUTE_POPUP, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> <!-- GESAMT TABELLENLAYOUT START --> <!-- Layouttabelle PC- Browseransicht start --> <?php }else{ ?> <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="350"> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-proddesc infoBoxHeading"> <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center" valign="top" width="300"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left"><!-- Produkt Name start --><?php // to add a tick when the item is in the cart $products = $cart->get_products(); $in_cart = ''; for ($i=0, $n=sizeof($products); $i<$n; $i++) { $first = current(explode("{", $products[$i]['id'])); if ($first == $product_info['products_id']) { $in_cart = '<span class="ui-icon ui-icon-check" style="display: inline-block; vertical-align: middle;"></span>'; } } ?> <h1><?php echo $products_name; ?><?php echo $in_cart; ?></h1> <?php echo ARTICEL_NR . $product_info['products_model'], ''; ?> <!-- Produkt Name ende --> <hr /> <!-- Preis start --> <h2><?php if ( (tep_session_is_registered('wholesale_customers_id')) && ($wholesale_price = tep_get_products_wholesale_price($product_info['products_id'])) ) { echo $products_price; } else { ?></h2> <h2 id="display_price"><?php echo $products_price; ?></h2> <?php } ?><?php if (!empty($difference)) { echo '<span class="pricesavingstext">' . TEXT_PRICE_SAVINGS . '</span><span class="pricesavings">' . $difference . ' (' . $savings . '%)</span><br>'; } ?> <div class="base_price"> <!-- // Basispreis ergänzen BOF // --><?php IF (tep_not_null($products_base_price)) { $y_base_price = substr($products_base_price, 0, strrpos($products_base_price, " ")); $y_base_rest = substr($products_base_price, strrpos($products_base_price , ' ')); $products_base_price = $y_base_price; // prüfe auf Sonderangebot // // Wenn Sonderangebot, dann errechne Grundpreis wie folgt: // // ermittle base_price = base_price einlesen solange bis " " // // Faktor = Normalpreis : base_price // // spezial_base_price = Spezialpreis : Faktor // if (tep_not_null($new_price)) { $y_faktor=$product_info['products_price']/$y_base_price; $products_base_price=$new_price/$y_faktor; } $y_tax_rate = tep_get_tax_rate($product_info['products_tax_class_id']); $products_base_price = tep_add_tax($products_base_price, $y_tax_rate); // sicherheitshalber erst runden, dann auf 2 Stellen hinter dem Komma formatieren // $products_base_price=round($products_base_price,2); $products_base_price=sprintf("%01.2f",$products_base_price); $products_base_price = "(" . $products_base_price . $y_base_rest . ")"; echo $products_base_price; } ?><!-- // Basispreis ergänzen BOF // --></div> <!-- Preis ende --></td> </tr> </table> </td> </tr> <tr> <td align="center" valign="top" width="300"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><!-- attribute start --><?php $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$_GET['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-proddesc infoBoxHeading"> <hr> <h1><?php echo TEXT_PRODUCT_OPTIONS; ?></h1> <hr> <?php $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$_GET['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); $numberofopt = tep_db_num_rows($products_options_name_query); $opt_count = 0; $products_attributes = array(); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { array_push($products_attributes,$products_options_name['products_options_id']); $opt_count++; $products_options_array = array(); $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$_GET['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (is_string($_GET['products_id']) && isset($cart->contents[$_GET['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$_GET['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?><strong><?php echo $products_options_name['products_options_name'] . ':'; ?></strong><br /> <?php $comma = ""; $all_option_js = "["; for($t = 1;$t<=$numberofopt; $t++) { $all_option_js .= $comma.'document.getElementById(\'cmbooption_'.$t.'\').value'; $comma = ","; } $all_option_js .= "]"; ?><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute, 'style="width: 250px;"' . ' id="cmbooption_'.$opt_count.'" onChange="getPrice('.$v_new_price.','.$v_products_price.','.(int)$_GET['products_id'].','.$all_option_js.')"'); ?><br /> <?php } ?></p><?php } ?><?php echo TEXT_NO_ATTRIBUTES;?> <input type="hidden" name="optionsid" id="optionsid" value="<?php echo implode(",",$products_attributes); ?>" /> <div style="clear: both;"></div> </div> </div> <!-- attribute ende --></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr height="10"> <td valign="top" width="300" height="10"></td> </tr> <tr> <td valign="top" width="300"> <hr /> </td> </tr> <tr> <td align="left" valign="top" width="300"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" valign="top" width="35%"> <div class="buttonSet"> <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center"><!-- Vervügbarkeit start --><?php if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { $avail = tep_image(DIR_WS_ICONS . 'blue.gif', AMP_TOMORROW , '10', '15'). " " . AMP_TOMORROW; } else { if ($product_info['products_quantity']<=0){ $avail = tep_image(DIR_WS_ICONS . 'red.gif', PICTURE_ONLY_ZERO , '10', '15'). " " . AMP_ONLY_ZERO; } else { $prod_quantity = tep_get_products_stock($product_info['products_id']); switch ($prod_quantity) { case 1: $avail = tep_image(DIR_WS_ICONS . 'yellow.gif', PICTURE_ONLY_ONE , '10', '15'). " " . AMP_ONLY_ONE; break; case 2: $avail = tep_image(DIR_WS_ICONS . 'yellow.gif', PICTURE_ONLY_TWO , '10', '15'). " " . AMP_ONLY_TWO; break; case 3: $avail = tep_image(DIR_WS_ICONS . 'green.gif', PICTURE_ONLY_THREE , '10', '15'). " " . AMP_ONLY_THREE; break; case 4: $avail = tep_image(DIR_WS_ICONS . 'green.gif', PICTURE_ONLY_FOUR , '10', '15') . " " . AMP_ONLY_FOUR; break; default: $avail = tep_image(DIR_WS_ICONS . 'green.gif', $prod_quantity . PICTURE_ONLY_FULL , '10', '15') . " " . AMP_ONLY_FULL; } } } $a = $avail; echo '<b>'. TEXT_QUANTITY_LIST .'</b> '; echo $a ?><!-- Vervügbarkeit ende --></td> </tr> <tr height="4"> <td align="center" height="4"></td> </tr> <tr> <td align="center"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" width="200"><!-- Warenkorbbutton start --> <div class="buttonSet"> <span class="buttonAction"><?php echo '<span class="fieldValue">' . TEXT_ENTER_QUANTITY . ' ' . tep_draw_input_field('cart_quantity', '1', 'size="5" style="vertical-align:middle;"') . '</span> ' . tep_draw_hidden_field('products_id', $product_info['products_id']) . ' ' . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span></div> <!-- Warenkorbbutton ende --></td> </tr> </table> </td> </tr> <tr height="15"> <td height="15"> <hr> </td> </tr> <tr height="5"> <td height="5"></td> </tr> <tr> <td align="center"> <p><?php echo '<a href="#" onclick="window.close(); return false;">' . TEXT_CLOSE_WINDOW . '</a>'; ?> </td> </tr> <tr height="5"> <td align="center" height="5"></td> </tr> </table> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </div> </div> </table> <?php } ?> <!-- Layouttabelle PC- Browseransicht ende --> <!-- GESAMT TABELLENLAYOUT ENDE --> </form> <script type="text/javascript"> <!-- getPrice(<?php echo $v_new_price.','.$v_products_price.','.(int)$_GET['products_id'].','.$all_option_js;?>); //--> </script> <?php } require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Weitergeht es mit der Sprachdatei: attributte_popup.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2013 osCommerce Released under the GNU General Public License */ define('TEXT_PRODUCT_NOT_FOUND', 'Produkt wurde nicht gefunden!'); define('TEXT_MORE_INFORMATION', 'Für weitere Informationen, besuchen Sie bitte die <a href="%s" target="_blank"><u>Homepage</u></a> zu diesem Produkt.'); define('TEXT_PRODUCT_OPTIONS', '<font size="3" color="#b10000"><strong>Bitte treffen Sie Ihre Wahl:</strong></font>'); define('TEXT_ENTER_QUANTITY', 'Menge: '); define('AMP_TOMORROW', 'Artikel in kürze wieder lieferbar!'); define('AMP_ONLY_FULL', 'Sofort lieferbar!'); define('AMP_ONLY_FOUR', 'Sofort lieferbar aber nur noch 4 mal vorrätig!'); define('AMP_ONLY_THREE', 'Sofort lieferbar aber nur noch 3 mal vorrätig!'); define('AMP_ONLY_TWO', 'Sofort lieferbar aber nur noch 2 mal vorrätig!'); define('AMP_ONLY_ONE', 'Sofort lieferbar aber nur noch 1 mal vorrätig! Greifen Sie schnell zu.'); define('AMP_ONLY_ZERO', 'Derzeit nicht lieferbar!'); define('TEXT_QUANTITY_LIST', 'Verfügbarkeit:'); define('TEXT_PRICE_SAVINGS','Sie sparen: '); define('TEXT_NO_ATTRIBUTES','<font size="2" color="#990000"><b>Keine weiteren Produktextras.</b></strong></font>'); define('TEXT_CLOSE_WINDOW','<font size="3" color="#990000">X </font><font size="2" color="#000000"><b>Fenster schliessen</b></strong></font>'); define('TEXT_CLOSE_WINDOW_MOBILE','<font size="6" color="#990000">X </font><font size="6" color="#000000"><b>Fenster schliessen</b></strong></font>'); ?> INSERT INTO `configuration` VALUES (914, 'Direktkauf Popup ermöglichen', 'SHOW_BUY_NOW_PROD_ATTRIB', 'true', 'Direktkauf trotz Atribute ermöglichen', 1, 158, '2006-08-12 19:45:03', '2003-08-14 00:25:08', NULL, 'tep_cfg_select_option(array(''false'', ''true''),'); Abfragen über: if (SHOW_BUY_NOW_PROD_ATTRIB == 'true') { } else { } ************************************************************** catalog/includes/languages/german.php define('TEXT_QUANTITY_LIST', 'Verfügbarkeit'); define('TEXT_ENTER_QUANTITY', 'Menge: '); define('TEXT_CLOSE_WINDOW', 'X Fenster schliessen'); define('IMAGE_BUTTON_PROD_ATTRIBUTES', 'In den Warenkorb legen '); ***************************************************** catalog/includes/filenames.php define('FILENAME_ATTRIBUTE_POPUP', 'attributte_popup.php'); ***************************************************** catalog/images/icons/ Erstellen von Verfügbarkeitsicons yellow.gif green.gif red.gif blue.gif ***************************************************** catalog/includes/modules/product_listing.php finden: case 'PRODUCT_LIST_BUY_NOW': $prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link($PHP_SELF, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>'; break; ersätzen mit: case 'PRODUCT_LIST_BUY_NOW': if (SHOW_BUY_NOW_PROD_ATTRIB == 'false') { $prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link($PHP_SELF, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>'; }else{ $prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'plusthick', tep_href_link(FILENAME_ATTRIBUTE_POPUP, 'products_id=' . $listing['products_id']) . '"target="_blanc"' ). '</td>'; } break; Hier der Code vom Ingo für das Popup. <script type="text/javascript"> function openWinYepi() { winx0 = (window.screenLeft != undefined ? window.screenLeft : window.screenX) + 50; window.open('<?php echo tep_href_link(FILENAME_ATTRIBUTE_POPUP, 'products_id=' . $all_products['products_id']); ?>', 'yepiPopWindow', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=300,height=650,screenX='+ winx0 + ',screenY=150,top=150,left=' + winx0); } </script> <?php $params = array( 'type' => 'button', 'newwindow' => true, 'params' => 'onclick="openWinYepi();return false;"' ); if (SHOW_BUY_NOW_PROD_ATTRIB == 'true') { echo tep_draw_button(IMAGE_BUTTON_PROD_ATTRIBUTES, 'lightbulb', tep_href_link(FILENAME_ATTRIBUTE_POPUP, 'products_id=' . $all_products['products_id']), null, $params); } ?> für jede Hilfe bin ich dankbar um dieses zu verbessern. Edited November 2, 2017 by Yepi Link to comment Share on other sites More sharing options...
Yepi1533005574 Posted November 2, 2017 Author Share Posted November 2, 2017 Habe versucht den Button nur auf Produkte zu legen die tatsächlich Attribute beinhalten aber es funktioniert leider nicht. <?php $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> <?php $params = array( 'type' => 'button', 'newwindow' => true, 'params' => 'onclick="openWinYepi();return false;"' ); if (SHOW_BUY_NOW_PROD_ATTRIB == 'true') { echo tep_draw_button(IMAGE_BUTTON_PROD_ATTRIBUTES, 'lightbulb', tep_href_link(FILENAME_ATTRIBUTE_POPUP, 'products_id=' . $products_new['products_id']), null, $params); } ?> <?php }else{ } ?> Link to comment Share on other sites More sharing options...
Yepi1533005574 Posted March 9, 2018 Author Share Posted March 9, 2018 Variante 1 <a href='<?php echo tep_href_link(FILENAME_ATTRIBUTE_POPUP, 'products_id=' . $all_products['products_id']); ?>', target="_blank" onclick="window.open(this.href,this.target,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=420,height=780,screenX=150,screenY=150,top=5,left=650'); return false;"><?php echo tep_draw_button(IMAGE_BUTTON_PROD_ATTRIBUTES, 'plusthick');?></a> Variante 2 <a href='<?php echo tep_href_link(FILENAME_ATTRIBUTE_POPUP, 'products_id=' . $all_products['products_id']); ?>', target="neu" onClick="window.open('','neu','top=50, left=50, height=780, width=420')"><?php echo tep_draw_button(IMAGE_BUTTON_PROD_ATTRIBUTES, 'plusthick');?></a> Link to comment Share on other sites More sharing options...
Yepi1533005574 Posted April 6, 2018 Author Share Posted April 6, 2018 (edited) Wer über Attribute sein Shop laufen hat und möchte, dass nur die Attribute gelistet werden die wirklich ausgewählt wurden im Shop wie in der Bestellmail der schreibt mir per PN. Hirbei ist alles übersichtlicher. Keine langen Listen mehr mit allen Attributen sondern nur diesen die der Kunde auch ausgewählt hat. osCommerce alle Versionen + Bootstrap Responsive Edited April 6, 2018 by Yepi Link to comment Share on other sites More sharing options...
Recommended Posts