We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Magento2.3.3 add to cart button doesn't redirect to cart after adding in cart

I'm facing a weird issue after upgrading from magento 2.2.3 to 2.3.3. When adding to cart from product page, I've enabled setting After Adding a Product Redirect to Shopping Cart to Yes. After the ...
0
votes
0answers
6 views

Magento 2 Update Cart button is not display after customize Product page

I have so much customization in product page of my website.everything is working fine on product page while when we go to cart page and click to edit any page it redirect to "websiteurl/checkout/cart/...
0
votes
0answers
10 views

Validation date is not working in Magento2

$dateFormat = $this->_localeDate->getDateFormat(\IntlDateFormatter::SHORT); $fieldset->addField( 'to_date', 'date', [ 'name' => 'to_date', ...
0
votes
0answers
5 views

I am getting Verified: 10574-This card authorization verification is not a payment transaction in magento 2 for payflow pro credit card transaction

When I testing the credit card transaction in Magento 2 checkout it is showing Refused to display 'https://xxx/paypal/transparent/response/' in a frame because it set multiple 'X-Frame-Options' ...
0
votes
0answers
9 views

How the full page cache and varnish work in magento2?

I have check full page cache in devdocs when full page cache on var/page_cache generated but when varnish is enable it's not generated. so how the both work differently. how the request work for ...
0
votes
0answers
6 views

Out of Stock Product

i made product out of stock and refresh cache on plp its shows addtocart button it should show out of stock and when i open detail page there show out of stock i want out stock on list page as well i ...
0
votes
0answers
4 views

Shipping amount is lost with call function estimateTotals Magento 2

In my module I have my own discount and when I load the pag custom discount doesn't load. I try to call function estimateTotals and after it shipping amount is lost but show my discount. That I do: ...
0
votes
1answer
9 views

Magento2.3 files permissions inside docker container (ubuntu)

i am beginner in Magento 2.3, and i encountred an issue when i tried to enable my first custom module: bin/magento module:enable Mageplaza_HelloWorld I'm using docker apache container to run my ...
0
votes
0answers
16 views

Magento2: I need to disable the system configuration field [on hold]

I need to disable the system configuration field and checked the solutions but not getting the result. Please suggest. Thanks
0
votes
0answers
9 views

Magento2.3 get product name using ProductCollection->GetData()

i'm working on Magento2.3 and i need to work with my product not as object but as array. So i use getData function and everything goes right. $array=$_productCollection->getData(); but GetData ...
0
votes
0answers
10 views

Magento 2 get filters for current custom collection

I have custom collection which i make based on some query, the query is used to contact 3rd party api where we get values which we use to create our custom collection. The products are not assigned ...
0
votes
0answers
28 views

How to add Contact Us in the Top menu?

I am trying to add Contact us Menu into the top navigation menu but its not Working for me. I am trying using default Contact Us page but its not showing in Top Menu. From admin panel I was ...
0
votes
1answer
14 views

Get the regular price from the order object when catalog discount is applied?

in Magento 2 how we can get the regular price for the product from the order object when the catalog discount is applied to the products. As order object only return the discounted price and no ...
0
votes
2answers
32 views

how to show a label in admin grid in magento 2

grid using block (.xml file) <block class="Magento\Backend\Block\Widget\Grid\Column" as="customer_group"> <arguments> <argument name="header" xsi:type="string" ...
0
votes
3answers
32 views

magento 2 don't want to show proceed to checkout button based on custom condition

How to hide Proceed to Checkout button in the mini cart section magneto 2 from custom module based on my condition. For example: if the custom session data is set then hide - ...
0
votes
3answers
27 views

Get Payment method API keys in controller from admin sales->configuration->payment-methods?

I am integrating a custom payment module. I need to get the API keys in my controller. If possible in JS file also. My Controller where I need to get the config values. <?php namespace ...
0
votes
0answers
6 views

How to install Magento with Azure and how to see all code file with Azure

Is any one have experience about Azure with magento. How to install Magento with Azure and how to see all code file with Azure
0
votes
1answer
19 views

Magento2: How to setTaxClassId as 0

We tried using event method "sales_quote_collect_totals_after" $quote = $observer->getQuote(); foreach ($quote->getAllItems() as $quoteItem) { $product = $quoteItem->...
0
votes
1answer
32 views

Magento 2 : Pass a variable to getChildBlock() in LayeredNavigation view.phtml

I have to pass a variable in layer/view.phtml /Magento_LayeredNavigation/templates/layer/view.phtml to its getChildBlock which is renderer/labels.phtml Amasty_Shopby/templates/layer/filter/...
0
votes
1answer
32 views

Not able to run command after upgrade - Magento2

I have upgraded the Magento version after that I have run cache clean, flush and permission command. above cache-related commands are working good but php bin/magento setup:upgrade command isn't ...
0
votes
1answer
21 views

How to set Specific (dummy) image on the whole category products. Magento 2

Actually I add many products in my Magento 2 but we still dont have any images for that products so I want to set the a Dummy image on whole category products e.g like on Men categories products I ...
0
votes
0answers
18 views

Product Key is not synchronised. Order placement failed

I am using Square-Up Extension After click to place order button error come Product 40982 is not synchronized. Order placement failed. anyone helpe here thanks in advance
3
votes
1answer
32 views

Why API is not in every folder of default Magento folders? When Api is needed?

I already know the basic of API and its use, but in magento its confusing.(I am new in magento) if I am creating my module, I can get data from model/repository, that's means API is not required every ...
0
votes
2answers
39 views

Magento 2 - mage/url is not working in module. Uncaught ReferenceError: url is not defined

I am running the Magento 2 on the localhost server. http://127.0.0.1/magento3 here I've built a custom module for payment gateway. In custom JS I want to use the mage/url. I need to use ajax for the ...
1
vote
1answer
48 views

Add images to product description content programatically in Magento2

I want to add images to my product description content block but I don't want these specific images to appear in the product gallery ('image', 'small_image', 'thumbnail'). To add regular images I do ...
1
vote
1answer
28 views

Magento 2: Error when clicking custom column on grid

I have created a custom column updated_at on customer grid. I have displayed it with data. But when I click the column header, this error pops out (Something went wrong with processing the default ...
0
votes
0answers
11 views

Magento 2 - Keep csv data description spaces while creating programatically

I am trying to create a new product using CSV custom script for which I refer Programmatically create a simple product in magento 2 Which is creating a product but it removes all spaces when we set an ...
0
votes
1answer
9 views

New products 404 after Store view delete

Magento 2.3.3 We were using 2 storeviews and now have deleted the extra one we added for testing. Now we have 1 store view and adding new products results in 404 page for the new product added. We ...
0
votes
1answer
16 views

Magento 2.3 : Category names missing from breadcrumbs on the product page

I am using Magento 2.3 for my store.On the product page category and subcategory are missing from the breadcrumb.Is there any workaround to show the fullpath with category and subcategories in the ...
0
votes
1answer
32 views

How does $block->customerLoggedIn() work with Magento's cache?

I see there are two ways Magento2 renders content in the header for logged-in vs logged-out customers. With KnockoutJS in header.phtml With PHP in customer.phtml Which is considered best practice? ...
0
votes
2answers
21 views

Add custom row to Order View on Frontend Magento 2

I have my own custom discount, and on checkout I can use it. When I place the order, I see that grand total is changed, but me need to show discount. I want to paste it between subtotal and shipping.
0
votes
0answers
14 views

Create a custom graphql module with filter attributes magento 2

I need to get all attribute values of product based on the category id. I had implemented this logic in rest api but I couldn't find clear solution for graphql module. My schema.graphqls file is ...
0
votes
0answers
14 views

Magento 2: How to add radio button type swatch on product page programmatically?

I want to show the radio button to select the product option instead of dropdown or text swatch? Help me out to solve this programmatically.
0
votes
0answers
18 views

How To Customize Newsletter PHTML? [on hold]

I used an extension but I don't know how to customize its phtml, extension send's ajax based newsletter subscription request... /app/code/Vendor/Module/view/frontend/layout/default.xml <?xml ...
0
votes
0answers
13 views

Magento2 How To Update Cart Subtotal After Checkout cart page is load

Does anyone know how to update cart subtotal after checkout cart page is loaded?
0
votes
0answers
18 views

Admin side when Create Credit memo give error like No such entity with cartId = xxx in magento 2

when I am creating a new credit memo error generate like No such entity with cartId = xxx .so why this error generate anyone has a solution then give me. also, remove generated and var/*. Thank You
0
votes
1answer
21 views

Magento 2.3 Magento 2 Testing Email Sending But Order Confirmation Email Is Not Sending

I am using magaplaza SMTP extension and i configured it correctly, Test Email Working Fine But When I place an order the order confirmation email not sending. And the Email Logs Telling me that email ...
0
votes
0answers
20 views

Discount code shows in cart but not checkout Magento 2.2.5

We have a cart price rule that applies a discount to a certain product (e.g. if item found in cart with brand 'Nike' then discount 'Nike' product 10%). A customer goes to checkout/cart/ the discount ...
0
votes
1answer
46 views

Update Product QTY right before place order from external remote API

We want to update and check product quantity when user clicks on "Place Order" button. If product is outofstock in remote API and get 0 qty then user should not able to "Place Order" and display ...
0
votes
1answer
22 views

Issue when adding new top menu using admin panel

I created a CMS page from the adminpanel. After that i created a CMS block using the admin panel. Both worked fine. Then i created a new Category and inside the category form i added the previous ...
1
vote
1answer
22 views

Magento 2: How to display the description and review without tabbing

How can i display the review and description without tabbing like the below image?
1
vote
1answer
24 views

Can I change the extension from .HTML to .phtml?

I've got a custom payment module. I've .HTML checkout button page in this path. \app\code\vendorName\moduleName\view\frontend\web\template\payment\vendor.html Can i change .phtml instead of .HTML ...
0
votes
0answers
12 views

Remove currency rate conversion in magneto 2

I want to add advance pricing price manually not want to calculate from currency rate. Initially it will calculate it from currency rate and show on front end but i want to do it manually. Is there ...
0
votes
0answers
14 views

How to display the Visual Swatch colors on Frontend

I am using Magento 2.3.2, I have the configuration for the Visual Swatch Colors but they are not "visible" when I open a product. I can see that they are present as html. I am attaching an image with ...
0
votes
0answers
16 views

How to add view.xml in custom module for custom resource image in magento 2

I wanted to add view.xml in my custom module for custom image. I have used following approach : Create etc/view.xml <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
8 views

Magento 2 admin 2-column product details layout

Currently the backend product details view looks like this (v2.3.2): Is it somehow possible to change it, so that the "groups" like "Content", "Images and Videos", "Product Reviews", etc. are ...
1
vote
0answers
15 views

Language store switcher redirect on home page

I have five language store switcher drop-down EN store is my base store when click on cms page then showing cms page with content after cms page when click on different store (FR) then its redirect ...
0
votes
0answers
20 views

Magento 2 Admin : How to increase number of products shown under related products in admin section?

I want to sort the product by grag and drop , but both product are in different page , So want to remove pagination or show 100 products instead of 20 , Any Suggestion would be appreciated !
0
votes
0answers
10 views

Magento2: In cart page how to override tax price

In cart page, we change the postcode means we use custom tax amount to update in the frontend. Anyone help me.
0
votes
0answers
22 views

M2: Child theme checkout cart XML ignored

I've been banging my head off a brick wall on this so I'd like to double check if I'm going about this the wrong way. I have set up a child theme, and have applied that to a store - all of the child ...