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;
I want to add text into the cart showed in the picture, but unfortunately my code does not work.
This is my file structure:
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
add a comment |
I want to add text into the cart showed in the picture, but unfortunately my code does not work.
This is my file structure:
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
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
add a comment |
I want to add text into the cart showed in the picture, but unfortunately my code does not work.
This is my file structure:
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
I want to add text into the cart showed in the picture, but unfortunately my code does not work.
This is my file structure:
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
module cart magento2.3 extensions
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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>
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
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%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
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>
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
add a comment |
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>
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
add a comment |
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>
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>
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
add a comment |
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
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%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
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
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