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
6 views

How to access custom attributes from the current product in JavaScript?

I added the following in view/frontend/layout/catalog_product_view.xml: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
3 views

Magento 2.4.2 : Adobe sensei product recommendations missing product URL data

I am using magento2.4.2 EE and configured Adobe Sensei product recommendations. But facing issues of product url is missing in generated product recommendations html data-bind. I've debugged response ...
0
votes
0answers
5 views

Invalid template file: 'post/head.phtml' in module: 'Carpetcall_Blogs' block's name: 'mpblog.post.head'

I need to override the following file function in my custom module File - Mageplaza\Blog\Block\Post\View Function Name - getBlogTitle() As I need to remove '- Blog | Ideas & Advice | Carpet Call' ...
0
votes
0answers
25 views

Why is there CartInterface instead of QuoteInterface?

Standard practice is to have Entity and EntityInterface (Order - OrderInterface, Customer - CustomerInterface). But for Quote this rule is broken, regardless class Quote is the one implementer of ...
0
votes
1answer
9 views

Collect quote totals at init checkout page and cart page?

i'm using magento v2.4.1. I tried to add the product to the cart programmatically using salesrule_validator_process observer, this is to add a product if a cart rule being applied to the cart: $quote =...
0
votes
1answer
18 views

Magento 2: How to load all product images from external url in front end and backend?

Magento 2, How to load all product images from external url in front end and backend
0
votes
1answer
11 views

Magento 2 - Suddenly can't login into backend

I cant login to the backend anymore suddenly even though I made no changes. So I tried to created a new admin user via CLI but I get No Administrators role was found, data fixture needs to be run ...
0
votes
1answer
10 views

How to display reviews from Amazon Products to Magento 2?

There is any option or extension is available, i want to display automatically my amazon products reviews to Magento 2 products accordingly ? How to i can do this ? If there is any guide please share ...
0
votes
0answers
10 views

Magento 2: Set cron schedule dynamically from frontend

I want to set schedule of cron job from values chosen by the customer from the frontend. I have created checkboxes on checkout page through which I ant to set the schedule of email reminders chosen by ...
0
votes
1answer
18 views

Not able to upload SVG in Magento 2.4.2

I am using Magento 2.4.2 community edition and I want to allow SVG upload across everywhere in magento admin. I have tried below code to achieve it but no luck. Firstly, I tried to add svg in allowed ...
0
votes
0answers
12 views

How to get small image on category page instead of base image

I hope someone can help us solve our issue. We're on Magento 2.4.0 and having issues to get small image-role for category page instead of base image-role. We're using: small image-role for category ...
1
vote
1answer
12 views

Magento 2 : price issue

I am using Magento ver. 2.4.2 EE & React Frontend In front-end when switching the region between US/UK/EU the price sign is still in $ (us dollar) Can you please share which things i can check to ...
1
vote
2answers
22 views

How to properly get current quote in Carrier Collect Rates function?

I'm using Magento 2.4.1 and I want to retrieve the current quote in collectRates function in my Carrier model, but sometimes it will prompt an infinite loop error like this: this is how i retrieve ...
0
votes
0answers
7 views

Magento 2: Trigger reminder/followup email by customer's choice

I want to add an option(buttons) in the end of the checkout through which the client can choose: No reminder email (default selected) Receive 1 reminder email (in his language) after | 15 days| 1 ...
0
votes
1answer
19 views

Magento 2.4.2: In the checkout, the shipping cost doesn't change on user switching the country and entering the zipcode

I got a custom shipping module which I am trying to use to compute shipping costs for both US and Canada. In the module, I am calling FedEx Carrier class method to get shipping rates to Canada. The ...
0
votes
1answer
21 views

How To Change vendor\magento\module-eav\etc\db_schema.xml column type?

I recently upgrade magento 2.3.3 to 2.3.5 and I had a error while runnig : php bin/magento setup:upgrade Image Of Error : error I follow to : vendor\magento\module-eav\etc\db_schema.xml and I see that ...
0
votes
1answer
17 views

How to convert raw HTML dynamically in Magento 2

I want to show this table on the frontend Product View page How to replace {{custom_product_attribute_1}} with actual product attribute value. and these attributes can be dynamic. Custom RAW HTML ...
0
votes
0answers
9 views

Magento 2: How To Add Validation In Admin MultiSelect Field

I add a custom admin filed in custom form, it's a multi-select category field. I just want to make this field required. phtml <div class="field required"> <label class="...
0
votes
1answer
8 views

Event To get Refund Order in Magento2

i want to perform some action if click on credit memo of any order from admin what code i need to write in observer and what event i need to use
0
votes
0answers
7 views

Magento 2: Instagram integrtion with number of likes and comments

I have integrated instagram to my store using this module https://github.com/landofcoder/module-magento-2-instagram I want to show number of likes and comments too. And also filter images by sort. Can ...
0
votes
1answer
17 views

Magento 2.4.2: Overriding Carrier.php of Magento Fedex module doesn't work

I got to override Magento FedEx Carrier.php in Magento-fedex module which is seen in the screenshot below. The structure of the overriden Fedex module under app/code in the project is as below. All ...
0
votes
0answers
6 views

Programtically Create Invoice with custom product price and qty

I have been working on a module which takes data from CSV file and create invoice into the system programmatically. The main problem is, the items in the invoice matches the parent order however, ...
0
votes
0answers
7 views

Is it possible to make the magento filter load a phtml code inside?

Staff in magento 2, in 2-column layout, in the first column there is a value filter and in the second column the products. Is it possible to make the filter load inside the product column?. I need the ...
0
votes
0answers
10 views

How can I get all widget_instances of a widget type from the database?

I created a new widget type named "lorem_widget" and also a few widgets instances of them, which are persisted in widget_instances. Now I want to get all of these widgets out of the database ...
0
votes
0answers
15 views

How to add inline css to the Transaction Emails

I need to update existing email header. There for I have to modify some styles.but doesn't define in specific style in app/design/frontend/{themename}/{namespace}/Magento_Email/email/header.html app/...
0
votes
0answers
27 views

How to get filterable attribute option after category attribute selection in magento 2 programmatically

I used the below code and list out all the attribute options by current category wise. But, I want to list out available attribute options by selected attribute option with product results. In my case,...
0
votes
1answer
14 views

Magento 2.4.2 #1 Magento\Framework\Config\Dom->__construct() called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121

Hi friends after upgrading to magento 2.4.2, i received the following error in the product catalog. I am also getting the message "There are no source items with in stock status" when trying ...
0
votes
0answers
10 views

Magento 2 - how to update attribute values with rest api (curl)

$ch = curl_init("92.19.109.89/index.php/rest/V1/products/".$productId); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($...
2
votes
1answer
21 views

Warning: Illegal offset type in isset or empty in vendor/magento/module-email/Model/Template/Config.php on line 224

I am creating custom module to process order template. In Magento 1,It is working fine with below code, $template = 'sales_email_order_template'; $emailTemplate = Mage::getModel('core/email_template')...
0
votes
0answers
8 views

Magento 2 : Object of class Magento\Directory\Model\Currency could not be converted to string

What does this mean ? Object of class Magento\Directory\Model\Currency could not be converted to string This error appears when i execute mutation "available_payment_methods" query { cart(...
0
votes
0answers
5 views

Uncaught Error: Script error for: popper.js Has anyone solved it?

Guys I'm having a problem showing the popper error, and my drop down doesn't seem to work because of this error. I tried many things and tried to put the popper.js file in the theme's js folder and it ...
1
vote
2answers
24 views

How to change admin page header title?

How I can change page header title from controller in admin page? In the picture I want to change Dashboard to something else. I tried below code in execute method of the controller $pageFactory = $...
0
votes
2answers
17 views

How to Remove related products for the particular product with sku or id?

I need to remove All the Related products for the particular product with Id. I referred and got the SQL query to do that. Can this achieve by Model & Resource Model? Any help is appreciated. ...
0
votes
1answer
13 views

How to get data from table in block magento2? Note: my model is in another module and i want to get data in another module.[frontend]

I have databse table with data.My model was created in one module and i want to get table data in another module's block class, so that i can render those data into my phtml. table name:form columns:...
0
votes
1answer
14 views

Fetching data from product custom option

Hi i am trying to get data from quote_item_option table but am not able to get it below is my code :- ................. <?php $orderid = 4; $objectManager = \Magento\Framework\App\ObjectManager::...
0
votes
0answers
10 views

Magento 2 disable Bookmarking From UI Component

I don't want to use Bookmarking in UI component in third party module and want to disable it by overriding in my custom module. <bookmark class="Vendor\ModuleName\Component\Bookmark" ...
0
votes
1answer
9 views

Magento2 How to refresh Admin Order Create Order Total Section

I am creating new order from backend and i have to refresh order total section after my custom ajax request. does any one know how i can achive this ?
0
votes
0answers
16 views

Magento 2 Remove Tier Price using Plugin

How to remove tier price using plugin ? I have no idea how to remove this price :(
0
votes
0answers
7 views

Magento 2 how to change product image from external resource?

Magento 2 how to change product image from external resource. i need to change product image load from my custom attribute that have the external url need to shoe from that instead of images and ...
0
votes
0answers
10 views

How product prices are stored in magento 2.4?

I have 2 store views So, how the price will be stored & shown in frontend if i put prices different in all store views ?
-1
votes
1answer
21 views

Is there any extension Order Exchange with same product option or different products in Magento 2?

Is there any Magento 2 extension available for Customer order exchange with same item different Size/color And also Order Exchange with different Products. reference link Myntra
1
vote
1answer
24 views

Not able to send mails in magento 2

I am using SMTP on my website and all the mails are working fine. I am receiving all the emails. Now I am developing a custom script on magento root to send mails but it is not working. This is the ...
0
votes
0answers
11 views

Magento 2 - How to get product attribute in order api

I added two new product attributes to a product called netsuite_internal_id & ava_tax_code if I do a GET to /rest/V1/products/{sku}, I can see them in custom_attributes.attribute_code. When a ...
0
votes
1answer
29 views

Backend error - Magento 2.4.2p1

we finished migration and we got an issue after loging to backend. I see dashboard, but I cannot handle anything (icons on the left side in admin look like inactive) This is screen of the issue: https:...
0
votes
0answers
8 views

Magneto2: Customer login in magento by Rest API token

I would like to use the Rest API to get a client token first. And then use this token to login as magneto2 client. E.g. domain.com? customerToken = xyz Are there any ready-made methods / modules for ...
0
votes
0answers
5 views

Change product price precision to 3

I need to change the product price precision to 3. Is this configurable in the magento admin panel or how can I achive this with custom code_ Thank you for your help ! I tryed this solution but when I ...
0
votes
1answer
23 views

Magento 2 how to disable Page Cache programmatically?

I need to disable Page Cache so it does not keep old data on the page. When I dIsable it from admin panel it works, but then it gets backs to enabled by no reason. Is there a way I can keep it ...
2
votes
1answer
19 views

Show custom brand attribute in sidebar wishlist - magento 2

Can we show or display custom attribute like brand in sidebar wishlist? If yes then how?
0
votes
2answers
23 views

How to add custom product attribute?

I want to add custom attribute in product that have dropdown and can be sorted and filtered? thanks in advance
0
votes
1answer
13 views

Magento 2 how to change label for firsname field in checkout page?

Magento 2 how to change label for firsname field in checkout page. need to change in code level don't want to translation sheet

1
2 3 4 5
873