Questions tagged [magento2]
General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.
47,787
questions
0
votes
0
answers
4
views
Compare products trough URL based on product id - Magento2.4
Is it possible to create a compare list with products using a URL with product ID's?
Something like:
www.domain.com/catalog/product_compare/index/items/1,2,3,4
0
votes
0
answers
20
views
Add custom category filter in PLP page in Magento 2.4
I am trying to add the custom category filter in the PLP page in the site in Magento 2.4. Currently, the category filter is coming in the layered navigation, but the same thing we want in the top of ...
0
votes
1
answer
9
views
Action columns not displaying Edit options
<actionsColumn name="actions" class="Vendor\Grid\Ui\Component\Listing\Grid\Column\Action"> <argument name="data" xsi:type="array"> <item name=&...
0
votes
2
answers
17
views
Single store vs Multi store in Magento 2?
We already have a website built using magento 2.0. where in we have an existing product category.Now we have a new requirement where we plan to add a new product type , very different from existing ...
0
votes
0
answers
14
views
Filter Product Collection while Using FPC
I'm working on a project right now with about 200k customers that are broken down into 2000 groups. We haven't used customer_group for this because of the large number. But because we have a ...
0
votes
1
answer
14
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
0
votes
0
answers
14
views
How do I upload an image in Magento
How do I upload an image in Magento ?
Magento ver. 1.9.3.4
I tried to upload a picture but the system does not accept it.
0
votes
1
answer
17
views
When creating an order via api, the salable quantity does not decrease
I am using the API /rest/V1/orders/create, but when creating an order, the saleable quantity does not decrease. (Magento ver. 2.4.6-p3 community edition)
I am using this payload:
{
"...
0
votes
0
answers
18
views
Magento2 success/error message not showing
I have created a custom module and added pagination in the view file after adding any message from the controller it's not showing:
Controller file
<?php
namespace Geekay\DigitalVendors\Controller\...
0
votes
0
answers
9
views
Create and Add Images to Products using Image Data
How can I create and attach images to products in Magento2?
I have an Image base64 encoded body, name, extension, and mime type. Basically, all the required info to create an image. Also, note that I ...
0
votes
1
answer
13
views
Venia pwa + magento 2
Can anyone explain how security works on graphql on venia pwa? I don't see any tokens or sessions or something like this at Venia. So any developer can create a graphql query and get all data from my ...
0
votes
1
answer
19
views
How to make a block non-cacheble in default.xml
I want to add a block in header which will not be cached. The block needs to be added to default.xml. I can't set cacheble="false"to the block as it will make all pages non-cacheble ( ...
0
votes
0
answers
8
views
Ignore Bundle Product Child attributes in Layered Navigation
We have a part compatibility attribute on our website. We use it to let customers filter to only see parts that would be compatible for them.
The problem comes with Bundle products. We have the ...
0
votes
1
answer
10
views
Upgraded to Magento 2.4.6 in Staging Env but Prod Still 2.4.4 - Can I Still Import 2.4.4 DB over top?
My prod is 2.4.4
I've moved servers and migrated my prod env.
But I had to upgrade to 2.4.6 on the new server - which I did successfully.
Now my old prod db is still based on 2.4.4, but I need to move ...
0
votes
0
answers
21
views
i need to override the Magento\Customer\Api\AccountManagementInterface using plugin or preference after that overide will magento call the events
i need to override rest api the Magento\Customer\Api\AccountManagementInterface using plugin or preference after that overide will magento call the events obsevers email trigger deafult magento ...
0
votes
2
answers
29
views
Zend replacement for Magento 2.4.6
I have an old module that uses this in the constructor
\Zend_Filter_Interface $templateProcessor
Can anyone tell me what I can replace this with as it throws error on setup:di:compile when upgrading ...
0
votes
1
answer
33
views
+150
Elasticsearch error after upgrading to 2.4.6-p3
I just upgrade to magento 2.4.6-p3 from 2.4.1 version, when i see the exception.log files, there are a lot of error stating this:
main.CRITICAL: Elasticsearch\Common\Exceptions\BadRequest400Exception: ...
0
votes
0
answers
14
views
How to add a "default address" option to the new address form on the Magento 2 checkout page?
I want to add a "default address" option to the new address form on the Magento 2 checkout page. If selected, I want the added address to be the default billing and shipping address after it ...
0
votes
0
answers
11
views
How to change website's header frontend layout?
we were just given a new UI for our website and we need to make some radical changes to our theme; one of them being changing the header's container from one colum-horizontal to 3 columns-vertical.
We ...
0
votes
2
answers
18
views
Turn off page builder for product description field
Is there a way to disable page builder for product description field? I know there are articles how to remove from category description, but I didn't find for the product description, I tried to do it ...
0
votes
0
answers
5
views
magento 2 get product details based on store view by using order item id
How can we get the product details based on store view by using order item [product_id] in magento 2.4.6 ?
0
votes
0
answers
6
views
If Payment failed will there be any record in the sales order
If I place an order and payment gateway returns with error, will the record of order be added in the relevent order table
1
vote
1
answer
28
views
Magento 2 category attribute value returns null
Vendor/Extension/Setup/Patch/Data/CustomAttribute.php
<?php
namespace Vendor\Extension\Setup\Patch\Data;
use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\...
0
votes
1
answer
30
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\...
0
votes
0
answers
12
views
Magento 2 : Getting Error When Sending ClienteMerksyst filed
"message": "Property "ClienteMerksyst" does not have accessor method
"getClienteMerksyst" in class
"Magento\Customer\Api\Data\CustomerInterface".", {
&...
0
votes
0
answers
10
views
in magento2 wholesale account creation form in email field add customer group validation
i want to add validation for email field in wholesale account creation form that the same email id which is used for retailer account can also be used for wholesale account so basically i want to add ...
0
votes
1
answer
17
views
Error happened during deploy process: en_DE argument has invalid value, run info:language:list for list of available locales
How to fix this issue? It appears while doing static content deploy.
0
votes
1
answer
23
views
Varnish vs NGINX Cache for Magento 2
I have recently moved to Magento 2.4.4
My server currently is running on WHM with Nginx reverse proxy cache.
My Magento is using the built-in Redish Full Page Cache.
Recently I went to hire a ...
1
vote
1
answer
19
views
Create configurable product via csv import from existing simple products
In Magento there are already simple products that have a common attribute set, but there is NOT a configurable product that has these simple products in its configurations.
With the default product ...
0
votes
0
answers
9
views
How to update checkout input field id
Is it possible to update the checkout input field Id to use a constant text, eg: addressLine1, addressLine2 and etc. Currently is showing as unique number and is different each time the browser is ...
0
votes
0
answers
11
views
Magento 2 - Get qty from ajax response add to cart post parameters
When click in add to cart button in view page product, with ajax response get in checkout/cart/add the qty added, i need this qty value for datalayer push in phtml, i tried getAddToCartPostParams ...
1
vote
0
answers
19
views
How to add a input password type Field in magento 2 checkout page based on a condition?
I'm seeking guidance on how to implement a custom field for a social security number in the checkout process, but only under specific conditions: the cart value must exceed $2500, and the website URL ...
0
votes
1
answer
20
views
Magento 2.4.6 + Braintree: How to stop placing order when tranasaction is failed
Magento: 2.4.6
Braintree: 4.5.0
When a braintree transaction failed with a reason like 'Processor Declined' or 'Gateway Rejected', Magento also created an order with 'Canceled' status.
How to stop ...
0
votes
0
answers
17
views
Generating Invoice & Capture Online Payment In Loop
I have the same problem, but this only happens when I try to generate invoices in Loop. The first transaction creates an invoice & transaction in DB but when I attempt to capture payment ( ONLINE )...
0
votes
1
answer
45
views
How to change or overwrite order_id number in Magento store URL?
When viewing orders as customer order_id is visible in URL like this: /sales/order/view/order_id/20/
Is it possible to achieve that orders would be accessible by increment_id value instead? Otherwise ...
0
votes
1
answer
43
views
Shipping information block and customer email
I'm relatively new to Magento development and we're currently using version 2.4.5-p1.
We recently migrated from Magento 1 and I'm now working on customizing the new order email. So far, I've ...
0
votes
0
answers
19
views
HOW TO EDIT CUSTOM OPTIONS SELECT BOX IN MAGENTO 2
I have one Customizable Option on my site and shows at the frontend of the product page.
-- The condition is when a custom pack is found as an input tag in which the customer adds the pack & pc, ...
0
votes
0
answers
11
views
Payment status field is not dynamically updated in Magento 2.4.6-P4
I'm working on my eCommerce website built with Magento 2.4.6-p4 and I encountered a strange issue during the checkout process. The 'State' field doesn't update dynamically after selecting a 'Country'. ...
0
votes
1
answer
31
views
Redirect the customer to Previous Page after registration in Magento 2.4
I want to create one functionality for the customer registration process.
if registration is initiated from a particular page, then it should redirect to the same page after registration completion ...
0
votes
1
answer
21
views
in magento2 add unique key constaint on column which has already foreign key adding for vendor code
i trying to add unique key constraint to company_id column in company_credit table but i facing issue like duplicate key Syntax error or access violation: 1061 Duplicate key name '...
0
votes
1
answer
10
views
Create order for bundle product with custom Price as parent price Magento2 Programatically
I have a requirement in magento2.4.6 as we know when we create a order for bundle product order price is calculated based on child product price, Here i need to add a custom price for the Bundle ...
0
votes
1
answer
59
views
+100
Magento 2 | Exclude Video from fotoroma fullscreen gallery on PDP
I want to remove video from gallery when fullscreen gallery is opened on PDP. on normal gallery video is required but need to remove only on fullscreen.
fotoroma using same data for gallery and ...
0
votes
0
answers
16
views
How can I Reload custom Popup when ajax Success In Magento2?
strong textI Have Custom Popup with Special Products when Someone Click On Add to cart On Category Page Product than Popup Open and They Show Special Products So The Problem is When i add To Cart ...
0
votes
1
answer
18
views
Integration page in admin panel not show my custom API
Integration page in admin panel not show my custom API in the list, because i need to allow my endpoint for particular integration user not for authenticated user or is there any other way to achieve ...
0
votes
0
answers
24
views
how to add qty input in mini cart Magento 2 using Hyva theme [duplicate]
Add QTY Increasing and decreasing input in mini cart hyva theme (same as default Magento 2)
0
votes
0
answers
18
views
Hyva UI components "Ajax ATC A" and "MiniCart A" are not working together in the Hyva theme
I am using Hyva UI components "Ajax ATC A" and "MiniCart A" in which "MiniCart A" is not working properly.
First, I clicked the Add to Cart button to open the cart popup,...
0
votes
0
answers
13
views
Inject external JS that handle the address autocomplete
I am new to Magento, i would like to create a Magento 2 extension that enable the address autocomplete feature.
I've created a JS using internal wizard that mapped from using Magento Checkout form ...
0
votes
0
answers
14
views
After updating from 2.4.4 to 2.4.6, price field showing validation error
I just recently updated to 2.4.6, and while I was using 2.4.4 this problem never occurred. After editing/adding a price to a product, and I click out of focus of the field, I get this error:
Please ...
-1
votes
1
answer
35
views
i am trying to create a product on magento to but it will throw me an error
this error occur because of issue with Elasticsearch and many times i am changed the Elasticsearch configuration and re-install but after many try it give me same error
0
votes
0
answers
17
views
How to show curent slide number with total count in fotorama in magento 2?
Is there any way to show current slide with total count in fotorama in magento 2 for eample -> 1/10