Skip to main content

Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

Filter by
Sorted by
Tagged with
1 vote
5 answers
58 views

Magento2.4.6: How to redirect a custom cms page to home page?

I want to redirect a custom cms page to home page For example https://magento246.com/custom-cms-page to https://magento246.com/
Afzal Arshad's user avatar
0 votes
2 answers
25 views

current version - none, required version - 1.0.0

1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory. The following ...
Alan Biju's user avatar
0 votes
1 answer
22 views

magento246: How to redirect only homepage of website to another website using .htaccess?

I'm trying to redirect my homepage http://magento246.local/ to http://magento245.local/ but http://magento246.local/admin http://magento246.local/products/ and other URLs after slash should work as ...
Afzal Arshad's user avatar
0 votes
0 answers
37 views

How to create a Grid Form with Ui Component Can you give me an example

How to create a Grid Form with Ui Component Can you give me an example
Alan Biju's user avatar
0 votes
0 answers
15 views

How to remove server side email validation only when group equals to agent while saving new customer . please help me

when i save my data i get this error .i need email field to accept the simple text when group is agent if not it should accept only email.
Rakshi Rakshitha's user avatar
0 votes
1 answer
17 views

Adding campaign block to product page [Magento 2.0]

Whenever we're doing campaigns on our eshop we usually add campaign information on each SKU product page with URL re-directing traffic to our campaign deals page as well. The problem is that it ...
blitzz_'s user avatar
0 votes
1 answer
26 views

Magento2.4: How to save custom fields data into customer_entity table when saving customer programatically?

I'm creating a customer programmatically with a customer interface, and custom attributes are saving as expected, but I want those custom attributes value in the customer_entity table also. My code is ...
Afzal Arshad's user avatar
0 votes
2 answers
51 views

Magento 2 How to place order PROGRAMMATICALLY using custom script

How to place an order for testing while developing order-related tasks. using the custom script we will save our time to add products from the website and checkout flow. It will be passed using a ...
Vikas kalal's user avatar
  • 1,281
0 votes
0 answers
15 views

Images attached to page builder vanish on save but the data is saved on my table (the problem is on arabic_image_one)

<?php namespace magento\test\Controller\Adminhtml\Index; use Magento\Backend\App\Action\Context; use Magento\Framework\Api\DataObjectHelper; use Magento\Framework\App\RequestInterface; use Magento\...
Alan Biju's user avatar
0 votes
1 answer
20 views

magento246: getting wrong permission for category?

I have set category permission to deny for non-logged-in users and in the database values are saved accordingly. but when I search product on front end it shows the wrong permission. \Magento\...
Afzal Arshad's user avatar
0 votes
1 answer
26 views

Magento246:Product is still visilble for non-logged in customers after setting category permission to logged in user only?

I created a test category called Test added a test product and set category permission to Logged in user only. so the category and product shouldn't be visible to non-logged-in customers. but when I ...
Afzal Arshad's user avatar
0 votes
2 answers
39 views

Magento2.4.6: How to apply category filter on catalog search results product collection?

I want to exclude specific category products from the search results collection, for example, if a customer is not logged in I don't want to show products in search results whose category id is 35. ...
Afzal Arshad's user avatar
0 votes
1 answer
41 views

Magento-Cloud: What does this command will do: magento-cloud environment: branch <environment-name> <parent-environment-id>?

If I run this command on Magento cloud cli what will happen after running this command? magento-cloud environment: branch <environment-name> <parent-environment-id>
Afzal Arshad's user avatar
0 votes
0 answers
23 views

Magento 2: How to create dynamic fields with multiple fields in the admin system configuration?

I am currently developing an extension for Magento 2 but am facing an issue when I add an editor in the dynamic field. Reference: https://developer.adobe.com/commerce/php/tutorials/admin/create-...
Rahul Prajapati's user avatar
0 votes
1 answer
13 views

Magento 2 static content deploy duplications

I have Magento 2 installation with a lot of websites and one website has language which other websites don't. When I execute setup:static-content:deploy it generates the language for all store views I ...
Duddy Woody's user avatar
0 votes
1 answer
16 views

problem default meta description

on my magento 2.4.1 I have a problem with html header in meta description, I have words with spelling mistakes, I cannot correct them, when saving impossible, plus it goes into blocking mode
stephane CHAUVEAU's user avatar
0 votes
1 answer
38 views

Magento2 - How to customization of the invoice pdf deign using php not using phtml

example for this // Add "INVOICE" text above the barcode $font = \Zend_Pdf_Font::fontWithName(\Zend_Pdf_Font::FONT_HELVETICA); $page->setFont($font, 26); $page->setFillColor(new \...
Alan Biju's user avatar
0 votes
1 answer
26 views

How to create a cron job for out of stock

How to create a cron job for out of stock that must daily run and check how many products are out of stock
Alan Biju's user avatar
0 votes
1 answer
38 views

Error: Call to a member function setActive() on bool in /var/www/html/project.local/vendor/magento/module-backend/Model/View/Result/Page.php:26

showing this error while clicking on a menu item created for a grid, the code below is my controller <?php namespace Vendor\Grid\Controller\Adminhtml\Grid; class index extends \Magento\Backend\...
Midhun M's user avatar
0 votes
0 answers
24 views

Magento2.4.6: How to remove duplicatation of code in this scenario?

I have a module in which there are 2 custom grids and these two grids have the same crud functionality but different classes, but the inner logic is the same, how can I achieve this in a more ...
Afzal Arshad's user avatar
0 votes
1 answer
19 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
40 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
13 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
  • 393
0 votes
0 answers
33 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
51 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
21 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
52 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
44 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
213 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
61 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
0 votes
3 answers
94 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
24 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
24 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
75 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
38 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
53 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
26 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
634 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
47 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
33 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
38 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
  • 393
1 vote
2 answers
937 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
  • 393
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
21 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
22 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
  • 393
0 votes
1 answer
61 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
  • 393
0 votes
2 answers
195 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
40 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
47 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
27 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

1
2 3 4 5
114