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
2
votes
1answer
32 views

No such entity cartId when send POST on /rest/default/V1/carts/mine/payment-information

According to documentation - https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-order.html I'm trying to make call on /rest/default/V1/carts/mine/payment-information with body: ...
1
vote
2answers
28 views

PHTML Uncaught TypeError: $(…).lazy is not a function

After installing this module I get an error sometimes: Images won't load and the next error will show on console: Uncaught TypeError: $(...).lazy is not a function With a link to this section of code ...
1
vote
1answer
11 views

How to enable asynchronous indexing in production mode?

I want to enable the asynchronous indexing, but the option is inside the Admin menu below, which is available just in developer mode. Stores > Settings > Configuration > Advanced > ...
0
votes
0answers
27 views

Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded

i am currently searching to fix the problem. After updating from Magento 2.3.5-p2 to 2.4 we get the following error message: 1 exception(s): Exception #0 (InvalidArgumentException): Unable to ...
0
votes
0answers
10 views

Loading the customer add address form in a phtml file in Magento 2 issue

I would like to load the add customer address form in a phtml file. My phtml file looks like: ......... echo $this->getLayout() ->createBlock( "Magento\...
0
votes
0answers
16 views

Magento 2 dropdown navigation sub level unreachable

The Problem When building a new theme using the Blank magento 2 theme as the parent, our dropdown navigation is not working as intended. Below is a picture of the current result. As you can see we ...
0
votes
0answers
14 views

Magento 2: Add Image to the Customer Account Navigation Menu

I hope everyone is doing well! I am new to Magento 2. I would like to add Image for all the menus in "Customer Account Navigation Menu" at the top of each link. I am able to change the text ...
0
votes
0answers
9 views

Auto fill the create account fields for guest, after the order has been placed

I am using Magento 2.2.6 and the option where Guest can check out and place the order is enabled, the guest gets an option on the order success page to create an account and while the option is ...
0
votes
0answers
10 views

Magento ver. 2.2.9: Import/Export options are not available

Import/Export option is not visible under . System->Data Transfer User: admin Magento ver. 2.2.9
0
votes
3answers
63 views

How to rename the tabs under Details on product details page in Magento 2

I use a Porto theme for my Magento 2 store and wondering if there's an easy way to rename the Details tabs on product details page.
0
votes
0answers
6 views

Redirect to checkout cart after individual product update

So I added a product in my cart. Now I decided to edit the quantity of this individual product. Now I want it to redirect back to checkout/cart instead of a page refresh. Is there a way to do this ...
1
vote
1answer
19 views

Magento 2 URL Key field would generate a URL that already exists

I'm trying to move my Category Wincomm but I keep getting this message. I have 2 Store Views and I have changed the url using Marketing -> URL Rewrites but the message keeps returning. I've also ...
0
votes
0answers
15 views

Magento2.4 sort by created date not working

Magento2.4 Sort by created date not working on list page case 'new_arrivals': $this->_collection->getSelect()->order('e.created_at '. $this->getCurrentDirection()); break; It just ...
0
votes
0answers
10 views

Wysiwyg / TINYmce Editor Removing itemscope , itemtype

Whenever I edit content for category/product with tinymce it removes itemscope or itemtype for google snippets from elements like for example this <div itemscope="" itemtype="https://...
0
votes
0answers
4 views

How is magento creating flat

I have some products with stock which are not appearing in my flat store table. I would like to understand why these products are not handled by the indexer. Can anyone tell me where magento is going ...
1
vote
2answers
45 views

Magento2 override addto wishlist.phtml

<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd&...
0
votes
0answers
11 views

magento 2 cart price rule

I need to create cart price rule Buy x get Y with 50% discount ,Conditions are Buy 1 bag get 1 t-shirt 50 % offer Scenarios 1), Bag 2 or equals or greater than t-shirt 1 -rule apply 2) ,Bag 1 t-shirt ...
2
votes
1answer
32 views

Magento 2.4 deploy command does not creating minify file when I am in production mode

Magento 2.4.0: The static content deployment command does not create minify file when I am in production mode. Getting error on below file. It's not creating so Magento cannot read it. pub/static/...
0
votes
0answers
8 views

Cloning of a product attribute?

Magento 2.3.3 Is it somehow (code, extension, ...) possible to make a clone (except for the name) of an attribute? I searched a bit, but found nothing useful. The product I want to clone is of type ...
0
votes
1answer
36 views
0
votes
1answer
19 views

how to get custom session in magento 2?

I have tried this but this is giving empty log file. What should I do to get output for this: public function isAdmin() { $writer = new \Zend\Log\Writer\Stream( BP . '/var/log/myfile.log' ); ...
0
votes
1answer
25 views

How to filter category with custom attribute Magento 2

I added a custom category attribute type yes/no like this: In eav_attribute table: the problem is when i filter follow this attribute it return empty array: $model = $this->categoryFactory->...
0
votes
2answers
24 views

Currency conversion in CMS page

I need to put some prices into a CMS page. How can I insert and display them accordingly to the currency selected?
1
vote
1answer
37 views

Error filtering template: Notice: Undefined index:

This error is affecting the homepage after I changed the src="" attribute in image tag. "Error filtering template: Notice: Undefined index: url in [root]/vendor/magento/module-widget/...
0
votes
0answers
12 views

Remove specific dates and days from the Magento Calendar

The two solutions work if implemented separately: Disable selected dates in default Magento2 calendar Disable/Remove Sunday and it related date from calendar How to implement both solutions with the ...
0
votes
1answer
27 views

Hide Accound Dashboard Link depending upon customer group

I have added two links to customer dashboard "Proposals" and "Documentaion". I have also added a customer group "xyz". I want to only show the mentioned group. Similarly,...
0
votes
0answers
16 views

how to configure product when select radio button then show dropdown

I am facing issue. i have add products to Magento 2, but i need functions like this create a radio button on product page. e.g Upper and Lower When user select upper then the Upper (dropdown menu ...
0
votes
1answer
15 views

How can I get the Canonical Product Url in list.phtml?

I need to get Canonical Product Url inside app/design/frontend/Vendor/Theme/Magento_Catalog/templates/product/list.phtml. I tried to use: $block->getProductUrl($_product) and: $_product->getUrl(...
0
votes
1answer
14 views

Notice: Array to string conversion in shipping delivery on magento 2

I upgraded from magento 2.2.2 to 2.2.11 since I have an error when selecting a shipping address. I get the error: "Notice: Array to string conversion in mywebsite/vendor/magento/framework/DB/...
1
vote
2answers
28 views

Product images not showing

I'm experiencing a strange behaviour: all the product images are present if I edit a product on the backend. But if I visit the product list in the backend or frontend, or the product view in frontend,...
1
vote
2answers
37 views

Magento 2 : Product pages through exceptions

All Magento products were working properly last week. Now I check that all product pages through exceptions. 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element '...
1
vote
1answer
15 views

Increment product quantity stock on payment failure

Could anyone tell me how can I increment my product quantity stock when an order gets fails? I'm using Magento 2.3.5 and using a customized payment gateway. The scenario is when I'm placing an order ...
0
votes
0answers
15 views

Tax specific query very strange behaviour or is it with eBay GSP Sales

I am thinking M2 might be correct but not 100%. I have all my Tax Zones and Rates added and my Tax Rules setup. I have the correct settings and all my sales are in the UK and VAT is applied correctly. ...
0
votes
0answers
10 views

Magento 2 How to get layered navigation filter based on category id

I want to get category filters and its values when I send category id to rest Api But in my case I am getting errors please see the below screenshot and code as well. Thanks in advance. protected $...
0
votes
2answers
32 views

Varnish doesn't display full page with Magento 2

I'm having a weird issue while configuring Varnish with my Magento 2 store. My setup is such that I'm using a frontend server that routes the requests first to Varnish and then to Apache (as a ...
0
votes
0answers
14 views

Magento2 Add to compare Api using graphql?

Magento2 - PWA. I am developing PWA in Magento2. In products I am not able to see Add to compare link. How can I create add to compare Graphql API & use it in PWA?
0
votes
0answers
16 views

Empty Current Cart Items And Add new cart items programmatically in magento2

I want to generate a sharecart link to customers , here the problem is when i am sharing cart link i am adding one unique key to the sharecart url. Based on this key added products to customers cart ...
0
votes
0answers
12 views

Magento2 add view more colours link if color swatches are more then 5

Magento2 How can I add view more colors link if swatches are more then 5. In short on the listing page or related products etc except product details page if color swatches of config products are more ...
0
votes
1answer
41 views

Failed to create invoice for orders having bundle product with fixed pricing

I have configured a Bundle products comprised of Virtul & Simple products and using fixed pricing for each bundle option. When trying to create order at checkout and creating invoice behind the ...
0
votes
0answers
13 views

Configurable items: how to hide combinations not in stock?

I have this to handle: On our clothing store, we have the classic "color" and "size" attributes and often happens that we create new variations of color for a sku. The problem is ...
0
votes
0answers
5 views

Update Total Price Bundled Product

So I tried creating a bundled product with a QTY increment/decrement button. Natively when the qty input is changed, the total price in the left side is updated. I want this behavior to happen when I ...
0
votes
0answers
8 views

Magento 2 | Launch an action form in the order view of the backend

I am trying to launch an action form for uploading some attachments and staying on the same page in the order view section of the Magento backend. My code for now is this but it doesn't work, the form ...
0
votes
0answers
13 views

How to update all bundle products

How to add a new Bundle item to all products? Is there a way in Magento to update all of these products? I have not found a normal example at the moment
0
votes
2answers
27 views

Magento 2: Translate knockout template html text with variables

Currently i have a knockout template for minicart like this: <!-- ko if: getCartParam('summary_count') --> <div class="items-total"> <!-- ko if: getCartParam('...
0
votes
1answer
40 views

Magento 2 Show Custom Option on Custom Page

How to get Product custom option and show into custom page.this is a product custom option. Now when add to cart this product then it's show like this When click on add to list data store into ...
0
votes
0answers
12 views

Magento 2 : Change shipping address based on delivery method selection

I am looking for a way to change the shipping address of an order based on the delivery method selection, I have various collection points setup on my store using a third party extension. The only ...
0
votes
0answers
27 views

Fatal error: […] PhpRenderer.php on line 497

Getting the following error from very begining of Magento setup and installation. Any thoughts? Fatal error: Uncaught Laminas\View\Exception\RuntimeException: Laminas\View\Renderer\PhpRenderer::...
0
votes
1answer
17 views

MAGENTO 2.4 WHEN EXPORT BY BULK 10, 100 AND 1000 PRODUCTS ITS OK BUT I CAN NOT WITH 4000

I am newbye with Magento.... the issue i am experienced at this moment is when i try to export 10, 100 or 1000 products everything goes ok and the CSV file appears to be downloaded properly.... but ...
2
votes
2answers
32 views

Magento 2 : Get shipping method using observer

I am trying to get the the shipping method using observer but I cant seem to get it to work, this is what I have for the ShippingTypeEmail.php <?php namespace vendor\Emails\Observer; use Magento\...
0
votes
0answers
29 views

Getting Admin Auth Token

I'm new to Magento 2 software and trying to get some help to my scenario. One of our integration were failing to connect to our store API calls stating the expected response was json but getting HTML. ...