Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fsspencer/magento2-disable-cart-items-product-link
Magento 2.x extension that shows how to use arguments on cart items Block
https://github.com/fsspencer/magento2-disable-cart-items-product-link
Last synced: 9 days ago
JSON representation
Magento 2.x extension that shows how to use arguments on cart items Block
- Host: GitHub
- URL: https://github.com/fsspencer/magento2-disable-cart-items-product-link
- Owner: fsspencer
- Created: 2018-07-19T17:46:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-19T17:46:44.000Z (over 6 years ago)
- Last Synced: 2023-10-22T13:38:16.207Z (about 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Codealist - Disable Product URL on Cart Items
### Introduction
The following extension shows you how to use action and arguments to modify the base parameters of a specific block.
In this example, we will set the "ignoreProductUrl" value to "true".That value can be found on /Users/fsspencer/Documents/Projects/magento2/extension-dev/docroot/vendor/magento/module-checkout/Block/Cart/Item/Renderer.php
You will notice that it has a setter and getter for that attribute, so that gives us the possibility to
modify the value from a layout update.This update has been performed on Codealist/DisableCartItemsProductLink/view/frontend/layout/checkout_cart_item_renderers.xml
### Installation
1. Create the directory Codealist/DisableCartItemsProductLink inside app/code
2. Clone this repository into the directory you just created
3. Run `php bin/magento setup:upgrade` from your project root