Hi axon,
der funktionierende alte Code
PHP-Code:
<?php
94 switch ($column_list[$col]) {
95 case 'PRODUCT_LIST_MODEL':
96 $lc_align = '';
97 $lc_text = '' . $listing['products_model'] . '';
98 break;
99 case 'PRODUCT_LIST_NAME':
100 $lc_align = '';
101 if (isset($HTTP_GET_VARS['manufacturers_id'])) {
102 $lc_text = '[url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"]' . $listing['products_name'] . '[/url]';
103 } else {
104 $lc_text = '[url="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"]' . $listing['products_name'] . '[/url]';
105 }
106 break;
107 case 'PRODUCT_LIST_MANUFACTURER':
108 $lc_align = '';
109 $lc_text = '[url="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '"]' . $listing['manufacturers_name'] . '[/url]';
110 break;
111 case 'PRODUCT_LIST_PRICE':
112 $lc_align = 'right';
113 if (tep_not_null($listing['specials_new_products_price'])) {
114 $lc_text = '<s>' . $currencies->display_price2($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s><span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
115 } else {
116 $lc_text = '' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '';
117 }
118 break;
119 case 'PRODUCT_LIST_QUANTITY':
120 $lc_align = 'right';
121 $lc_text = '' . $listing['products_quantity'] . '';
122 break;
123 case 'PRODUCT_LIST_WEIGHT':
124 $lc_align = 'right';
125 $lc_text = '' . $listing['products_weight'] . '';
126 break;
127 case 'PRODUCT_LIST_IMAGE':
128 $lc_align = 'center';
129 if (isset($HTTP_GET_VARS['manufacturers_id'])) {
130 $lc_text = '[url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"]' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '[/url]';
131 } else {
132 $lc_text = '[url="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"]' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '[/url]';
133 }
134 break;
?>
der neue, nicht mehr funktionierende Code:
PHP-Code:
<?php
94 switch ($column_list[$col]) {
95 case 'PRODUCT_LIST_MODEL':
96 $lc_align = '';
97 $lc_text = '' . $listing['products_model'] . '';
98 break;
99 case 'PRODUCT_LIST_NAME':
100 $lc_align = '';
101 if (isset($HTTP_GET_VARS['manufacturers_id'])) {
102 $lc_text = '[url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"]' . $listing['products_name'] . '[/url]';
103 } else {
104 $lc_text = '[url="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"]' . $listing['products_name'] . '[/url]';
105 }
106 break;
107 case 'PRODUCT_LIST_MANUFACTURER':
108 $lc_align = '';
109 $lc_text = '[url="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '"]' . $listing['manufacturers_name'] . '[/url]';
110 break;
111 case 'PRODUCT_LIST_PRICE':
112 $lc_align = 'right';
113 if (tep_not_null($listing['specials_new_products_price'])) {
114 $lc_text = '<s>' . $currencies->display_price2($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s><span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
115 } elseif ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') {
116 Â* Â* Â* Â* Â* Â*$lc_text = 'ab' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '';
117 Â* Â* Â* Â*} else {
118 $lc_text = '' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '';
119 }
120 break;
121 case 'PRODUCT_LIST_QUANTITY':
122 $lc_align = 'right';
123 $lc_text = '' . $listing['products_quantity'] . '';
124 break;
125 case 'PRODUCT_LIST_WEIGHT':
126 $lc_align = 'right';
127 $lc_text = '' . $listing['products_weight'] . '';
128 break;
129 case 'PRODUCT_LIST_IMAGE':
130 $lc_align = 'center';
131 if (isset($HTTP_GET_VARS['manufacturers_id'])) {
132 $lc_text = '[url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"]' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '[/url]';
133 } else {
134 $lc_text = '[url="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"]' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '[/url]';
135 }
136 break;
?>
Danke für Deine Hilfe.