Wer dieses super Modul verwendet, möchte vielleicht auch für die Artikeloptionen im Produktlisting eine andere Ansicht verwenden als bei der Produktinfo.
Hier die Erweiterung für die Auswahlmöglichkeit einer eigenen "Vorlage für Artikeloptionen im Produkt-Listing" die im admin dem Artikel zugeordnet wird (siehe Bild):
In der Datenbank ausführen:
ALTER TABLE products ADD options_listing_template VARCHAR(64) DEFAULT NULL AFTER options_template;
##################################
admin/includes/modules/new_product.php
Suchen:
<tr>
<td class="main"><?php echo TEXT_CHOOSE_OPTIONS_TEMPLATE; ?>:</span></td>
<td class="main"><?php echo $catfunc->create_templates_dropdown_menu('options_template', '/module/product_options/', $pInfo->options_template, 'style="width:100%"'); ?></td>
</tr>
Danach einfügen:
<tr>
<td class="main"><?php echo TEXT_CHOOSE_OPTIONS_LISTING_TEMPLATE; ?>:</span></td>
<td class="main"><?php echo $catfunc->create_templates_dropdown_menu('options_listing_template', '/module/product_options/', $pInfo->options_listing_template, 'style="width:100%"'); ?></td>
</tr>
##################################
admin/includes/classes/categories.php
Suchen:
'options_template' => xtc_db_prepare_input($products_data['options_template']),
Danach einfügen:
'options_listing_template' => xtc_db_prepare_input($products_data['options_listing_template']),
###################################
lang/german/admin/german.php
Suchen:
define('TEXT_CHOOSE_OPTIONS_TEMPLATE','Vorlage für Artikeloptionen'); Danach einfügen:
define('TEXT_CHOOSE_OPTIONS_LISTING_TEMPLATE','Vorlage für Artikeloptionen im Listing'); ------
lang/english/admin/eglish.php
Suchen:
define('TEXT_CHOOSE_OPTIONS_TEMPLATE','Template for product options'); Danach einfügen:
define('TEXT_CHOOSE_OPTIONS_LISTING_TEMPLATE','Template for product options in list'); #####################################
includes/classes/product.php
Suchen:
// [++] web0null - attributes-in-listingif ($_SESSION['customers_status']['customers_status_show_price'] != '0' && defined('SHOW_BUTTON_BUY_NOW') && SHOW_BUTTON_BUY_NOW
!= 'false') { if ($this->getAttributesCount($array['products_id']) > 0) { $options_template = xtDBquery
("-- " . __LINE__ . __FILE__ . "
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; }}// [--] web0null - attributes-in-listing Ersetzen:
// [++] web0null - attributes-in-listingif ($_SESSION['customers_status']['customers_status_show_price'] != '0' && defined('SHOW_BUTTON_BUY_NOW') && SHOW_BUTTON_BUY_NOW
!= 'false') { if ($this->getAttributesCount($array['products_id']) > 0) { $options_template = xtDBquery
("-- " . __LINE__ . __FILE__ . "
SELECT options_listing_template
FROM ".TABLE_PRODUCTS
."
WHERE products_id = ".$array['products_id'] ); $options_template = xtc_db_fetch_array
($options_template); $array['options_listing_template'] = $options_template['options_listing_template']; require_once DIR_FS_INC
.'xtc_get_vpe_name.inc.php'; include DIR_WS_MODULES
.'product_attributes_listing.php'; $attributes = $module; }}// [--] web0null - attributes-in-listing Nun nur noch die includes/modules/product_attributes_listing.php mit dieser ersetzen. Fertig!
Bitte beachten, dass diese Erweiterung auf das Modul von web0null aufbaut.