All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

Magento2: How to get the old qty of product?

How to get the available qty of the product before saving the product with new qty in magento2. How to do that. Thanks.
0
votes
0answers
15 views

M2 - Get attribute group name

With the code below I can load all the attributes from a specific group, in this case attribute group with id: 37 <?php $av_attribute_group = $_product->getAttributes(37); foreach ($...
0
votes
0answers
12 views

How to get products with the available dates?

I have created product attributes "Available from" and "Available to" with the input types date. I want to get products from the available dates while searching. How can I achieve that result? ...
2
votes
1answer
29 views

How to remove SKU column from order details in My account page

I wish to remove SKU from order details. Open my account page in frontend 2.Go to My Orders 3.Click View Orders link from the list of orders How to remove the SKU colum and its associated details. ...
0
votes
2answers
33 views

Magento 2 : Need to perform clean cache programmatically after records save

In admin side, I want to clean "eav" cache type on records save. I added code in afterSave() function and function also call after save records. But, I think it's not working because, parent afterSave(...
0
votes
0answers
21 views

How to add custom Info from my custom table in account information admin panel ? Magento 2

With ui component i can't add my custom data in there , maybe has a alternative ? I added the Customer Account Status, but I did it through InstallData.php, but I need to show there the text from the ...
2
votes
2answers
32 views

How to use \Magento\Framework\Controller\Result\JsonFactory for Magento 2.3?

This post is related to this Magento2 - How to get JSON response from Controller What I am trying to do is to format the json response of my custom web API, but it seems \Magento\Framework\Controller\...
0
votes
0answers
19 views

Magento 2.3 product attribute and ui component

First, I created the UI component: Vendor/Module/view/adminhtml/ui_component/product_form.xml <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
0answers
14 views

run:test error in Magento 2.3 (win 7)

When I run this command line vendor/bin/mftf run:test AdminCreateCustomerTest -f is show me this error And when I run the Allure report, all the test I ran is broken How to fix it?
0
votes
0answers
22 views

How Force sign in works in magento 2?

In admin, Customers -> All Customers -> Edit customer -> Force Sign In Using rest API I have generated token for an existing user. And then I clicked on Force sign in Button. I got a ...
0
votes
0answers
19 views

Magento2 display sender name, recipient name,recipient email in admin gift card grid

I need to display sender name, recipient name, recipient email in admin gift card grid. This is default module of enterprise. This sender name, recipient name, recipient email values are coming from ...
0
votes
0answers
12 views

Magento 2.3 - Does default search suggestion doesn't suggest product names?

Can anyone tell me what does the default magento 2.3 search suggestion suggests? Am using default elastic search engine for search. Can I able to suggest product names?
0
votes
0answers
15 views

Adding two virtual products with different option in orders

I'm creating order programmatically. I'm creating two different orders. The first one is sended to an external API and the second one is saved in Magento. I have this problem : If I'm having twice ...
0
votes
0answers
18 views

How can I change the “My Account” with the user name from app/code in frontend?

I want to change My Account to user name using the app/code section and not app/design section. How can I achieve this?
0
votes
0answers
25 views

Magento 2: Change quote base currency programmatically?

I am creating orders programmatically in Magento 2 and want to change the order base currency as well as current currency to my custom currency, irrespective to currency available in Store as I don't ...
0
votes
2answers
26 views

Error while running di:compile command

Getting ReflectionException] Class PayPal\Api\PayoutSenderBatchHeader does not exist error while running php bin/magento setup:di:compile command
4
votes
2answers
44 views

Magento-2:Class Magento\Framework\App\Http\Interceptor does not exist

Exception.log file Error: {"exception":"[object] (ReflectionException(code: -1): Class Magento\Framework\App\Http\Interceptor does not exist
2
votes
1answer
46 views

Session value not set Properly in Logged users Magento 2.3

In my mobile number update module, logged user userId and mobilenumber set to .phtml hidden fields, but some times its not works properly ! please check my code app/code/{vendor}/{module}/Block/...
0
votes
0answers
15 views

Export Custom Gird CSV and Excel file not working

I have followed how to make CSV and Excel from here Export to csv showing undefined index UiComponentFactory.php but an exception is throw while clicking export Exception #0 (Magento\Framework\...
0
votes
1answer
22 views

Magento 2 cdn issue for modal popup - KeyCdn

We uses KeyCdn to use cdn feature for magento 2. We use push zone for one of our website for testing. KeyCdn working fine except modal popup CORS issue. We are facing below error. Access to ...
4
votes
1answer
56 views

Magento 2 :How to change or update request data using beforeExecute plugin?

i just want to change some request params by using beforeExecute plugin so can i do same.... ? etc/di.xml ** <type name="Magento\Customer\Controller\Account\CreatePassword"> <plugin ...
0
votes
0answers
17 views

Magento2: How can solve this error “{”error“:”invalid_grant“} ” on product save by admin?

When I am saving product by admin then it is showing error "{"error":"invalid_grant"}" and product is not showing in frontend also. How can resolve this?
0
votes
1answer
19 views

Add html tags in note field of product attribute

eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, 'sample_attribute', ...
0
votes
2answers
29 views

json encode in magento 2

I just wanted to know that what is the right way to print array data into json format. I Know we can use php function json_encode() but is this the right way to print array data? Because i saw one of ...
0
votes
0answers
18 views

How to create an event and observer that will help print a log when admin modifies some customer details?

I want to design an event and an observer that will print a separate log containing the details of the fields that was modified by the admin in admin panel (under all Customers -> edit). How can I ...
2
votes
2answers
37 views

How to edit or update the ordered item data in magento 2

I want to edit some data's of ordered items like weight, price and some more. For that, I got the ordered item collection for the specific order. $objectManager = \Magento\Framework\App\...
0
votes
1answer
36 views

Magento 2 increase product views count

In Magento 2.3 how to programmatically increase product views count?. I need it to increase the product views count when the product is viewed on an mobile app.
2
votes
1answer
23 views

Function getUrl of magento 2 doesn't work correct

In template I try to get url link but it doesn't work correct. I try to use this code: $block->getUrl('aloha/product/view/id/') But it always return http://abcs.com/aloha/product/view/, Is this a ...
0
votes
1answer
18 views

Product page not loading <head> after Magento 2.3.2 update

I have recently updated from Magento 2.3.0 to Magento 2.3.2 and everything seems to be ok, apart from the product page (and example is here: https://staging.propmasters.net/james-bond-octopussyrupee-...
0
votes
1answer
12 views

To enable extensions, verify that they are enabled in your .ini files

Any Help To enable extensions, verify that they are enabled in your .ini files: - /opt/cpanel/ea-php72/root/etc/php.ini - /opt/cpanel/ea-php72/root/etc/php.d/20-bcmath.ini - /opt/...
0
votes
0answers
14 views

Magento 2 - Setting up $1 Shipping Promotion Code

We are switching to Magento 2.3 and cannot seem to find a way to set up a promotion we run often - "$1 Shipping for orders over $X." Previously, we would set this code up as a Shopping Cart Price Rule ...
3
votes
1answer
17 views

Magento 2 - Event Observer for user has downloaded downloadable product

I want to fire an action when a user has downloaded a downloadable product (i.e. they have clicked the link for the download). I don't know what event I should be observing to do this. I tried to ...
0
votes
0answers
14 views

Display catalog price with cart rules

I have a situation where we give 5% discount on any payment method but credit cards. The one way I found to apply this rule correctly was via Shopping Cart rules. Thing is, the client wants both the ...
0
votes
0answers
32 views

Magento CE 2.2.2 Elastic Search No Products Front End Category / Listing Pages

Magento CE 2.2.2 ElasticSearch 6.4 PHP 7.1 Apache 2.4 Magento CE 2.2.2 Elastic Search No Products Front End Category / Listing Pages We have installed Amasty Layered Navigation Amasty ...
0
votes
0answers
7 views

After updating from Community Edition 2.3.1 to 2.3.2, Catalog Products page takes 4-5 minutes to load

After updating from community edition version 2.3.1 to 2.3.2, both my development site and my live site take 4-5 minutes to load the page Catalog-Products. The page seems to hang just after the main ...
0
votes
2answers
19 views

Magento 2 remove version number impact

I noticed if we type /magento_version along with site url then it displays our magento version. So anyone with bad intention can check my version and exploit it. to prevent this I can disable the ...
0
votes
1answer
26 views

Magento2 Products on Category after deployment

I recently did a release on my magento2 instance on production. Everything looked good for a day, then enabled some configuration and styling went away from all product pages. So I reverted that and ...
0
votes
1answer
53 views

Product images are not correct in Magento 2.3.2

I have installed Magento 2.3.2 and migrated all custom module, database, media folder from 2.2.7. But now the product images on frontend are not correct. I have set image size 165 * 165. And when I ...
0
votes
0answers
19 views

Magento 1 get quote id of current user

I've gone through a number of questions on here relating to retrieving the current quote for the current browsing user, but each one yields the same result: Mage::getSingleton('checkout/cart')->...
0
votes
2answers
26 views

Magento 2: Undefined variable: installer

I'm too new to Magento: i'm getting an error when setup:upgrade, here is my code: app/code/Adamsmage/Checkoutattribute/Setup/InstallData.php <?php namespace Adamsmage\Checkoutattribute\Setup; use ...
0
votes
1answer
20 views

How to send AMP Emails using Magento?

I am trying to build a simple code to send Google AMP Emails using Magento 2. Can someone lead me in the right direction? There is no manual online even for PHP on how to do this. Thanks!
0
votes
0answers
13 views

how to change region message in checkout Please enter a 2-character value for the Region

I have located so many files with this message, however, when changing it, it does not update on the front-end (checkout). Region-updater.js any help would be greatly appreciated.
0
votes
1answer
18 views

Magento 2.2.9 - Removed class use still throws errors

In system.log, I keep receiving the error main.CRITICAL: Class Magento\Framework\EscapeHelper does not exist. I've removed/changed all references to this class, and when I grep the website the ...
0
votes
0answers
18 views

Limit in the number of sharing wishlist in magento 2

I just found that the 'share wishlist' button on my wishlist page is gone after sending emails for the number of times set in the wishlist configuration in the backend. In other words, if the ...
0
votes
1answer
28 views

Magento 2.1.7 - Problem on Readiness Check on “Check Cron Scripts”

I have a Client with Magento 2.1.7, I need to success the Readiness Check so I can install extensions or upgrade Magento version... All the checks are ok! It says to: "Your PHP version is correct (...
0
votes
1answer
20 views

M2 - Get all attributes from attribute group

I have an attribute set for example "Camera" in that set, we have multiple groups like; General, Recording, Storage, Monitoring etc... All those groups have attributes which are specifications from ...
0
votes
0answers
16 views

Magento getDestCity, getDestStreet returns null in collectRates method [on hold]

At my workplace, I have been assigned a new task to manage a magento application. I have no experience with magento. Please examine my code and help me. $access_token = json_decode($response, true); ...
0
votes
2answers
16 views

Getting code or percent from sales_order_tax on order

Magento 2 saves data in a 'sales_order_tax' table per transaction. I need to get the tax code and tax percent from this table for each order; however I can't find methods to do so? $order->...
0
votes
1answer
22 views

Hide custom payment method based off product attribute

I'm using a custom module which already hides a payment method based off the quote grand total and a variable defined in the backend. But I need to also do another check, which will see if the product ...
2
votes
2answers
33 views

using sql queries is good practice in magento 2

using SQL queries is good practice in Magento 2 over ORM which is best one to while customizing 1)Security 2)Speed ORM vs SQL queries which one giving Security and speed while ...

15 30 50 per page