Magento2: How to add product description to shopping cart and checkout page?Magento 2 - Display Attribute on Cart PageMagento2 - How can I display a product attribute value in Order Summary block?Do I need a module to display product attributes in the shopping cart?Magento2 : How to get quantity in dropdown for configurable product in cart pageAdding custom attribute to checkout order summary not reflecting on payment pagemagento 2 wishlist remove itemsAdding quantity increment button in cart and mini cartMagento 2: wrap multiple elements on the cart page in a Bootstrap 3 panelMagento2 - How to get a custom attribute for catalog product?Magento2 : How to show the product's attribute value at product details page on PORTO theme?How to use rewrite the cart/item/default.phtml template file my module?How to use overwrite the checkout cart/item/default.phtml template file into my module in Magento2
Why is Japan trying to have a better relationship with Iran?
My colleague is constantly blaming me for his errors
How can I deal with extreme temperatures in a hotel room?
Do home values typically rise and fall at a consistent percent?
Reusable spacecraft: why still have fairings detach, instead of open/close?
I need help with pasta
What kind of jet plane is this?
What game is this character in the Pixels movie from?
What verb for taking advantage fits in "I don't want to ________ on the friendship"?
Is it possible to have a character with proficiency in all martial weapons without proficiency in Medium armor?
What do you call a notepad used to keep a record?
Journal standards vs. personal standards
What is "oversubscription" in Networking?
If two black hole event horizons overlap (touch) can they ever separate again?
Is there reliable evidence that depleted uranium from the 1999 NATO bombing is causing cancer in Serbia?
How did researchers find articles before the Internet and the computer era?
Why would anyone even use a Portkey?
How to plan the font size in a fiction?
How to properly say asset/assets in German
Why wasn't ASCII designed with a contiguous alphanumeric character order?
What's the safest way to inform a new user of their password on an invite-only website?
What is "override advice"?
Can European countries bypass the EU and make their own individual trade deal with the U.S.?
Comment traduire « That screams X »
Magento2: How to add product description to shopping cart and checkout page?
Magento 2 - Display Attribute on Cart PageMagento2 - How can I display a product attribute value in Order Summary block?Do I need a module to display product attributes in the shopping cart?Magento2 : How to get quantity in dropdown for configurable product in cart pageAdding custom attribute to checkout order summary not reflecting on payment pagemagento 2 wishlist remove itemsAdding quantity increment button in cart and mini cartMagento 2: wrap multiple elements on the cart page in a Bootstrap 3 panelMagento2 - How to get a custom attribute for catalog product?Magento2 : How to show the product's attribute value at product details page on PORTO theme?How to use rewrite the cart/item/default.phtml template file my module?How to use overwrite the checkout cart/item/default.phtml template file into my module in Magento2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
For shopping cart, I added the following code to
app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml
<?php /* @escapeNotVerified */ echo $this->helper('MagentoCatalogHelperOutput')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description') ?>
But it is not displaying the description. How to add product description to shopping cart and checkout page?
magento-2.1 product-attribute shopping-cart
|
show 4 more comments
For shopping cart, I added the following code to
app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml
<?php /* @escapeNotVerified */ echo $this->helper('MagentoCatalogHelperOutput')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description') ?>
But it is not displaying the description. How to add product description to shopping cart and checkout page?
magento-2.1 product-attribute shopping-cart
I got the description for product in shopping cart page with the following code. What template to override for checkout page? $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription(); echo $productDescription;
– Karts
Jul 31 '17 at 11:01
Let me know whether you have custom theme?
– Nagaraju Kasa
Jul 31 '17 at 11:38
magento.stackexchange.com/questions/183767/…
– Nagaraju Kasa
Jul 31 '17 at 11:41
Here i am considering Smartwave/porto is the theme, Hence place <?php echo $_item->getProduct()->getData('description');?>in your custom theme
– Nagaraju Kasa
Jul 31 '17 at 11:42
I just saw your suggestion. Thanks for the reply but I got the description on checkout page working partially with @Sejal's suggestion on magento.stackexchange.com/questions/163848/…. Currently it is displaying the description after the page loads and then the order summary part is getting refreshed and the description is no longer seen.Would you know what the issue is n how to fix it? I don't have the points to comment on sejal's answer.
– Karts
Jul 31 '17 at 13:39
|
show 4 more comments
For shopping cart, I added the following code to
app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml
<?php /* @escapeNotVerified */ echo $this->helper('MagentoCatalogHelperOutput')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description') ?>
But it is not displaying the description. How to add product description to shopping cart and checkout page?
magento-2.1 product-attribute shopping-cart
For shopping cart, I added the following code to
app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml
<?php /* @escapeNotVerified */ echo $this->helper('MagentoCatalogHelperOutput')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description') ?>
But it is not displaying the description. How to add product description to shopping cart and checkout page?
magento-2.1 product-attribute shopping-cart
magento-2.1 product-attribute shopping-cart
edited Oct 26 '18 at 4:45
Purushotam Sharma
9211 gold badge8 silver badges31 bronze badges
9211 gold badge8 silver badges31 bronze badges
asked Jul 31 '17 at 9:44
KartsKarts
357 bronze badges
357 bronze badges
I got the description for product in shopping cart page with the following code. What template to override for checkout page? $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription(); echo $productDescription;
– Karts
Jul 31 '17 at 11:01
Let me know whether you have custom theme?
– Nagaraju Kasa
Jul 31 '17 at 11:38
magento.stackexchange.com/questions/183767/…
– Nagaraju Kasa
Jul 31 '17 at 11:41
Here i am considering Smartwave/porto is the theme, Hence place <?php echo $_item->getProduct()->getData('description');?>in your custom theme
– Nagaraju Kasa
Jul 31 '17 at 11:42
I just saw your suggestion. Thanks for the reply but I got the description on checkout page working partially with @Sejal's suggestion on magento.stackexchange.com/questions/163848/…. Currently it is displaying the description after the page loads and then the order summary part is getting refreshed and the description is no longer seen.Would you know what the issue is n how to fix it? I don't have the points to comment on sejal's answer.
– Karts
Jul 31 '17 at 13:39
|
show 4 more comments
I got the description for product in shopping cart page with the following code. What template to override for checkout page? $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription(); echo $productDescription;
– Karts
Jul 31 '17 at 11:01
Let me know whether you have custom theme?
– Nagaraju Kasa
Jul 31 '17 at 11:38
magento.stackexchange.com/questions/183767/…
– Nagaraju Kasa
Jul 31 '17 at 11:41
Here i am considering Smartwave/porto is the theme, Hence place <?php echo $_item->getProduct()->getData('description');?>in your custom theme
– Nagaraju Kasa
Jul 31 '17 at 11:42
I just saw your suggestion. Thanks for the reply but I got the description on checkout page working partially with @Sejal's suggestion on magento.stackexchange.com/questions/163848/…. Currently it is displaying the description after the page loads and then the order summary part is getting refreshed and the description is no longer seen.Would you know what the issue is n how to fix it? I don't have the points to comment on sejal's answer.
– Karts
Jul 31 '17 at 13:39
I got the description for product in shopping cart page with the following code. What template to override for checkout page? $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription(); echo $productDescription;
– Karts
Jul 31 '17 at 11:01
I got the description for product in shopping cart page with the following code. What template to override for checkout page? $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription(); echo $productDescription;
– Karts
Jul 31 '17 at 11:01
Let me know whether you have custom theme?
– Nagaraju Kasa
Jul 31 '17 at 11:38
Let me know whether you have custom theme?
– Nagaraju Kasa
Jul 31 '17 at 11:38
magento.stackexchange.com/questions/183767/…
– Nagaraju Kasa
Jul 31 '17 at 11:41
magento.stackexchange.com/questions/183767/…
– Nagaraju Kasa
Jul 31 '17 at 11:41
Here i am considering Smartwave/porto is the theme, Hence place <?php echo $_item->getProduct()->getData('description');?>in your custom theme
– Nagaraju Kasa
Jul 31 '17 at 11:42
Here i am considering Smartwave/porto is the theme, Hence place <?php echo $_item->getProduct()->getData('description');?>in your custom theme
– Nagaraju Kasa
Jul 31 '17 at 11:42
I just saw your suggestion. Thanks for the reply but I got the description on checkout page working partially with @Sejal's suggestion on magento.stackexchange.com/questions/163848/…. Currently it is displaying the description after the page loads and then the order summary part is getting refreshed and the description is no longer seen.Would you know what the issue is n how to fix it? I don't have the points to comment on sejal's answer.
– Karts
Jul 31 '17 at 13:39
I just saw your suggestion. Thanks for the reply but I got the description on checkout page working partially with @Sejal's suggestion on magento.stackexchange.com/questions/163848/…. Currently it is displaying the description after the page loads and then the order summary part is getting refreshed and the description is no longer seen.Would you know what the issue is n how to fix it? I don't have the points to comment on sejal's answer.
– Karts
Jul 31 '17 at 13:39
|
show 4 more comments
3 Answers
3
active
oldest
votes
Please follow the below steps:
Step 1: description is an default attribute for the product hence call the same from your custom module as shown below.
/app/etc/NameSpace/ModuleName/etc/catalog_attributes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd">
<group name="quote_item">
<attribute name="description"/>
</group>
</config>
Step 2: Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
use like this <?php echo $_item->getProduct()->getData('description');?>
Step 3: Clear cache and page cache and go to frontend & check the
same.
add a comment |
Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
echo $productDescription;
add a comment |
It's too easy to get product fields on the checkout cart page with the object manager
There are two ways to get details
- Using Object Manager
- Using the override method
Here I'm showing you a direct method from the Object manager
- Please go to below path in your root magento 2
app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml
- Using the below the line you can get the description of the product
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
If you want to get any field of the product than just replace with the Description in the above code.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f187184%2fmagento2-how-to-add-product-description-to-shopping-cart-and-checkout-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please follow the below steps:
Step 1: description is an default attribute for the product hence call the same from your custom module as shown below.
/app/etc/NameSpace/ModuleName/etc/catalog_attributes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd">
<group name="quote_item">
<attribute name="description"/>
</group>
</config>
Step 2: Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
use like this <?php echo $_item->getProduct()->getData('description');?>
Step 3: Clear cache and page cache and go to frontend & check the
same.
add a comment |
Please follow the below steps:
Step 1: description is an default attribute for the product hence call the same from your custom module as shown below.
/app/etc/NameSpace/ModuleName/etc/catalog_attributes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd">
<group name="quote_item">
<attribute name="description"/>
</group>
</config>
Step 2: Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
use like this <?php echo $_item->getProduct()->getData('description');?>
Step 3: Clear cache and page cache and go to frontend & check the
same.
add a comment |
Please follow the below steps:
Step 1: description is an default attribute for the product hence call the same from your custom module as shown below.
/app/etc/NameSpace/ModuleName/etc/catalog_attributes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd">
<group name="quote_item">
<attribute name="description"/>
</group>
</config>
Step 2: Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
use like this <?php echo $_item->getProduct()->getData('description');?>
Step 3: Clear cache and page cache and go to frontend & check the
same.
Please follow the below steps:
Step 1: description is an default attribute for the product hence call the same from your custom module as shown below.
/app/etc/NameSpace/ModuleName/etc/catalog_attributes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd">
<group name="quote_item">
<attribute name="description"/>
</group>
</config>
Step 2: Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
use like this <?php echo $_item->getProduct()->getData('description');?>
Step 3: Clear cache and page cache and go to frontend & check the
same.
edited Jul 31 '17 at 12:30
answered Jul 31 '17 at 11:40
Nagaraju KasaNagaraju Kasa
2,8872 gold badges17 silver badges46 bronze badges
2,8872 gold badges17 silver badges46 bronze badges
add a comment |
add a comment |
Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
echo $productDescription;
add a comment |
Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
echo $productDescription;
add a comment |
Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
echo $productDescription;
Go to below path
/app/design/frontend/Smartwave/porto/Magento_Checkout/templates/cart/item/default.phtml
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
echo $productDescription;
answered Sep 11 '17 at 7:22
DevidasDevidas
6721 gold badge5 silver badges26 bronze badges
6721 gold badge5 silver badges26 bronze badges
add a comment |
add a comment |
It's too easy to get product fields on the checkout cart page with the object manager
There are two ways to get details
- Using Object Manager
- Using the override method
Here I'm showing you a direct method from the Object manager
- Please go to below path in your root magento 2
app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml
- Using the below the line you can get the description of the product
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
If you want to get any field of the product than just replace with the Description in the above code.
add a comment |
It's too easy to get product fields on the checkout cart page with the object manager
There are two ways to get details
- Using Object Manager
- Using the override method
Here I'm showing you a direct method from the Object manager
- Please go to below path in your root magento 2
app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml
- Using the below the line you can get the description of the product
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
If you want to get any field of the product than just replace with the Description in the above code.
add a comment |
It's too easy to get product fields on the checkout cart page with the object manager
There are two ways to get details
- Using Object Manager
- Using the override method
Here I'm showing you a direct method from the Object manager
- Please go to below path in your root magento 2
app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml
- Using the below the line you can get the description of the product
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
If you want to get any field of the product than just replace with the Description in the above code.
It's too easy to get product fields on the checkout cart page with the object manager
There are two ways to get details
- Using Object Manager
- Using the override method
Here I'm showing you a direct method from the Object manager
- Please go to below path in your root magento 2
app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml
- Using the below the line you can get the description of the product
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription();
If you want to get any field of the product than just replace with the Description in the above code.
edited Jun 20 at 5:45
answered Feb 9 at 20:47
Chirag ViradiyaChirag Viradiya
213 bronze badges
213 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f187184%2fmagento2-how-to-add-product-description-to-shopping-cart-and-checkout-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I got the description for product in shopping cart page with the following code. What template to override for checkout page? $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productDescription = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId())->getDescription(); echo $productDescription;
– Karts
Jul 31 '17 at 11:01
Let me know whether you have custom theme?
– Nagaraju Kasa
Jul 31 '17 at 11:38
magento.stackexchange.com/questions/183767/…
– Nagaraju Kasa
Jul 31 '17 at 11:41
Here i am considering Smartwave/porto is the theme, Hence place <?php echo $_item->getProduct()->getData('description');?>in your custom theme
– Nagaraju Kasa
Jul 31 '17 at 11:42
I just saw your suggestion. Thanks for the reply but I got the description on checkout page working partially with @Sejal's suggestion on magento.stackexchange.com/questions/163848/…. Currently it is displaying the description after the page loads and then the order summary part is getting refreshed and the description is no longer seen.Would you know what the issue is n how to fix it? I don't have the points to comment on sejal's answer.
– Karts
Jul 31 '17 at 13:39