|
|||
|
Hallöle
Leider schaff ich es nicht auf der new_products Seite die Info-Bilder anzuzeigen. das Ändern in der classes/products.php von function buildDataArray(&$array,$image='thumbnails') { global $xtPrice,$main; in function buildDataArray(&$array,$image='info') { global $xtPrice,$main; bewirkt das zwar, aber dann sehen die Bilder an anderen Stellen verzerrt aus. Hat jemand einen Tip für mich? Danke und mit besten Grüßen. |
|
|||
|
Ich habe in der includes/classes/product.php
inter die Funktion buildDataArray die gleich kopiert und umbenannt in buildDataArray2. Siehe unten. Dann nur noch den Funktionsaufruf in der includes/modules/new_products.php von $module_content[] = $product->buildDataArray($new_products); in $module_content[] = $product->buildDataArray2($new_products); ändern und schon habe ich eine klare unverzerrte Grafik. //Neu Anfang function buildDataArray2(&$array,$image='info') { global $xtPrice,$main; $tax_rate = $xtPrice->TAX[$array['products_tax_class_id']]; $products_price = $xtPrice->xtcGetPrice($array['products_id'], $format = true, 1, $array['products_tax_class_id'], $array['products_price'], 1); if ($_SESSION['customers_status']['customers_status_show_price'] != '0') { if ($_SESSION['customers_status']['customers_fsk18'] == '1') { if ($array['products_fsk18'] == '0') $buy_now = $this->getBuyNowButton($array['products_id'], $array['products_name']); } else { $buy_now = $this->getBuyNowButton($array['products_id'], $array['products_name']); } } $shipping_status_name = $main->getShippingStatusName($array['products_shippingtime']); $shipping_status_image = $main->getShippingStatusImage($array['products_shippingtime']); //Versandkosten errechnen $gewicht=$array['products_weight']; $sql_liefer="SELECT configuration_value from configuration where configuration_key='MODULE_SHIPPING_DP_COST_6'"; $rsMember_l = mysql_query($sql_liefer); $tabelle_string = mysql_fetch_row($rsMember_l); $tabelle=explode(",",$tabelle_string[0]); for ($i=-1;$i<=(count($tabelle));$i++) $wertepaare[$i]=explode(":",$tabelle[$i]); $j=0; if ($gewicht==0) $kosten=$wertepaare[0][1];else for ($i=-1;$i<=(count($tabelle));$i++){ if (($gewicht>=$wertepaare[$i][0]) and ($gewicht<$wertepaare[$i+1][0])) $kosten=$wertepaare[$i+1][1]; }; if ($kosten==0 || $kosten==""){ $sql_liefer="SELECT configuration_value from configuration where configuration_key='MODULE_SHIPPING_UPSE_COST_1'"; $rsMember_l = mysql_query($sql_liefer); $tabelle_string = mysql_fetch_row($rsMember_l); $tabelle=explode(",",$tabelle_string[0]); for ($i=-1;$i<=(count($tabelle));$i++) $wertepaare[$i]=explode(":",$tabelle[$i]); $j=0; if ($gewicht==0) $kosten=$wertepaare[0][1];else for ($i=-1;$i<=(count($tabelle));$i++){ if (($gewicht>=$wertepaare[$i][0]) and ($gewicht<$wertepaare[$i+1][0])) $kosten=$wertepaare[$i+1][1]; }; } if ($kosten==0 || $kosten=="") $kosten="Auf Anfrage"; if ($kosten!="Auf Anfrage") $ausgabe=" zzgl. ".$kosten." € Versandkosten";else $ausgabe=" Versandkosten ".$kosten; //Lieferstatus ausgeben $menge=$array['products_quantity']; if ($menge>0) { $bild='http://www.eqstore.de/admin/images/icons/status_green.gif'; $text='sofort lieferbar!'; } if ($menge==0) { $bild='http://www.eqstore.de/admin/images/icons/status_yellow.gif'; $text='Artikel ist bestellt'; } if ($menge<0) { $bild='http://www.eqstore.de/admin/images/icons/status_red.gif'; $text='Artikel wird bestellt'; } return array ('PRODUCTS_NAME' => $array['products_name'], 'COUNT'=>$array['ID'], 'PRODUCTS_ID'=>$array['products_id'], 'PRODUCTS_VPE' => $this->getVPEtext($array, $products_price['plain']), 'PRODUCTS_WEIGHT' => number_format((float)$array['products_weight'], 2, ',', ''), 'VERSAND' => $ausgabe, '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'=>$text, 'PRODUCTS_SHIPPING_IMAGE'=>$bild, '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']); } //Neu Ende |
![]() |
| Lesezeichen |
| Stichworte |
| anstatt, anzeigen, infobild, newproducts, thumbnailbild |
| Themen-Optionen | |
| Ansicht | |
|
|