Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

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

How to Get Product Attribute Using Event

I am tired, please help me, How to Get Attribute Value Using Event thanks
user avatar
0 votes
1 answer
11 views

How to Get Product Id And Value in Custom Log

I am tired, please help me, to get product id and value when i add product to cart. through event or any other method in custom log magento 2 thanks
user avatar
0 votes
1 answer
17 views

How to add link in shopping method in frontend side in magento 2?

how to can add link in frontend side in Shipping Methods ,and that link can show in only one method not for all
user avatar
0 votes
3 answers
22 views

How i can Create CustomLog File When I Add Product to Cart

How i can Create CustomLog File When I Add Product to Cart in magento 2 how i can create customlog when i add product into cart and create all the available product custom log i have no solution ...
user avatar
0 votes
1 answer
11 views

How to set meta title dynamically for specific category in magento 2

I want to set meta title dynamically for specific category only and i getting meta title information based on url id(?id=1). events.xml <?xml version="1.0" ?> <config xmlns:xsi=&...
user avatar
  • 33
0 votes
1 answer
20 views

How to set Dynamic meta title for cms page in magento 2

How to set different meta title for the same page. I am getting meta title data based on the page url (?id=1)
user avatar
  • 33
0 votes
1 answer
23 views

Get order data with customer details in custom checkout page magento2

I have create custom checkout Step between shipping and payment step . Now i want to show all the order details and customer fillup details. Below is the files that i have created for the Custom ...
user avatar
  • 1
0 votes
1 answer
17 views

Error on Clicking Categories in Admin

The log in the report is this. a:4:{i:0;s:97:"The requested component ("settings") is not found. Before using, you must add the implementation.";i:1;s:9651:"#0 /home/...
user avatar
0 votes
0 answers
15 views

How we can call menu subcategory page using controller/layout.xml file in magento 2

How can we call the menu subcategory page from the custom controller or can we call the subcategory using layout.xml file. is it possible to call the subcategory using layout.xml file/controller. if ...
user avatar
  • 33
0 votes
3 answers
30 views

How to call CMS page using controller in Magento 2

How we can call the CMS page using controller. Is it possible to call the CMS page from controller. If it is possible how we can call the CMS page using controller. Thanks.
user avatar
  • 33
0 votes
2 answers
37 views

Magento2.4: Is it Okay to upgrade magento from 2.4.3 to 2.4.4 in ubuntu 22.04?

I want to upgrade Magento from 2.4.3 to 2.4.4 and also want to upgrade ubuntu from 20 to 22.04, should I update or not, people are getting some issues on upgrade, is there any idea how to solve those ...
user avatar
0 votes
1 answer
30 views

Magento 2: How to specific HTML <div> decrease CLS score in Google page speed for Mobile view?

i need to decrease CLS score for specific div tag for mobile view. for ex. : <div class="product-info-main"> Screenshot Mobile View: https://i.imgur.com/gwFhrjV.png Screenshot Desktop ...
user avatar
0 votes
2 answers
29 views

How to pass .phtml file variable to another module .phtml file in magento2

I am new in the magento. If anyone have idea how to do this then please let me know. I have two files in different module in in that two .phtml file will be there. From First .phtml file to another ....
user avatar
  • 1
0 votes
3 answers
32 views

How to install 2 different magento2 instance with same server and same database

I want to install 2 magento2.4.4 on my server and connect with single database .
user avatar
  • 11
0 votes
0 answers
9 views

Invalid security or form key. Please refresh the page with ALO Extension

I installed ALO theme and it was working well, I can open any section of the extension but when I try to open any page, I redirect to the dashboard and got the error Invalid security or form key. ...
user avatar
0 votes
1 answer
14 views

Magento Optimization -> 1- Upgrade Magento jquery version to 3.6 | 2 - use varnish cache , install and configure varnish cache on your demo stores

Can anyone know how to do these tasks, or any hint?
user avatar
0 votes
0 answers
18 views

Magento Page builder Add to Cart button add datalayer

We have the magento page builder and when adding a shop now product which ads the product to the cart. egsample: https://www.[Store].com/internal_cart/add?sku=[ProductSku]&dest=checkout&qty=1 ...
user avatar
1 vote
1 answer
42 views

best way to upgrade magento 2.1.15 to magento 2.4.4 Last version

I have a huge client project running with ubuntu server LTS 20.04, so I need the best way to upgrade it from 2.1.15 to the last version 2.4.4 with the same data included, What is the best way? 1- Is ...
user avatar
0 votes
0 answers
4 views

are there any free reviews reminder configurations?

Are there any good configurations that can remind the customer by emailing them to leave a review on their purchase?
user avatar
  • 11
0 votes
2 answers
31 views

Magento 2 show custom option price in order email

I have tried to set custom option price when order is placed the price should be stored in sales_order_item table in custom_option column and tried to create plugin for this but the plugin is not ...
user avatar
  • 1,039
0 votes
1 answer
31 views

How to use hypen symbols in custom module controller url in Magento 2?

I have form input where user can enter postcode. When they enter postcode i am redirecting other page (controller url-popup/action/index) and i showing postcode inforation in that page. But i need ...
user avatar
  • 33
0 votes
0 answers
23 views

When upload Image Ajax Request return 502 Bad Gateway - Nginx

when we try to upload image in magento Admin panel we got 502 Bad Gateway Error Nginx host configuration file: # Define the PHP-FPM socket file for nginx to proxy-pass to upstream examplecombackend { ...
user avatar
  • 101
0 votes
0 answers
47 views

Mysql query to get product details in magento 2

I need a MySQL query to get product SKU, price, description, and discount for all enabled products, where the discount is the custom attribute and the attribute-id for that custom-attribute is 1168. ...
user avatar
0 votes
1 answer
38 views

How to change the custom controller url to fancy url in magento 2

I created a page using conroller with the URL - "mani.magento.com/demo/action/index" but in the live site that page URL looks like this "mani.magento.com/our-service/hospital-meals/...
user avatar
  • 33
1 vote
0 answers
11 views

how to automatically send markdowns into the sale sections?

when I make some markdowns for the sale items they don't go in the right categories. Is there a way to do this?
user avatar
  • 11
0 votes
0 answers
37 views

How to show thanku popup only, if user alredy submitted the form in magento 2 untill user leaves page

I have custom popup form, when the user click on 'get in touch' button i am showing popup to fill the form, once user submitted the form i am showing thanku popup.So if the user again click on 'get in ...
user avatar
  • 33
0 votes
1 answer
43 views

create a mysql table view in Magento 2

Anybody know , how we create a MySQL table view in magento 2 programmaticallt
user avatar
0 votes
0 answers
33 views

How to show thanku message only after user submit the popup form in magento 2 until refresh the page

I have contact us buttons more than one in a page. when the user click on the contact us button i am showing the popup form. After user submitting the form i am showing thanku div.But when the user ...
user avatar
  • 33
0 votes
0 answers
145 views

How to show success message in popup modal after submitting the form in magento 2

here i did this to show popup modal <div id="popup-modal" style="display:none;"> <form class="form contact" action="<?= $block->getUrl(...
user avatar
  • 33
0 votes
1 answer
30 views

What is interface in magento 2 and why use?

What is interface in Magento2 ? Why use this ? I want to know more detail about interface ?
user avatar
1 vote
2 answers
44 views

How to make select ui component as a required entry in Magento 2

<form> ... <fieldset> ... <field name="select_example" formElement="select"> <settings> <dataType>...
user avatar
  • 33
0 votes
1 answer
73 views

How to add text editor in the admin form and save data to the database in Magento 2

<fieldset name="content"> <settings> <label>Wysiwyg Content</label> </settings> <field name="wysiwyg_example" ...
user avatar
  • 33
0 votes
0 answers
88 views

Magento 2 uncaught error: call to undefined method magento\framework\mail\message::getto()

I am using Magento version 2.1 and facing an uncaught error: Call to undefined method magento\framework\mail\message::getto() this issue.
user avatar
  • 13
0 votes
0 answers
41 views

Add Custom Checkbox & dropdown on Cart Page Magento 2

I want to add a custom checkbox & dropdown(with multiple values) on the Cart page. If that particular checkbox is checked then only a dropdown will populate else it will remain unchecked. Anyone ...
user avatar
0 votes
1 answer
26 views

How to add "Where did you hear about us ?" dropdown in Magento 2

I want to add the "How did you hear about us?" drop-down in the order confirmation page for first-time users to my store. And add values like Facebook, from friends etc.. How can I achieve ...
user avatar
  • 33
0 votes
1 answer
33 views

How can i remove items from the basket automatically if the customer added product is out of stock in Magento 2

scenario - the customer added products to the basket and logged out. After sometime he again logged in, now when he checked his minicart or cart i need to remove the products which are out of stock ...
user avatar
  • 33
0 votes
2 answers
36 views

problem with admin url ubuntu server

after install lamp ubuntu 20.04 i achieved to install magento 2.1.4 version i can show home page but i can't reach to admin login page . as well as using this command to detect the exact url php bin/...
user avatar
0 votes
2 answers
35 views

I am in php bin/magento setup:upgrade Something goes wrong

I am in php bin/magento setup:upgrade Something goes wrong,My Magento is a community edition with version number 2.1.13 Please help me thank you
user avatar
0 votes
0 answers
21 views

How to get information of a field from a magento module?

I am developing a shipping restriction plugin for magento 2, looking at the documentation I found the detailed information of the initial creation process. One of the validations I need is: Depending ...
user avatar
0 votes
2 answers
266 views

how to add sku column in order sales grid in magento 2

i need to add sku column with filter in order sales grid in magento 2. how can i add this can any one have refrence
user avatar
0 votes
0 answers
37 views

How can we resolve the sales order filter with sku gaves "Something went wrong with processing....." in Mageto 2

The Sales Order Grid Not Working And It's Gives this kind of error when search by sku "Something went wrong with processing the default view and we have restored the filter to its original state....
user avatar
0 votes
1 answer
59 views

Magento 2 - ONLY the admin page doesn't work

I have installed Magento 2 locally. I imported the database, changed the URL, and so on. Everything works fine - each subpage loads. Unfortunately, the admin doesn't work. The page just shows 404. ...
user avatar
0 votes
1 answer
36 views

Magento 2.3 - If two specific products on cart show free shipping for both and if one of these two products is on cart show shipping price

I'm using the cart pricing rule in magento 2, I have created the attribute "is free shipping?"= yes for only 5 Gallons variation. Free shipping is only applied if 5 gallons variation is on ...
user avatar
0 votes
0 answers
11 views

How to change checkout URL

What is the proper way and right place in Magento 2 to change checkout url in php code programatically? I have /checkout and /newcheckout modules, and in admin panel if I add Url Rewrite - Request: ...
user avatar
  • 101
0 votes
2 answers
225 views

Add slick slider on home page Magento 2 via pagebuilder

I did check a lot of articles for a slick but none of them worked. Even I didn't see the js in view source code. I want to add a slider on the homepage having multiple blocks. Can anyone help me out ...
user avatar
0 votes
2 answers
320 views

How to create the plugin for customer registration for create post get the inserted last id in magento2

How to create the plugin for customer registration for create post get the inserted last id in magento2. I tried with an example but it is working. can you please help me? di.xml <type name="...
user avatar
  • 1
1 vote
1 answer
131 views

How can i resolve Empty string supplied as input in DOMDocument::loadXML() in magento 2?

when I compile my code I have this kind of error accurse Warning: DOMDocument::loadXML(): Empty string supplied as input in /mnt/data/home/cloudwaysapps.com/ssucdkafzj/public_html/setup/src/Magento/...
user avatar
0 votes
2 answers
58 views

How can I drop database column via ssh

I need to uninstall one of the modules. I need to drop the column from the database How can I run this command via ssh to remove it? I tried on this way not working with me. 1- sudo mysql -u root -p 2-...
user avatar
  • 29
0 votes
0 answers
26 views

Magento2.4- Order does not register as paid after making payment with payment gateway

I'm using one of the payment gateways. It's called Urway/one97. When the customer makes a payment with the payment gateway not register as paid + the order status changes to Complete. I sent the ...
user avatar
  • 29
0 votes
0 answers
10 views

order does not register as paid after making payment with payment gateway

I'm using one of the payment gateways. It's called Urway/one97. When the customer makes a payment with the payment gateway not register as paid + the order status changes to complete. I sent the ...
user avatar
  • 29

1
2 3 4 5
112