Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何删除magento 2中购物车页面中的产品价格和小计金额_Magento_Magento2_Magento 2.3 - Fatal编程技术网

如何删除magento 2中购物车页面中的产品价格和小计金额

如何删除magento 2中购物车页面中的产品价格和小计金额,magento,magento2,magento-2.3,Magento,Magento2,Magento 2.3,只有我需要在购物车页面中显示数量项目的数量 如果有人知道答案,请分享确切的代码和文件夹结构。因为我是万磁王的新手 购物车页面截图: 在磁电机2-3的以下位置查找并编辑form.phtml: app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml 您可以轻松编辑总计和小计的html元素: <caption class="table-caption"><?= $block->escapeHtml

只有我需要在购物车页面中显示数量项目的数量

如果有人知道答案,请分享确切的代码和文件夹结构。因为我是万磁王的新手

购物车页面截图:


在磁电机2-3的以下位置查找并编辑form.phtml

app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml

您可以轻松编辑
总计和小计的html元素:

   <caption class="table-caption"><?= $block->escapeHtml(__('Shopping Cart Items')) ?></caption>
        <thead>
            <tr>
                <th class="col item" scope="col">
                 <span><?= $block->escapeHtml(__('Item')) ?></span></th>
                <th class="col price" scope="col">
                 <span><?= $block->escapeHtml(__('Price')) ?></span></th>  // remove this line for Price
                <th class="col qty" scope="col">
                 <span><?= $block->escapeHtml(__('Qty')) ?></span></th>
                <th class="col subtotal" scope="col">
                 <span><?= $block->escapeHtml(__('Subtotal')) ?></span></th> // remove this line for Subtotal
            </tr>

//删除此行以获取价格
//删除此行以进行小计

如何覆盖form.phtmlfile@RameshR在主机面板的文件资源管理器中查找并更改文件。如果你的磁电机是托管的,那么你需要在主机上编辑这个文件。我在magento stack exchange论坛上尝试过其他答案,效果很好。谢谢你的建议。