Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Uncaught Error: Call to a member function getEndpointUrl() on null in /home/magento/backend/app/code/Wac/InstagramFeed/Model/Api/AbstractApi.php:124

the above image The getendpointUrl getting null public function getEndpointUrl(): string { return $this->getStoreConfigValue(self::XML_PATH_INSTAGRAM_API_ENDPOINT_URL); } ...
Alan Biju's user avatar
0 votes
0 answers
19 views

Magento2.4.6: How to setup xdebug on docker-compose with phpstorm?

I'm trying to set up xdebug on docker-compose with phpstorm. Any idea?
Afzal Arshad's user avatar
0 votes
0 answers
9 views

Translation is not working in Magento 2 cloud environment

I want to traslate "The coupon code couldn't be applied. Verify the coupon code and try again." error message from vendor/magento/module-quote/Model/CouponManagement.php. so added the ...
Mani's user avatar
  • 373
0 votes
0 answers
28 views

create a reslover and graphql query for city and area

my current resolver is my current graphql schema is Iam looking for a graphql schema and resolver that if i select a city then all the area will display can you give me graphql query also and what ...
Alan Biju's user avatar
1 vote
1 answer
40 views

Remove or replace add to cart button on a product in catalog by condition programmatically

Preconditions: Magento 2 clean installation with Luma. We shouldn't use templates. The replacement needs to create a popup form related to product data to send and save it to my grid. I'm searching ...
Duddy Woody's user avatar
0 votes
0 answers
19 views

The css file goes 404 on fresh magento installation in centos 7 Magento 2?

I install new fresh magneto on my centos 7 recently the home page run success fully but the all css paths goes 404 in core config i also set the base secure and unsecure url for pub static and pub ...
Jay Parmar's user avatar
1 vote
1 answer
30 views

Magento2: I'm getting empty data from the product attribute

I am receiving empty data from the product attribute "product_types" & getting a null value when fetching the data from this attribute.
Alan Biju's user avatar
0 votes
1 answer
43 views

Magento\SwatchesGraphQl\Model\Resolver\Product\Options\DataProvider\SwatchDataProvider does not exist

Magento\SwatchesGraphQl\Model\Resolver\Product\Options\DataProvider\SwatchDataProvider does not exist the error while i using php bin/magento s:d:c
Alan Biju's user avatar
0 votes
1 answer
62 views

when creating database showing error The default website isn't defined. Set the website and try again

sudo php bin/magento setup:install --base-url=http://oxygen.local --db-host=localhost --db-name=oxygen –db-user=root --db-password=Root@123 --admin-firstname=admin --admin-lastname=web --admin-email=...
Alan Biju's user avatar
0 votes
2 answers
56 views

I'm getting empty array without using session object. How we can get cart data without using session object

I'm getting empty array without using session object. How we can get cart data without using session object. Here is the screenshot: Here is the code: $cartItems = $this->cart->...
Alan Biju's user avatar
1 vote
1 answer
67 views

What new features or enhancements can we expect in the upcoming Magento versions in 2024?

As we anticipate the upcoming Magento versions in 2024, several exciting features and enhancements are expected to shape the platform's evolution. While specific details may depend on official ...
Roshan Choudhary's user avatar
2 votes
1 answer
20 views

Why is the Magento AbstractMethod class throws an error when I use Dependency injection on my own class that extends it?

I have a simple payment method module. I have successfully used Dependency Injection on both the 2 Controllers I have for 2 new Routes and on my Observer where I grab some data from the config. BUT, I ...
user avatar
1 vote
0 answers
17 views

Magento2.4.5: How to lazy load Jquery and remove unused scripts from Theme Desgin?

I want to optimize my website and remove unused javascript/jquery and also defer or lazy load javascript/jquery for better performance any tools or techniques to achieve this?
Afzal Arshad's user avatar
0 votes
4 answers
63 views

Magento2.3.5: How to optimize product export scripts?

I Have a product export script that uses product collection to create an array and write the array to CSV, I want to know if this script can be optimized. <?php error_reporting(E_ALL); ini_set('...
Afzal Arshad's user avatar
0 votes
2 answers
34 views

Magento2.3.5: How to remove index.php and theme id from url?

my website homepage is accessible with index.php and theme ID which is as below https://baseurl/index.php https://baseurl/porto_home_26 how do I fix this issue?
Afzal Arshad's user avatar
1 vote
1 answer
34 views

Magento2.4.3: While importing products, getting this error (The value specified in the URL Key field would generate a URL that already exists)?

I'm trying to import products and while importing I'm getting this error, i have tried this extension for URL rewrite but still getting this error, any temporary fix for this problem
Afzal Arshad's user avatar
1 vote
1 answer
22 views

Magento2.4.3: After decreasing quantity to 0 on cart page, product doesnt remove from cart?

I want to update the cart page when the quantity goes below 1, it works fine if the quantity is above 1, but it does not change the cart if the quantity is below zero as shown in the picture below, ...
Afzal Arshad's user avatar
1 vote
2 answers
285 views

Class "Zend_Http_Response" not found error in magento 2.4.6

In my magento2.4.6 am facing below error - "Error: Class "Zend_Http_Response" not found in C:\xampp\htdocs\wff\app\code\Amasty\InvisibleCaptcha\Model\Captcha.php:100" - $...
Vinni's user avatar
  • 13
0 votes
1 answer
40 views

Magnto2.4.3: How to fix if Some pages have Duplicate content and some Pages have duplicate title?

Client provided an audit report of his website and on that report, he mentioned some pages have duplicate title and content as shown below picture, how to fix those URLS any idea?
Afzal Arshad's user avatar
0 votes
0 answers
23 views

Magento2.4.3: How to stop adding non-canonical url from in sitemap.xml?

I have 400k products in my store and when I generate a sitemap it contains non-canonical URL, is there any way I can stop adding non-canonical URLs in sitemap.xml, and still be able to generate ...
Afzal Arshad's user avatar
0 votes
0 answers
34 views

Magento 2 - how to remove navigation menu linkage for tabs

In my default magento theme for desktop on hovering on the menu, sub-menu is opening. But in tabs when clicking on menu, menu is opening but its also redirecting to main navigation link. expected ...
Mani's user avatar
  • 373
1 vote
2 answers
524 views

Magento 2 : Missing field "image" in google search console

After successful crawled, am seeing Missing field "Image" issue for all PDP pages in the Google search console. I do have all images for Products in my site. How can i fix this issue. do we ...
Mani's user avatar
  • 373
1 vote
0 answers
33 views

I Want to validate condition rule on category page products in magento 2

Here is my Code public function checkCondition() { $categoryId = $this->getRequest()->getParam('id'); $ruleColl = $this->customConditionModel->create()->getCollection(); ...
user113223's user avatar
0 votes
1 answer
20 views

Magento site can be redirected to pages like google.com when adding it to the end of my URL

I have website that can access eg. google.com, youtube.com and other sites by adding it after a backslash like so http://www.exact-construct.ch/http://www.google.com But if it is https://www.exact-...
Rusty Ma's user avatar
0 votes
0 answers
21 views

Magento 2 - Cart Price Rule

I want to create a cart price rule in such a manner that i have 2 products SKU-1, SKU-2 when customer contains above two products in cart and applied that coupon the discount will be £1. and also i ...
Mani's user avatar
  • 373
0 votes
1 answer
46 views

How to show customer dropdown attribute as radio button in registration page - Magento 2

I have created a customer drop-down attribute from admin, in the registration page i need to show it as a radio button, how can achieve this. is it possible to show its as radio button, if not is ...
Mani's user avatar
  • 373
0 votes
2 answers
108 views

Magento2: How to show Price summary on Order success Page?

I want to show the price summary of the order in the order success page like this image below : Any idea? Thanks.
Afzal Arshad's user avatar
0 votes
1 answer
37 views

Magento 2 PWA setup with Adobe guidance but product images not shown

Refer this https://developer.adobe.com/commerce/pwa-studio/tutorials/ Run Below command php bin/magento catalog:images:resize only shown accessories category images and home page images. if any has an ...
Rahul Prajapati's user avatar
0 votes
1 answer
44 views

how to know what is the module used in specific section in admin panel

when i want to override a frontend module , it is so easy, if there is a module that i dont know where it comes from , i can simply enable template hint , but my problem is when i want to change or ...
moemen saadeh's user avatar
0 votes
0 answers
25 views

how to show viewed recently products in default.xml

i tried many things to display recently viewed products in header section but it's not appearing :( default.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All ...
moemen saadeh's user avatar
0 votes
2 answers
79 views

how to check if the the user logged in?

i try to check if the user logged in , and i logged in but it returns the message says that i'm not logged in why ?? i tried 2 methods <?php namespace Main\Store\Block; use Magento\Customer\Model\...
moemen saadeh's user avatar
0 votes
0 answers
21 views

toolbar is not returning the selected products numbers per page

i have a problem with the functionality of the toolbar , i don't know if it must work by default or i should implement its functionality. when i click on a number here, the page is refreshing and this ...
moemen saadeh's user avatar
1 vote
1 answer
51 views

How to include toolbar in my page in Magento 2

in app/design/frontend/Main/Store/Magento_Theme/page_layout/ i created a shop.xml file that contains this code <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/...
moemen saadeh's user avatar
1 vote
1 answer
67 views

adding js file in magento2

I have two questions. First, where should I put a JavaScript file to make it global across all pages? Second, let's say there is a module called "module-layered-navigation," and I want to ...
moemen saadeh's user avatar
0 votes
0 answers
58 views

how to use specific functions in Magento 2

there are many functions in magento2 , but i dont know where should i use it , where it works and where it won't , as example in module-catalog/model/layer/filter/Price.php , there are many functions ...
moemen saadeh's user avatar
0 votes
1 answer
107 views

How to solve accesiBee csp error in magento 2

In my magento 2 store we are facing an issue with accessiBe where accessiBe contents are not loading, when i check the console seeing the below error. when we reach accessiBe team they have given ...
Mani's user avatar
  • 373
1 vote
1 answer
137 views

Difference between async/ and bulk/async in Magento 2

I need to override my REST API endpoints to async and faced the issue that I don't understand the difference between asynchronous endpoints in https://developer.adobe.com/commerce/webapi/rest/use-...
Duddy Woody's user avatar
2 votes
2 answers
79 views

How to add a reorder link in the order confirmation email Magento 2 using a custom controller [duplicate]

How to add a reorder link in the order confirmation custom email template Magento 2 using a custom controller?
Rahul Prajapati's user avatar
0 votes
0 answers
40 views

How to add collapsible icon for tab which is showing grid in the admin panel using ui component?

<argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> <item name="provider" xsi:type=&...
sharath's user avatar
0 votes
2 answers
61 views

displaying visual swtach images

I created a visual swatch attribute from admin panel to adding 'brands' for products,In my Main/Store module i created brands.phtml file , and there is a Brands.php file inside Block folder, now ...
Moemen saadeh's user avatar
0 votes
1 answer
39 views

How to merge the non-logged in cart items with logged in customer cart items which is added from favorite's in Magento 2

I am facing an issue with cart merging this is the scenario. I logged in to my account, i added one product to favorites then from favorites page i added that product to cart Next i logged out, added ...
Mani's user avatar
  • 373
0 votes
0 answers
41 views

When a simple product is removed from grouped product in admin panel in Mage 2.4.5. Here comes issue

In Magento 2.4.5 vanilla when creating a new grouped product, let's suppose this grouped product already has 20 simple products. Step # 1: Add the 21th product in grouped product table in product edit ...
HamzaKhalid273's user avatar
0 votes
1 answer
136 views

Magento Error Warning: Undefined property: stdClass::items in ORN.php

Response validation: Before accessing the items[0] property of the response object, it is important to check if the items array is empty to avoid errors. /** * @throws \Exception */ ...
César Robledo's user avatar
0 votes
2 answers
47 views

Magento 2.2.3 while running flush command i am getting the below error?

i have tried to run magento upgrade and deploy and flush command i am getting the below error. https://i.imgur.com/gcMP1m1.png Fatal error: Uncaught TypeError: Argument 1 passed to Zend\ServiceManager\...
pankaj parmar's user avatar
0 votes
1 answer
33 views

Magento243: How to show order number in Gift Card Account Grid?

How i can show order increment id on Gift Card Account Grid
Afzal Arshad's user avatar
0 votes
1 answer
68 views

Magento2.4.5: Order total showing of a same product with diffrent size options in order detail page?

Related Issue https://github.com/magento/magento2/issues/30342 you can check that issue on GitHub as a reference for understanding. you can see from the image that the customer placed an order for ...
Afzal Arshad's user avatar
0 votes
2 answers
307 views

Convert SQL Select Query to Magento Collection

I have a complex sql select query which actually returns sales report against specified categories. I want to load data as a collection to display but I'm not able to convert the query into Magento's ...
jack's user avatar
  • 1
0 votes
1 answer
36 views

preference :override class Pdfcreditmemos and class PrintAction not working

I override the classes 'Pdfcreditmemos.php' and 'PrintAction.php' to change the name of pdf Credit memos , but this is not working, it still works with origin classes, thanks for you help. Magento\...
helmi saadaoui's user avatar
0 votes
0 answers
29 views

Magento2 validation for custom fields on checkout new step

In order to add new step on checkout page, I have followed many tutorials like https://webkul.com/blog/custom-checkout-step-in-magento2/ I am not able to understand how can I add validation like ...
Arjun's user avatar
  • 3,566
0 votes
0 answers
74 views

Is It Possible To Build A Food-Ordering System Like GrubHub Using Magento 2?

I want to build a food ordering system like GrubHub, with all specifications mentioned in this article, is Magento 2 good enough to start with ?
El3aber's user avatar

1
2 3 4 5
114