OK OK OK du hast ja recht!!!
Habe es nochmal von ganz anfang an eingebaut und es funktioniert in Shop version 1.0.6.
Die includes/classes/product.php sieht ein wenig anders aus also hier die Anleitung fuer die shopversion v1.0.6:
Suche ca. Zeile 80: /**
* Query for attributes count
*
* @return integer
*/
function getAttributesCount() {
Ersetze durch: /**
* Query for attributes count
*
* @return integer
*/
function getAttributesCount($pID = 0) {
if ($pID == 0){$pID = $this->pID;}
Suche ca. Zeile 400: /**
* buildDataArray
*
* @param array $array
* @return array
*/
function buildDataArray(&$array,$image='thumbnail') {
global $xtPrice,$main;
Ersetze durch: /**
* buildDataArray
*
* @param array $array
* @return array
*/
function buildDataArray(&$array,$image='thumbnail') {
global $xtPrice,$main,$PHP_SELF;
Suche ca. Zeile 400: //create buy now button $buy_now = ''; if ($_SESSION['customers_status']['customers_status_show_price'] != '0' && defined('SHOW_BUTTON_BUY_NOW') && SHOW_BUTTON_BUY_NOW
!= 'false') { if ($_SESSION['customers_status']['customers_fsk18'] == '1') { if (isset($array['products_fsk18']) && $array['products_fsk18'] == '0') $buy_now = $this->getBuyNowButton($array['products_id'], $array['products_name']); } else { $buy_now = $this->getBuyNowButton($array['products_id'], $array['products_name']); } } Ersetzen durch: //create buy now button $buy_now = ''; $add_cart_button = ''; $add_qty = ''; if ($_SESSION['customers_status']['customers_status_show_price'] != '0' && defined('SHOW_BUTTON_BUY_NOW') && SHOW_BUTTON_BUY_NOW
!= 'false') { if ($_SESSION['customers_status']['customers_fsk18'] == '1') { if (isset($array['products_fsk18']) && $array['products_fsk18'] == '0'){ $buy_now = $this->getBuyNowButton($array['products_id'], $array['products_name']); $add_cart_button = xtc_image_submit
('button_in_cart.gif', IMAGE_BUTTON_IN_CART
); $add_qty = xtc_draw_input_field
('products_qty', '1', 'size="3"').' '.xtc_draw_hidden_field
('products_id', $array['products_id']); } } else { $buy_now = $this->getBuyNowButton($array['products_id'], $array['products_name']); $add_cart_button = xtc_image_submit
('button_in_cart.gif', IMAGE_BUTTON_IN_CART
); $add_qty = xtc_draw_input_field
('products_qty', '1', 'size="3"').' '.xtc_draw_hidden_field
('products_id', $array['products_id']); } } Suche ca. Zeile 500: //products data array $productData = array ('PRODUCTS_NAME' => $array['products_name'], Ersetze durch: //products data array// für Attributes in Listing if ($this->getAttributesCount($array['products_id']) > 0) { $options_template = xtDBquery
("SELECT options_template FROM ".TABLE_PRODUCTS
." WHERE products_id =".$array['products_id']); $options_template = xtc_db_fetch_array
($options_template); $array['options_template'] = $options_template['options_template']; require_once (DIR_FS_INC
.'xtc_get_vpe_name.inc.php'); include (DIR_WS_MODULES
.'product_attributes_listing.php'); $attributes = $module; } // für Attributes in Listing $productData = array ('PRODUCTS_NAME' => $array['products_name'], Suche ein paar Zeilen runter:'PRODUCTS_QUANTITY' => isset($array['products_quantity']) ?
$array['products_quantity'] : '', Danach einfuegen// für Attributes in Listing 'PRODUCTS_ADD_CART_BUTTON' => $add_cart_button, 'PRODUCT_ATTRIBUTES' => $attributes, 'FORM_ACTION' => xtc_draw_form
('cart_quantity',xtc_href_link
(basename($PHP_SELF), xtc_get_all_get_params
(array ('action')).'action=add_product')), 'FORM_END' => '</form>', 'ADD_QTY'=> $add_qty, // für Attributes in Listing Vielen Dank web0null fuer dieses Module