|
|||
|
nachdem ich meine product listing nun schon etwas meinen wünschen angebpasst habe, scheitere ich nun daran, den hersteller mit anzeigen zu lassen.
eigentlich muss da doch nur: module_data.MANUFACTURERS_NAME an die richtige stelle... aber da erscheint nix. woran liegt das? danke vorab |
|
|||
|
Na gut, ich will man nicht so sein...
ersetze in der Funktion buildDataArray Code:
return array ('PRODUCTS_NAME' => $array['products_name'],
'COUNT'=>$array['ID'],
'PRODUCTS_ID'=>$array['products_id'],
'PRODUCTS_VPE' => $this->getVPEtext($array, $products_price['plain']),
'PRODUCTS_IMAGE' => $this->productImage($array['products_image'], $image),
'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($array['products_id'], $array['products_name'])),
'PRODUCTS_PRICE' => $products_price['formated'],
'PRODUCTS_TAX_INFO' => $main->getTaxInfo($tax_rate),
'PRODUCTS_SHIPPING_LINK' => $main->getShippingLink(),
'PRODUCTS_BUTTON_BUY_NOW' => $buy_now,
'PRODUCTS_SHIPPING_NAME'=>$shipping_status_name,
'PRODUCTS_SHIPPING_IMAGE'=>$shipping_status_image,
'PRODUCTS_DESCRIPTION' => $array['products_description'],
'PRODUCTS_EXPIRES' => $array['expires_date'],
'PRODUCTS_CATEGORY_URL'=>$array['cat_url'],
'PRODUCTS_SHORT_DESCRIPTION' => $array['products_short_description'],
'PRODUCTS_FSK18' => $array['products_fsk18']);
Code:
return array ('PRODUCTS_NAME' => $array['products_name'],
'COUNT'=>$array['ID'],
'PRODUCTS_ID'=>$array['products_id'],
'PRODUCTS_VPE' => $this->getVPEtext($array, $products_price['plain']),
'PRODUCTS_IMAGE' => $this->productImage($array['products_image'], $image),
'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($array['products_id'], $array['products_name'])),
'PRODUCTS_PRICE' => $products_price['formated'],
'PRODUCTS_TAX_INFO' => $main->getTaxInfo($tax_rate),
'PRODUCTS_SHIPPING_LINK' => $main->getShippingLink(),
'PRODUCTS_BUTTON_BUY_NOW' => $buy_now,
'PRODUCTS_SHIPPING_NAME'=>$shipping_status_name,
'PRODUCTS_SHIPPING_IMAGE'=>$shipping_status_image,
'PRODUCTS_DESCRIPTION' => $array['products_description'],
'MANUFACTURERS_NAME' => $array['manufacturers_name'],
'PRODUCTS_EXPIRES' => $array['expires_date'],
'PRODUCTS_CATEGORY_URL'=>$array['cat_url'],
'PRODUCTS_SHORT_DESCRIPTION' => $array['products_short_description'],
'PRODUCTS_FSK18' => $array['products_fsk18']);
Have fun! Ben |
|
|||
|
Zitat:
|
|
|||
|
Außerdem sollte die Datei /product_new.php auch geändert werden. Hier habe ich die Artikel - Artikelnr in dem Produkt-listing eingefügt.
Code:
select distinct
p.products_id,
p.products_fsk18,
pd.products_name,
pd.products_short_description,
p.products_model,
p.products_image,
p.products_price,
p.products_vpe,
p.products_vpe_status,
p.products_vpe_value,
p.products_tax_class_id,
p.products_date_added,
m.manufacturers_name
from ".TABLE_PRODUCTS." p
left join ".TABLE_MANUFACTURERS." m
on p.manufacturers_id = m.manufacturers_id
left join ".TABLE_PRODUCTS_DESCRIPTION." pd
on p.products_id = pd.products_id,
".TABLE_CATEGORIES." c,
".TABLE_PRODUCTS_TO_CATEGORIES." p2c
WHERE pd.language_id = '".(int) $_SESSION['languages_id']."'
and c.categories_status=1
and p.products_id = p2c.products_id
and c.categories_id = p2c.categories_id
and products_status = '1'
".$group_check."
".$fsk_lock."
".$days."
order
by
p.products_date_added DESC
Code:
$module_content[] = array ('PRODUCTS_NAME' => $products_new['products_name'],'PRODUCTS_SHIPPING_LINK' => $ship_info,'PRODUCTS_TAX_INFO' => $tax_info, 'PRODUCTS_DESCRIPTION' => $products_new['products_short_description'], 'PRODUCTS_MODEL' => $products_new['products_model'], 'PRODUCTS_PRICE' => $products_price['formated'], 'PRODUCTS_VPE' => $vpePrice, 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($products_new['products_id'], $products_new['products_name'])), 'PRODUCTS_IMAGE' => $products_image, 'BUTTON_BUY_NOW' => $buy_now);
- new_products.html - new_products_default.html - new_products_overview.html - product_listing.html |
![]() |
| Lesezeichen |
| Stichworte |
| hersteller, productlisting |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Hersteller werden nicht angezeigt !!! | schmudoas | Installation und Konfiguration | 2 | 10.01.2007 12:49 |
| Hersteller Name auslesene und verwenden | kleintim | Template System | 7 | 17.04.2006 01:18 |