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

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

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?