Please help me remove the value for product options bundled on the shopping cart page, checkout, etc. Here's a picture.
What should I do?
To delete this edit:
Mage_Bundle_Block_Checkout_Cart_Item_Renderer Find the _getBundleOptions () method and change it to approximately 77 lines in this way:
// $ option ['value'] [] = $ this- & Gt; _getSelectionQty ($ bundleSelection- & gt; getSelectionId ()) '. X '. $ This- & gt; HtmlEscape ($ bundleSelection- & gt; getName ()) '' .mage :: helper ('core') - & gt; Currency ($ this- & gt; _getSelectionFinalPrice ($ Bundles Selection)); // new line $ option ['value'] [] = $ this- & gt; _get selection option ($ bundle selection-> match-selection id). 'X'. $ This- & gt; HtmlEscape ($ bundleSelection- & gt; getName ()); Then edit: Mage_Bundle_Block_Sales_Order_Items_Renderer, look at GetValueHtml () method as approximately 115 lines public function getValueHtml ($ item) { If ($ attributes = $ this- & gt; getSelectionAttributes ($ item)) {// old code / * return sprintf ('% d', $ attributes ['qty']) 'x' $ This- & gt; Htmlescape ($ item- & gt; getName ()) "" $ This-> GetOrder () - & gt; FormatPrice ($ attributes ['price']); * / Return sprint ('% d', $ attributes ['qty']). 'X'. $ This- & gt; HtmlEscape ($ item, & gt; getName ()); } And {return $ this-> htmlescape ($ item- & gt; getName ()); }} Always warn about how to edit the core code and use local or module rewrite! Tell me if I can help
or you can hide anything like CSS below
Assuming that you are at prices If you want to remove it from all items without regard, you can add this CSS
# Shopping Cart-Table DD span.price {Display: None; } If you want to leave zero, you can also do this way
/ app / design / frontend / default / {theme} Path} /template/checkout/cart/item/default.phtml (around line # 46) Find out where this price adds and only add the price if it is string Add more or currency sign to that string over a replaced straw_release place ("$ 0.00", "", $ _formatedOptionValue ['value']) So that $ 10.00 is not replaced)
No comments:
Post a Comment