Magento 2.3: I am trying to add text into the small cart, but it's not workingMagento2 - trying to update module template file not workingadd product into cartMagento 2.3 Can't view module's front end page output?Elasticsearch 5.0+ not working magento 2.3Cart & Checkout blank Magento 2.3 after trying to add product to cartAdd to Cart button not working for me, but working for other usersHow can I add a custom button by using a custom module in Magento 2.3?Magento 2.3: How can I get the customer ID with PHP?

How does encoder decoder network works?

Do Bayesian credible intervals treat the estimated parameter as a random variable?

How can I unambiguously ask for a new user's "Display Name"?

Redacting URLs as an email-phishing preventative?

Evaluated vs. unevaluated Association

I don't have the theoretical background in my PhD topic. I can't justify getting the degree

Command "root" and "subcommands"

Boot Windows from SAN

Can a giant mushroom be used as a material to build watercraft or sailing ships?

HJM in infinite dimensions

Why do proofs of Bernoulli's equation assume that forces on opposite ends point in different directions?

Can RMSE and MAE have the same value?

How can I download a file through 2 SSH connections?

Does maintaining a spell with a longer casting time count as casting a spell?

How do we tell which part of kinetic energy gives rise to temperature?

Architectural feasibility of a tiered circular stone keep

What does "rel" in `mathrel` and `stackrel` stands for?

What is the right path to be followed on Chess.com for learning Chess?

Was the Boeing 2707 design flawed?

"fF" letter combination seems to be typeset strangely or incorrectly

Semantic difference between regular and irregular 'backen'

Another solution to create a set with two conditions

To get so rich that you are not in need of anymore money

"There were either twelve sexes or none."



Magento 2.3: I am trying to add text into the small cart, but it's not working


Magento2 - trying to update module template file not workingadd product into cartMagento 2.3 Can't view module's front end page output?Elasticsearch 5.0+ not working magento 2.3Cart & Checkout blank Magento 2.3 after trying to add product to cartAdd to Cart button not working for me, but working for other usersHow can I add a custom button by using a custom module in Magento 2.3?Magento 2.3: How can I get the customer ID with PHP?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I want to add text into the cart showed in the picture, but unfortunately my code does not work.
enter image description here



This is my file structure:



enter image description here



Code in ButtonGet.php:



<?php
namespace MassiveArtShoppingCartBlock;
class ButtonGet extends MagentoFrameworkViewElementTemplate

public function __construct(
MagentoBackendBlockTemplateContext $context,
array $data = []
)
parent::__construct($context, $data);






Code in get_cart_index.xml:



<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="minicart.addons">
<block class="MassiveArtShoppingCartBlockButtonGet" after="-" name="custom_button" template="MassiveArt_ShoppingCart::button_getcart.phtml" />
</referenceContainer>
</page>


Code in button_getcart.phtml:



<h1>Hello</h1>


The Rest of my Module is working proberly, but this Text not. Can you help me?










share|improve this question


























  • which position you want to show text ??

    – Rk Rathod
    Aug 13 at 13:04











  • before the "view and edit cart" link

    – felix
    Aug 13 at 13:05


















1















I want to add text into the cart showed in the picture, but unfortunately my code does not work.
enter image description here



This is my file structure:



enter image description here



Code in ButtonGet.php:



<?php
namespace MassiveArtShoppingCartBlock;
class ButtonGet extends MagentoFrameworkViewElementTemplate

public function __construct(
MagentoBackendBlockTemplateContext $context,
array $data = []
)
parent::__construct($context, $data);






Code in get_cart_index.xml:



<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="minicart.addons">
<block class="MassiveArtShoppingCartBlockButtonGet" after="-" name="custom_button" template="MassiveArt_ShoppingCart::button_getcart.phtml" />
</referenceContainer>
</page>


Code in button_getcart.phtml:



<h1>Hello</h1>


The Rest of my Module is working proberly, but this Text not. Can you help me?










share|improve this question


























  • which position you want to show text ??

    – Rk Rathod
    Aug 13 at 13:04











  • before the "view and edit cart" link

    – felix
    Aug 13 at 13:05














1












1








1








I want to add text into the cart showed in the picture, but unfortunately my code does not work.
enter image description here



This is my file structure:



enter image description here



Code in ButtonGet.php:



<?php
namespace MassiveArtShoppingCartBlock;
class ButtonGet extends MagentoFrameworkViewElementTemplate

public function __construct(
MagentoBackendBlockTemplateContext $context,
array $data = []
)
parent::__construct($context, $data);






Code in get_cart_index.xml:



<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="minicart.addons">
<block class="MassiveArtShoppingCartBlockButtonGet" after="-" name="custom_button" template="MassiveArt_ShoppingCart::button_getcart.phtml" />
</referenceContainer>
</page>


Code in button_getcart.phtml:



<h1>Hello</h1>


The Rest of my Module is working proberly, but this Text not. Can you help me?










share|improve this question
















I want to add text into the cart showed in the picture, but unfortunately my code does not work.
enter image description here



This is my file structure:



enter image description here



Code in ButtonGet.php:



<?php
namespace MassiveArtShoppingCartBlock;
class ButtonGet extends MagentoFrameworkViewElementTemplate

public function __construct(
MagentoBackendBlockTemplateContext $context,
array $data = []
)
parent::__construct($context, $data);






Code in get_cart_index.xml:



<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="minicart.addons">
<block class="MassiveArtShoppingCartBlockButtonGet" after="-" name="custom_button" template="MassiveArt_ShoppingCart::button_getcart.phtml" />
</referenceContainer>
</page>


Code in button_getcart.phtml:



<h1>Hello</h1>


The Rest of my Module is working proberly, but this Text not. Can you help me?







module cart magento2.3 extensions






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 13 at 17:02









Josiah

767 bronze badges




767 bronze badges










asked Aug 13 at 13:01









felixfelix

33917 bronze badges




33917 bronze badges















  • which position you want to show text ??

    – Rk Rathod
    Aug 13 at 13:04











  • before the "view and edit cart" link

    – felix
    Aug 13 at 13:05


















  • which position you want to show text ??

    – Rk Rathod
    Aug 13 at 13:04











  • before the "view and edit cart" link

    – felix
    Aug 13 at 13:05

















which position you want to show text ??

– Rk Rathod
Aug 13 at 13:04





which position you want to show text ??

– Rk Rathod
Aug 13 at 13:04













before the "view and edit cart" link

– felix
Aug 13 at 13:05






before the "view and edit cart" link

– felix
Aug 13 at 13:05











1 Answer
1






active

oldest

votes


















0















Create File In MassiveArt/ShoppingCart/view/frontend/layout/default.xml



<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="minicart.addons">
<block class="MassiveArtShoppingCartBlockButtonGet" name="minicart.movetoquote" template="MassiveArt_ShoppingCart::button_getcart.phtml"/>
</referenceContainer>
</page>


Create phtml File In MassiveArt/ShoppingCart/view/frontend/templates/button_getcart.phtml



<h1>Hello</h1>





share|improve this answer

























  • I did this, but it is not working.

    – felix
    Aug 13 at 13:15











  • create default.xml file as per my answer

    – Rk Rathod
    Aug 13 at 13:15











  • why cant I name it get_cart_index.xml? Because with the name default.xml it is working. I just not understand why? But thanks a lot.

    – felix
    Aug 13 at 13:18












  • default.xml is always excute so

    – Rk Rathod
    Aug 13 at 13:20













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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f285339%2fmagento-2-3-i-am-trying-to-add-text-into-the-small-cart-but-its-not-working%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0















Create File In MassiveArt/ShoppingCart/view/frontend/layout/default.xml



<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="minicart.addons">
<block class="MassiveArtShoppingCartBlockButtonGet" name="minicart.movetoquote" template="MassiveArt_ShoppingCart::button_getcart.phtml"/>
</referenceContainer>
</page>


Create phtml File In MassiveArt/ShoppingCart/view/frontend/templates/button_getcart.phtml



<h1>Hello</h1>





share|improve this answer

























  • I did this, but it is not working.

    – felix
    Aug 13 at 13:15











  • create default.xml file as per my answer

    – Rk Rathod
    Aug 13 at 13:15











  • why cant I name it get_cart_index.xml? Because with the name default.xml it is working. I just not understand why? But thanks a lot.

    – felix
    Aug 13 at 13:18












  • default.xml is always excute so

    – Rk Rathod
    Aug 13 at 13:20















0















Create File In MassiveArt/ShoppingCart/view/frontend/layout/default.xml



<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="minicart.addons">
<block class="MassiveArtShoppingCartBlockButtonGet" name="minicart.movetoquote" template="MassiveArt_ShoppingCart::button_getcart.phtml"/>
</referenceContainer>
</page>


Create phtml File In MassiveArt/ShoppingCart/view/frontend/templates/button_getcart.phtml



<h1>Hello</h1>





share|improve this answer

























  • I did this, but it is not working.

    – felix
    Aug 13 at 13:15











  • create default.xml file as per my answer

    – Rk Rathod
    Aug 13 at 13:15











  • why cant I name it get_cart_index.xml? Because with the name default.xml it is working. I just not understand why? But thanks a lot.

    – felix
    Aug 13 at 13:18












  • default.xml is always excute so

    – Rk Rathod
    Aug 13 at 13:20













0














0










0









Create File In MassiveArt/ShoppingCart/view/frontend/layout/default.xml



<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="minicart.addons">
<block class="MassiveArtShoppingCartBlockButtonGet" name="minicart.movetoquote" template="MassiveArt_ShoppingCart::button_getcart.phtml"/>
</referenceContainer>
</page>


Create phtml File In MassiveArt/ShoppingCart/view/frontend/templates/button_getcart.phtml



<h1>Hello</h1>





share|improve this answer













Create File In MassiveArt/ShoppingCart/view/frontend/layout/default.xml



<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="minicart.addons">
<block class="MassiveArtShoppingCartBlockButtonGet" name="minicart.movetoquote" template="MassiveArt_ShoppingCart::button_getcart.phtml"/>
</referenceContainer>
</page>


Create phtml File In MassiveArt/ShoppingCart/view/frontend/templates/button_getcart.phtml



<h1>Hello</h1>






share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 13 at 13:12









Rk RathodRk Rathod

3,0774 silver badges26 bronze badges




3,0774 silver badges26 bronze badges















  • I did this, but it is not working.

    – felix
    Aug 13 at 13:15











  • create default.xml file as per my answer

    – Rk Rathod
    Aug 13 at 13:15











  • why cant I name it get_cart_index.xml? Because with the name default.xml it is working. I just not understand why? But thanks a lot.

    – felix
    Aug 13 at 13:18












  • default.xml is always excute so

    – Rk Rathod
    Aug 13 at 13:20

















  • I did this, but it is not working.

    – felix
    Aug 13 at 13:15











  • create default.xml file as per my answer

    – Rk Rathod
    Aug 13 at 13:15











  • why cant I name it get_cart_index.xml? Because with the name default.xml it is working. I just not understand why? But thanks a lot.

    – felix
    Aug 13 at 13:18












  • default.xml is always excute so

    – Rk Rathod
    Aug 13 at 13:20
















I did this, but it is not working.

– felix
Aug 13 at 13:15





I did this, but it is not working.

– felix
Aug 13 at 13:15













create default.xml file as per my answer

– Rk Rathod
Aug 13 at 13:15





create default.xml file as per my answer

– Rk Rathod
Aug 13 at 13:15













why cant I name it get_cart_index.xml? Because with the name default.xml it is working. I just not understand why? But thanks a lot.

– felix
Aug 13 at 13:18






why cant I name it get_cart_index.xml? Because with the name default.xml it is working. I just not understand why? But thanks a lot.

– felix
Aug 13 at 13:18














default.xml is always excute so

– Rk Rathod
Aug 13 at 13:20





default.xml is always excute so

– Rk Rathod
Aug 13 at 13:20

















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f285339%2fmagento-2-3-i-am-trying-to-add-text-into-the-small-cart-but-its-not-working%23new-answer', 'question_page');

);

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







Popular posts from this blog

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form