All Questions
48,315 questions
0
votes
0
answers
41
views
alternative way of exit and die in magento
i want to stop further executions of magento but without using exit, this is a PHP CS issue, how can i? i used return but execution did not stop,
public function aroundOnThreeDSRequired(
\P3\...
1
vote
1
answer
48
views
hyva checkout and mollie payment combination
I have installed hyva / hyva onestep checkout and mollie + mollie/magento2-hyva-checkout so hyva compatibility extension.
The design still shows up as old hyva onestep checkout instead of more ...
0
votes
0
answers
23
views
Unable to override theme layout block
I am trying to override theme layout block.
Layout is on path: app/design/frontend/Codazon/unlimited/default/Magento_Catalog/layout/catalog_category_view.xml
Theme is adding its custom block in ...
0
votes
1
answer
31
views
Send attachment with form
I am trying to send an email on Magento 2 with an attachment. Not being a developer I copied a working module, but the email does not start. Below is the error and the code. Can anyone help me?
Error:
...
0
votes
0
answers
55
views
gtm.js?id=xxx CSP error on checkout page
I have error 'Refused to execute inline script because it violates the following Content Security Policy directive...' in console.
I tried to solve this in the following ways
In .phtml
<script ...
1
vote
1
answer
78
views
magento2.4.7-p3 capture(admin/sales/order_invoice/capture/invoice_id/....) 404 error
I'm encountering a 404 error while trying to capture an invoice in Magento 2.4.7-p3. The issue seems to be related to the Magento\Sales\Controller\Adminhtml\Order\Invoice\Capture controller class, ...
0
votes
0
answers
19
views
Prevent tooltips from floating off the page
do any of you have a solution on how I can make the tooltips not flow off the page? I have a problem with this especially on mobile, where setting .lib-tooltip(left) makes the element flow out of the ...
0
votes
0
answers
27
views
How to add a file uploader field in the Product form using PHP UI component Data Provider?
I'm working on a dynamic product row attribute in Magento 2, and I've successfully added multiple fields. Now, I want to include a video uploader field in the product form. The text fields are ...
0
votes
1
answer
28
views
Magento2.4.7: How to get checkout error messages?
let's assume I want to run a function when I click on place order.
I'm doing some functionality on the Place Order button click, but my functionality still works if there's an error.
Is there a class ...
0
votes
0
answers
15
views
How to dynamically set customer cookie lifetime?
Magento uses the cookie lifetime configuration to set how long the customer will be able to stay logged in.
If the value is set to 0, on browser close, the cookie gets removed and reopening the ...
0
votes
0
answers
32
views
Magento 2 Custom Module - Adding Category IDs
I have created a custom module called SpecialsSubCategory. The folder sits in app > code > Gelmar > SpecialsSubCategory. The file structures are as follows
SpecialsSubCategory > Controller ...
0
votes
0
answers
35
views
Add custom customer attribute for default magento tax class
I have one requirement to create one custom customer attribute. That attribute should appear in the New tab in customer edit page in Admin layout customer_index_edit. Currently I am facing an issue ...
0
votes
2
answers
34
views
Magento 2 Custom Module - Adding Category IDs programatically
system.xml file
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:...
0
votes
0
answers
29
views
Error: Must supply a TargetProvider to a new TargetableSet. (Magento 2 PWA)
I am getting this error when making a tagList extension for magento 2 PWA from this tutorial.
Create a tag list extension
Error: Must supply a TargetProvider to a new TargetableSet.
at new ...
0
votes
1
answer
22
views
Create 301 redirect for all 404 pages to the homepage (404 with any URL combination)
I'm trying creating a redirect for all the 404 pages straight to my homepage. I have tried creating it through .htaccess but seems like it does not worked. .htaccess may ask for the old url & a ...
0
votes
1
answer
75
views
How to handle large configurable products
I have few configurable products with huge number of variations. They have almost 5k children simple products assigned to them on average.
While loading the files both on admin and frontend, it takes ...
1
vote
1
answer
39
views
Magento 2: Cache refresh for specific category page
I need some help to understanding Magento cache So Idea is that I want to refresh cache of specific category page (not all category pages) on an interval. How can i do that in Magento 2?
0
votes
2
answers
21
views
How to override form_account layout block in magento2 admin
How to override form_account layout block in magento2 admin. I wanted to add a custom fiield under email field in account information section.
0
votes
0
answers
48
views
Customer logged out after changing encryption key
Hey can anyone that have successfully changed encryption key helps me?
I tried changing encryption key on Magento but every time i did, our customer got logged out. (did this on staging/dev ...
0
votes
2
answers
36
views
Get cost price on frontend
I’m trying to get the cost price attribute from the advanced pricing section to show on frontend. I’ve set the attribute to be visible on frontend but not sure on the code I need to use in the ...
0
votes
1
answer
52
views
Magento2: upgrade 2.3.3 to 2.4.7-p2, multi website broken lands to 404
I recently upgraded my Magento 2.3.3 store to Magento 2.4.7-p2, and now I'm encountering an issue with the multi-website setup.
My Magento2 setup contains 2 websites: Default and Wholesale.
The ...
0
votes
1
answer
36
views
Magento 2 : get source inventory after product is saved if quantity was changed
Magento 2, How to get source inventory after product is saved, if quantity was changed or stock status was changed.
0
votes
0
answers
20
views
Unable to Add Product to Cart Without Selecting Installment Plan - Magento 2 Issue
Hello Magento Community,
I am facing an issue in Magento 2 where a product cannot be added to the cart unless an installment plan is selected. If I try to add the product without selecting an ...
0
votes
2
answers
21
views
on click system configuration open tab not working
on this i faced this issue,
on click system configuration open tab but after click other tab magneto admin click not working i can not able click any where
enter link description here
0
votes
0
answers
26
views
Magento2 event using MSI
sales_order_item_save_after this event I have used when no MSI for detecting qty change. Now if I use MSI then which event I should use to detect that qty or stock status is changed for product from ...
0
votes
0
answers
52
views
About CORS policy CSP configuration
We've enable magento 2 CSP module which we used to have disable. We configure all the white list and it works fine for most of the website. We only have issues when users clicks embeded youtube videos,...
0
votes
0
answers
40
views
How do I completely turn of JPG compression in Magento 2.4.3?
I optimized my product images in media/catalog/product directory(not the images in cache folder).
I flushed the catalog images cached and the magento cache and afer that the cached image becomes ...
0
votes
0
answers
27
views
Custom shipping and billing field in the checkout issue
I want to add a custom shipping and billing address field in the checkout and of course save it, in the database.
I've managed to render it in the shipping and billing address forms, however I'm ...
1
vote
3
answers
94
views
vuln-25610-composer-patch.zip -> file does not exists
Tried to patch magento open source 2.4.6-p6
with the file:
vuln-25610-composer-patch.zip
But I do not have file:
vendor/magento/module-company/Plugin/Customer/Api/AccountManagement.php
https://...
0
votes
1
answer
57
views
magento 2.4.5-p8 "The bucket doesn't exist" for custom filter
I add new filter using plugin for Magento\Framework\Search\Request\Config\FilesystemReader
Now sometimes I have error "The bucket doesn't exist." for added bucket. After cache flush it ...
1
vote
0
answers
76
views
CORS Errors on Page Builder Content Updates in Magento 2.4.6-p7 (Production Mode)
Preconditions and Environment
Magento Version: 2.4.6-p7
Web Server: Nginx
PHP Version: 8.2
Page Builder Extension: Enabled
Store Mode: Production (issue occurs only in this mode)
Steps to Reproduce
...
0
votes
0
answers
73
views
After upgrade magento 2.4.1 to 2.4.7 an error in the admin grid view of my custom module appears
After upgrade magento 2.4.1 to 2.4.7 an error in the admin grid view of my custom module appears.
Model\ResourceModel\Grid\Collection\Interceptor::__construct(): Argument #5 ($connection) must be of ...
0
votes
0
answers
27
views
i need this field with search dropdown
I need dropdown with a search on checkout page .
0
votes
0
answers
28
views
Magento in NGINX 502 Bad Gateway
I'm running a Kubernetes Ubuntu pod and have installed all the dependencies and packages inside the pod. I have also installed PHP-FPM-8.1 and NGINX. And then I ran the below commands.
composer create-...
0
votes
1
answer
25
views
--magento-init-params not working? Does not seem to overwrite default configs
I noticed that when experimenting with the --magento-init-params option in a command, it does not seem to overwrite the configuration at all. My understanding is that, based on the command description,...
0
votes
4
answers
148
views
Magento 2.4.6 security issues? Credit card fields added into checkout / payment module
We have a magento 2.4.6 and we are using the PAYPLUG payment module during checkout.
It is configured so none datas about credit cards are asked on our own website BUT a popup opens leading customer ...
0
votes
0
answers
20
views
New relic shows slow - compoment Custom/Laminas\Http\PhpEnvironment\Response::sendContent
New relic shows slow compoment- Custom/Laminas\Http\PhpEnvironment\Response::sendContent
2
votes
0
answers
107
views
APSB24-40 Security Patch: CSP and Checkout Updates
I'm posting this issue with the hope we can come with some kind of centralized community agreements on how to handle CSP in checkout with the latest patch magento release and concrete example and ...
0
votes
2
answers
72
views
Magento 2.3.5 hacking problem
I'm experiencing a problem where, for some reason, an attacker manages to create user accounts in my administration, and manages to change emails for existing users.
I removed all malware from the ...
0
votes
0
answers
18
views
Duplicate configurable and childs products are not properly created
For a given feature I need to duplicate with very small modification existing configurable and childs products. This is what is doing this method.
The products configurable and 'subscription' childs, ...
0
votes
1
answer
34
views
Add fee to Payment method
I'm trying to add an extra fee to the order when the payment method is Cash on delivery and the shipping country is Greece.
I have created the following files:
app/code/HectorCustom/CodFee/...
0
votes
0
answers
54
views
jquery/fileUploader issue in magento after upgrading to Magento 2.4.7
jquery/fileUploader issue in magento after upgrading to Magento 2.4.7?
If you're encountering this issue and unable to find a solution, try removing the following entry from your composer.json file
&...
0
votes
0
answers
19
views
Magento2 configurable product import issue
I am trying to configurable product import using csv file ..But I getting error like
1. Array ( [not visible individually] => 1 [catalog] => 2 [search] => 3 [catalog, search] => 4 ) in row(...
0
votes
1
answer
15
views
Trouble installing magento on Mac OS, issue with MySQL
I am getting this error when trying to setup Magento from the terminal on Mac OS localhost.
SQLSTATE[HY000] [1045] Access denied for user 'magento'@'localhost' (using password: YES)
In InstallCommand....
0
votes
1
answer
20
views
Magento 2 add product to existing order problem (tax summary)
i have a module that ads product to existing order but the problem is that when adding product to order tax summary is not updating and I see table sales_order_tax and sales_order_tax_item are not ...
0
votes
0
answers
34
views
Apply discount on products customizable options only
I’ve been working on a feature that requires applying discounts based on specific product custom attributes (Customizable Options).
For example, I have 5 custom attributes (size, color, style, ...
0
votes
0
answers
20
views
magento2 test case for after plugin in search criteria rest API to add category name
Magento2 How to write test case for after plugin used to add category name along with category ID in search criteria product Rest API?
0
votes
1
answer
40
views
Custom uiComponent missing form element
Hi fellow developers,
I am loading a form uicomponent through ajax in a modal in the backend of Magento 2.4.
The problem is that i dont have an element around my uiComponent.
The way i am loading the ...
0
votes
1
answer
35
views
Swap billing and shipping address in admin create order Magento 2.4
I want to swap billing and shipping address position. And also we have a checkbox on shipping address says "Same As Billing address".
I want that checkbox on billing address says "Same ...
0
votes
1
answer
37
views
magento 2 newsletter subscription block custom column with options
on magento 2 we can add additional columns to the subscribers grid by using the newsletter_subscription_block layout xml file. The original file in the Magento\Newsletter module has the column for ...