Jump to content
xt:Commerce Community Forum

Hersteller in Product_Listing


selecta

Recommended Posts

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

Link to comment
Share on other sites

Na gut, ich will man nicht so sein...

ersetze in der Funktion buildDataArray


  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']);  

durch

  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'],

    [COLOR=blue]'MANUFACTURERS_NAME' => $array['manufacturers_name'],

[/COLOR]    'PRODUCTS_EXPIRES' => $array['expires_date'],

    'PRODUCTS_CATEGORY_URL'=>$array['cat_url'],

    'PRODUCTS_SHORT_DESCRIPTION' => $array['products_short_description'], 

    'PRODUCTS_FSK18' => $array['products_fsk18']);  

dann sollte es funktionieren.

Have fun!

Ben

Link to comment
Share on other sites

Hi Selecta,

das liegt daran, dass ebendiese Variable nicht gesetzt wurde.

Kannst Du in der /includes/classes/product.php (Funktion buildDataArray) entsprechend nachprogrammieren...

Ben

komisch, in meiner product.php ist (Funktion buildDataArray) gar nicht vorhanden.

Link to comment
Share on other sites

Außerdem sollte die Datei /product_new.php auch geändert werden. Hier habe ich die Artikel - Artikelnr in dem Produkt-listing eingefügt.

  select distinct

                                    p.products_id,

                                    p.products_fsk18,

                                    pd.products_name,

                                    pd.products_short_description,

                                   [COLOR=RoyalBlue] p.products_model,[/COLOR]

                                    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 
$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' => [COLOR=RoyalBlue]$products_new['products_model'][/COLOR],  '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);

Danach kann das {$module_data.PRODUCTS_MODEL} in folgende Dateien im Templates - Ordner genutzt werden.

- new_products.html

- new_products_default.html

- new_products_overview.html

- product_listing.html

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...