Magento 2.1: ब्लॉक से तर्क और / या तर्क आइटम को कैसे हटाया जाए?


9

मुझे बंडल उत्पाद पृष्ठ में "से - से" मूल्य निकालने की आवश्यकता है।

तो सवाल यह है कि आइटम को तर्क से कैसे हटाया जाए?

में ब्लॉक बनाया गया है

magento2 / विक्रेता / Magento / मॉड्यूल-बंडल / देखें / आधार / लेआउट / catalog_product_prices.xml

<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<referenceBlock name="render.product.prices">
    <arguments>
        <argument name="bundle" xsi:type="array">
            <item name="prices" xsi:type="array">
                <item name="tier_price" xsi:type="array">
                    <item name="render_template" xsi:type="string">Magento_Bundle::product/price/tier_prices.phtml</item>
                </item>

                <!-- start: this should be removed -->
                <item name="final_price" xsi:type="array">
                    <item name="render_class" xsi:type="string">Magento\Bundle\Pricing\Render\FinalPriceBox</item>
                    <item name="render_template" xsi:type="string">Magento_Bundle::product/price/final_price.phtml</item>
                </item>
                <!-- end: this should be removed -->

                <item name="bundle_option" xsi:type="array">
                    <item name="amount_render_template" xsi:type="string">Magento_Bundle::product/price/selection/amount.phtml</item>
                </item>
            </item>
        </argument>
    </arguments>
</referenceBlock>

अन्य संभावना यह है कि अगर मैं होल कैटलॉग_प्रोडक्ट_प्राइस.एक्सएमएल को ओवरराइड कर सकता हूं

मैंने http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/layouts/layout-override.html विधि का उपयोग करने की कोशिश की


इसे देखो। stackoverflow.com/a/41296109/5870985
— Vish

जवाबों:


2

आप छिपा कर सकते हैं से और करने के लिए सीएसएस का उपयोग कर लेबल

.page-product-bundle .product-info-price .price-label {
    display: none;
}

**

या

**

अपने विषय में फ़ाइल के नीचे कॉपी करें

/vendor/magento/module-bundle/view/base/templates/product/price/final_price.phtml

लाइन नं। 47

'display_label'     => __('From'),

और लाइन नं। 65

'display_label'     => __('To'),

कोड से ऊपर निकालें।


क्या वह आपके लिए काम कर रहा है?
— hweb87
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.