Hallo liebe Gemeide, nach dem Update auf V2.3.2.2 wird bei mirdie Angabe UPC, MPN usw. nicht mehr in der Produktinfo angezeigt, obwohl ich da nichts geändert habe. Die Anpssung liegt unter user_classes/overloads/ProductInfoContentView/pt_pic_ProductInfoContentView.inc.php wie folgt: <?php /* Extend ProductInfoContentView to add various new product item codes to the template Copyright (c) 2012: Avenger, entwicklung@powertemplate.de */ class pt_pic_ProductInfoContentView extends pt_pic_ProductInfoContentView_parent { function get_html($p_coo_product, $p_current_category_id = 0) { $products_id=$p_coo_product->data['products_id']; if ($products_id) { $sql=' SELECT * FROM products_item_codes WHERE products_id='.$products_id; $res=xtc_db_query($sql); while ($products_item_codes=xtc_db_fetch_array($res)) { $this->set_content_data('PRODUCTS_ISBN', $products_item_codes['code_isbn']); $this->set_content_data('PRODUCTS_UPC', $products_item_codes['code_upc']); $this->set_content_data('PRODUCTS_MPN', $products_item_codes['code_mpn']); $this->set_content_data('PRODUCTS_JAN', $products_item_codes['code_jan']); $this->set_content_data('PRODUCTS_BRAND_NAME', $products_item_codes['brand_name']); } } return parent::get_html($p_coo_product, $p_current_category_id); } } ?> und die Ausgabe bei product_info/standard.html .... <dt>UPC:</dt> <dd class="products_model">{$PRODUCTS_UPC}</dd> ... Hat jemande eine Idee, wo der Fehler liegen könnte? Danke!
Diese Codes sind nicht mehr kompatibel zu der Version 2.3.x.x. Hast du auch die Datei: /user_classes/overloads/categories/xxx_xx_categories.inc.php? Wobei xxx_xx kann auch anderes heißen.
Der Code zu der Datei sollte jetzt so formuliert werden: PHP: <?php/*Extend ProductInfoContentView to add various new product item codes to the templateCopyright (c) 2012: Avenger, entwicklung@powertemplate.de*/class pt_pic_ProductInfoContentView extends pt_pic_ProductInfoContentView_parent{function _assignProductData(){$products_id=$this->product->data['products_id'];if ($products_id){$sql='SELECT*FROMproducts_item_codesWHEREproducts_id='.$products_id;$res=xtc_db_query($sql);while ($products_item_codes=xtc_db_fetch_array($res)){$this->set_content_data('PRODUCTS_ISBN', $products_item_codes['code_isbn']);$this->set_content_data('PRODUCTS_UPC', $products_item_codes['code_upc']);$this->set_content_data('PRODUCTS_MPN', $products_item_codes['code_mpn']);$this->set_content_data('PRODUCTS_JAN', $products_item_codes['code_jan']);$this->set_content_data('PRODUCTS_BRAND_NAME', $products_item_codes['brand_name']);}}return parent::_assignProductData();}}?>