berny Posted March 18, 2005 Report Share Posted March 18, 2005 Hi Leute Wie ist es m?glich, das Gewicht im Warenkorb (bzw bei der Bestellung oder der Rechnung) auszuweisen? Der Hintergedanke ist der, dass zwar Titel und Preis, aber nicht das Gewicht ausgewiesen wird. Es ist aber teilweise so, dass es gleiche Produktnamen mit verschiedenen Gewichten gibt. Eine L?sung w?re das Gewicht im Bereich des Titels einzugeben, aber warum sollte man das Gewicht extra anf?hren, wenn es sowieso in der Datenbank gespeichert ist. Link to comment Share on other sites More sharing options...
berny Posted March 23, 2005 Author Report Share Posted March 23, 2005 So, mal eine eigene konstruktive Antwort ?nderungen: product_info_v1.html: F?ge an der richtigen Stelle den Code {$PRODUCTS_WEIGHT} Kg ein, damit wird das Gewicht angezeigt. product_listing_v1.html: F?ge an der richtigen Stelle den Code {$module_data.PRODUCTS_WEIGHT} Kg ein. Zus?tzlich muss die Datei includes/modules/product_listing.php wie folgt ge?ndert werden: suche den Code: $module_content[]=array( 'PRODUCTS_NAME'=>$listing['products_name'], 'PRODUCTS_MODEL'=>$listing['products_model'], 'PRODUCTS_SHORT_DESCRIPTION'=>$listing['products_short_description'], 'PRODUCTS_IMAGE'=>$image, 'PRODUCTS_PRICE'=>$price, 'PRODUCTS_LINK' =>xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']), 'BUTTON_BUY_NOW'=>$buy_now, 'PRODUCTS_FSK18' => $fsk18, 'SHIPPING_NAME'=>$shipping_status_name, 'SHIPPING_IMAGE'=>$shipping_status_image, 'PRODUCTS_ID'=>$listing['products_id']); und ?nder ihn um auf $module_content[]=array( 'PRODUCTS_NAME'=>$listing['products_name'], 'PRODUCTS_MODEL'=>$listing['products_model'], 'PRODUCTS_SHORT_DESCRIPTION'=>$listing['products_short_description'], 'PRODUCTS_IMAGE'=>$image, 'PRODUCTS_PRICE'=>$price, 'PRODUCTS_WEIGHT'=>$listing['products_weight'], 'PRODUCTS_LINK' =>xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']), 'BUTTON_BUY_NOW'=>$buy_now, 'PRODUCTS_FSK18' => $fsk18, 'SHIPPING_NAME'=>$shipping_status_name, 'SHIPPING_IMAGE'=>$shipping_status_image, 'PRODUCTS_ID'=>$listing['products_id']); Link to comment Share on other sites More sharing options...
berny Posted March 23, 2005 Author Report Share Posted March 23, 2005 Weiter im Warenkorb: order_details.html: {module_data.PRODUCTS_WEIGHT} Kg an der richtigen Stelle einf?gen. weiters in der includes/modules/order_details_cart.php folgendes ab?ndern: $module_content[$i]=array( 'PRODUCTS_NAME' => $products[$i]['name'].$mark_stock, 'PRODUCTS_QTY' => xtc_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="2"') . xtc_draw_hidden_field('products_id[]', $products[$i]['id']), 'PRODUCTS_MODEL' => $products[$i]['model'], 'PRODUCTS_TAX' => number_format($products[$i]['tax'], TAX_DECIMAL_PLACES), 'PRODUCTS_IMAGE' => $image, 'BOX_DELETE' => xtc_draw_checkbox_field('cart_delete[]', $products[$i]['id']), 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']), 'PRODUCTS_PRICE' => xtc_get_products_price($products[$i]['id'], $price_special=1, $quantity=$products[$i]['quantity']), 'PRODUCTS_SINGLE_PRICE'=>xtc_format_price(xtc_get_products_price($products[$i]['id'], $price_special=0, $quantity=$products[$i]['quantity'])/$quantity=$products[$i]['quantity'],1,1), 'PRODUCTS_SHORT_DESCRIPTION' => xtc_get_short_description($products[$i]['id']), 'ATTRIBUTES' => ''); durch $module_content[$i]=array( 'PRODUCTS_NAME' => $products[$i]['name'].$mark_stock, 'PRODUCTS_QTY' => xtc_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="2"') . xtc_draw_hidden_field('products_id[]', $products[$i]['id']), 'PRODUCTS_MODEL' => $products[$i]['model'], 'PRODUCTS_TAX' => number_format($products[$i]['tax'], TAX_DECIMAL_PLACES), 'PRODUCTS_IMAGE' => $image, 'PRODUCTS_WEIGHT'=>$products[$i]['weight'], 'BOX_DELETE' => xtc_draw_checkbox_field('cart_delete[]', $products[$i]['id']), 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']), 'PRODUCTS_PRICE' => xtc_get_products_price($products[$i]['id'], $price_special=1, $quantity=$products[$i]['quantity']), 'PRODUCTS_SINGLE_PRICE'=>xtc_format_price(xtc_get_products_price($products[$i]['id'], $price_special=0, $quantity=$products[$i]['quantity'])/$quantity=$products[$i]['quantity'],1,1), 'PRODUCTS_SHORT_DESCRIPTION' => xtc_get_short_description($products[$i]['id']), 'ATTRIBUTES' => ''); ersetzen. Achtung: das funktioniert nur bei 2.0 (ev auch bei 3.x, keine Ahnung) F?r die Funktionalit?t ?bernehme ich keine Haftung !!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.