Jump to content
xt:Commerce Community Forum

Probleme mit includes/classes/product.php


tomjons

Recommended Posts

Hallo,

habe soeben das Modul "PopCart" integriert. Jedoch komm ich mit der "product.php" nicht klar. Diese spuckt wie unter www.shop.quebag.de

zu sehen immer folgende Fehlermeldung aus:

Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /kunden/quebag.de/shop/includes/classes/product.php on line 496
hier ein Auszug aus der Datei (leider bin ich in php kein Freak)
if ($this->getAttributesCount($array['products_id'])>0) {

		return array ('PRODUCTS_NAME' => $array['products_USER_KArtikelbezeichnung'],

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

	             //Anpassung CMOS              

				'PRODUCTS_USER_KArtikelbezeichnung' => $array['products_USER_KArtikelbezeichnung'],

				'PRODUCTS_USER_KArtikellangtext' => $array['products_USER_KArtikellangtext'],

				'PRODUCTS_USER_KArtikelausfuehrung' => $array['products_USER_KArtikelausfuehrung'],

				'PRODUCTS_USER_KArtikelkurztext' => $array['products_USER_KArtikelkurztext'],

				'PRODUCTS_USER_KArtikelanwendungshinweis' => $array['products_USER_KArtikelanwendungshinweis'],

                //End Anpassung CMOS

				'DETAIL_BUTTON' => '<a href="'.xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id='.$array['products_id'], 'NONSSL').'">'.xtc_image_button('button_view.gif', $array['products_name']).'</a>',		

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

} else {

	return array ('PRODUCTS_NAME' => $array['products_USER_KArtikelbezeichnung'],

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

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

	             //Anpassung CMOS              

				'PRODUCTS_USER_KArtikelbezeichnung' => $array['products_USER_KArtikelbezeichnung'],

				'PRODUCTS_USER_KArtikellangtext' => $array['products_USER_KArtikellangtext'],

				'PRODUCTS_USER_KArtikelausfuehrung' => $array['products_USER_KArtikelausfuehrung'],

				'PRODUCTS_USER_KArtikelkurztext' => $array['products_USER_KArtikelkurztext'],

				'PRODUCTS_USER_KArtikelanwendungshinweis' => $array['products_USER_KArtikelanwendungshinweis'],

                //End Anpassung CMOS

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

}



	function productImage($name, $type) {


		switch ($type) {

			case 'info' :

				$path = DIR_WS_INFO_IMAGES;

				break;

			case 'thumbnail' :

				$path = DIR_WS_THUMBNAIL_IMAGES;

				break;

			case 'popup' :

				$path = DIR_WS_POPUP_IMAGES;

				break;

		}


		if ($name == '') {

			if ($this->useStandardImage == 'true' && $this->standardImage != '')

				return $path.$this->standardImage;

		} else {

			// check if image exists

			if (!file_exists($path.$name)) {

				if ($this->useStandardImage == 'true' && $this->standardImage != '')

					$name = $this->standardImage;

			}

			return $path.$name;

		}

	}



}

?>[/code]

Link to comment
Share on other sites

Archived

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

×
  • Create New...