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.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

How to Change URL of Magento Site After Modifying Apache DocumentRoot?

My question is similar to How to do redirect the URL of site but I want to do the opposite. And there is a further challenge or two I cannot understand yet. Our setup is a Magento 2.3.3 store running ...
1
vote
1answer
28 views

How to improve Magento performance by eliminating Apache .htaccess files?

Our setup is a Magento 2.3.3 store running on a dedicated (not shared) Linux host. We have full root access and can edit files as needed. The httpd server is Apache 2.4.41. We have read several good ...
0
votes
0answers
15 views

Magento 2: Product with custom options returns a non-numeric exception in cart

I have a product with Customizable Options in the form of a dropdown on the product page. If I add the product to the cart without an option selected it works as would be expected, however, if I ...
0
votes
0answers
16 views

Magento 2 set custom variable to use in email template on all emails

I want to be able to add a custom variable through an event observer of some sort which enables me to output this variable in any given email template. I know I can make an event observer for example ...
0
votes
0answers
23 views

Product Attribute filter is not working in magento 2.3

https://morgap.com/computer-hardware/processors.html In the above link apart from price filter, other attribute filters not giving the exact result set. for example if i am selecting coreI5 it is ...
0
votes
0answers
13 views

Undefined index: extension in D:\xampp\htdocs\magento-233-sd\vendor\magento\framework\File\Uploader.php in magento 2?

I am trying to creating complete product from Magento 2 frontend, but while uploading product image I am getting this issue "Undefined index: extension in D:\xampp\htdocs\magento-233-sd\vendor\...
0
votes
0answers
15 views

How to add customer order review with star rating in checkout page in Magento 2

I am trying hard to implement order star rating in checkout page after shipping address information. I have been tried with checkout_index_index.xml but not working. Can anyone help me with clue or ...
0
votes
0answers
24 views

Which files under Magento webroot should be executable?

Security best practices suggest that you should never have an executable in a public web directory. However, in a typical Magento install (in my very limited experience), this is not true. Even in ...
0
votes
1answer
22 views

while exporting sales order csv display billing address in opposite order [closed]

i want to dispaly billing address in this format postcode region city street. Any idea guys please help me.
0
votes
1answer
15 views

Magento2: How to check record before save record in table?

I am adding the barcode with product SKU and product ID in a table using below code:- File Path: /app/code/[NameSpace]/[ModuleName]/Model/ResourceModel/Custom.php public function generateBarcodes($...
0
votes
1answer
15 views

How to disable the categories sidebar in the product detail page in Magento 2?

Is there an option in the admin area of Magento 2, to disable the sidebar on the left with the list of categories in the product detail page of the frontstore?
0
votes
0answers
9 views

Magento 2. Ui Component. Inside a JS that extends from Magento_Ui/js/form/form how do I access the data being sent to populate the form?

Can I access the data being sent to populate the form inside a JS that extends from Magento_Ui/js/form/form?
0
votes
0answers
13 views

Magento2: How to use checkbox in model popup in js?

I have created a model popup, that will appear when user click on add to cart. Now I want to add check box to accept user acceptance by click on checkbox. Can someone please help to to do this.
0
votes
0answers
12 views

Magento 2. Frontend. Ui Component. Disable select field after value is selected

I'm using a M2 custom Ui Component that extends from Magento_Ui/js/form/element/select so I have total control over the Javascript File. How do I disable the field after a value is selected? Can ...
1
vote
0answers
16 views

Magento 2 : Frontend load ajax page custom product collection with search set total items

Facing issue with frontend load ajax page custom product collection with search set total items 1 in Magento 2.
0
votes
0answers
14 views

SQLSTATE[42S02]: Base table or view not found: 1146 in admin grid

I have an error in my module. when I edit a data in admin Grid its show Base table or view not found: 1146 Table 'magento.is_question' doesn't exist public function execute() { $rowId = (int)...
0
votes
0answers
26 views

Create Custom block in homepage programatically

I am new in magento. Currently I want to create one more block like New Product into the Home page. How to do that?
0
votes
2answers
15 views

Make taxvat not required on customer registration form programmatically

I want to force taxvat field as not required on customer create form Even if i have ovrride vendor/magento/module-customer/view/frontend/templates/widget/taxvat.phtml with a plugin in my custom ...
0
votes
0answers
10 views

Magento 2 product/form/modifer display mutiselect attribute as Ui-seelct

> namespace vendor\module\Ui\DataProvider\Product\Form\Modifier; ....... > > public function modifyMeta(array $meta) > { if (isset($meta['appearance']['children']['container_addon']['...
0
votes
0answers
26 views

Magento 2 Can't change theme after move to new server

I have moved my Magento 2.3.3 to a new server. Every seems work fine, But I can't change theme. Configure: CONTENT > Elements > Design > Configuration > Select Edit > Default Theme > Applied Theme > ...
2
votes
0answers
28 views

Magento 2 Module Install via Composer

I have created the Demo Module with only module.xml, registration.php and composer.json files in Bit Bucket Public Repository. Please check my composer.json file { "name": "hardikm219/demo", "...
0
votes
0answers
18 views

Magento2 : Display Discount product list into the home page

I want to show discount product list into the home page . I want to create new block like New product.. Also want to show discount price and original price and no of % discount on to the product. ...
0
votes
0answers
9 views

How to disable a Rule on a specific date by the Schedule New Update feature on Magento 2.3 Enterprise

On the Community version, there is a To date field and I can make it works by setting the date there. See here - https://screencast.com/t/Pczg59xjGj0 But on the Enterprise version, there isn't any To ...
0
votes
1answer
24 views

Enable Ship Button Based on Order Status

When a customer placed an order , We will place order in processing state. After that QC team will pack the order when the QC is completed then they will change the order status to QC Passed . Now i ...
0
votes
0answers
8 views

Brand alignment is changed after Upgrading from Magento 2.3.0 to Magento 2.3.3

After upgrading to Magento 2.3.3 Alignment is changed initially it is coming under product name and now it is coming below addtocart option So I need to display brand below the product name For ...
0
votes
0answers
17 views

linux file permissions on webroot for Magento-2 when 755 and 644 are not good enough

We want a better approach to filesystem permissions. I find no existing question that fully addresses this issue to my satisfaction. As background, I have consulted the usual references, including: ...
1
vote
0answers
11 views

Magento Extension “Amazon Sales Channel” Not importing photos

I have Amazon Sales Channel installed on my Magento 2.3.3 CE store. Im using it to install and sync my amazon store with over 170,000 used books. My problem is that its not importing the photos. Any ...
0
votes
0answers
19 views

Setting Cart Price Rule for specific SKUs

I want to apply a discount for a specific set of skus, where they buy a total quantity of 4 or more of any 3 specific lighting skus, and they get a free remote. It is applied to main site, all ...
0
votes
0answers
5 views

MSO styling doesn’t render in inspect element for email

I tried adding mso styling in my table for outlook but when I inspect element the mso styling doesnt show inline to where I declared it
3
votes
1answer
60 views

Magento 2 Commerce cloud : How to monitor/confirm that the results are served from elastic search?

We are using elastic search in our store but I am not convinced that all the results are served from elastic search. Is there a tool/feature where we can monitor activity in elastic search server just ...
0
votes
0answers
14 views

Checkout custom field required validation not working properly

I am trying to add custom fields on checkout page but I am facing an issue with validation. I have created fields using below code <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
0
votes
1answer
22 views

Unable to get cart item when FPC is enabled Magento 2.3.2

I'm trying to get all cart items in a custom block but unable to get all items, it's throwing an error: Fatal error: Uncaught Error: Call to a member function getAllItems() on null in Block ...
0
votes
0answers
9 views

Grand total should update automatically in credit Memo in magento2 admin

I want to update the Grand Total on the fly when we change the Refund Shipping, Adjustment Refund, Adjustment Fee in the Order Credit Memo. Kindly help if anyone done it before. Thanks in Advance ...
0
votes
1answer
21 views

How to check if user is a b2b user?

In my file app/design/frontend/Eadesignro/a1turbo/Magento_Catalog/templates/product/view/attribute.phtml I have to test if user is logged and if he is a b2b user. I test if user is logged with ...
0
votes
0answers
13 views

Magento 2: Display Swatchs in my template file

I am fetching configuration products from SKU, I am displaying configuration by dropdown, and using selected value I am generating proper SKU of that product. Ex: if customer select 'MH01' and select ...
0
votes
0answers
7 views

how to set newsletter queue specific customer group in magneto 2

I am using Magento ver. 2.3.3 pls Help me how to create this, And provide any extension Compatibility: ver 2.3.3 Thanks in advance
0
votes
0answers
17 views

Magento 2 How to add the house number text field above the address on the checkout page and display in order in admin

I want to create the Flat/House number text field on the checkout page and it should be display in admin also, in Order section and as well as on invoice. Kindly share code if anyone have. Thank in ...
0
votes
0answers
10 views

How can I add a product to a category using M2 API in VB.Net?

I am trying to learn how I can add a product to a category using M2 API in VB.Net? Below is my test code, where I can update the product name of a sku which already exists, but I am unable to add the ...
0
votes
0answers
13 views

Magento 2 how to update price on quantity change in product detail page using knockout

I am using magento version 2.3.2 I want update price based on Qty change using Knockout js in Product detail page anyone help here, thank in advance
0
votes
0answers
18 views

How to remove the Cart, Shipping and payment Page product price and subtotal amount in magento 2

Only i need to show the number of quantity items in the cart,shipping and payment page. if any one know the answer please share the exact code and folder structure. since i'm new to magento. Any ...
0
votes
0answers
17 views

After doing a small change in the home page i get some error, even after reverting it back it doesnt fix

Please visit the website kiabzanew.site (will load a bit slow at the start). I get an error on the home page. Error filtering template: Invalid block type: item-image. Even after reverting the codes ...
0
votes
0answers
11 views

Sort products according to final price instead of price in magento 2

I want to sort products according to final price instead of price in magento 2. But by default it sorts according to price.Please help me.
0
votes
0answers
32 views

Separation of bundle configurations and display of different content

Tell me how to solve the problem. I have a form in which data about bundle product configurations comes. The code that downloads this in the .phtml file is: <?php /** @var $block Magento\...
0
votes
1answer
12 views

CSV import checked rows != checked entities

I have a really weird "bug", (I call it like this), while importing products with csv importer controller. Look at this : 1: Begin data validation 2: The validation is complete. 3: Checked rows: ...
0
votes
0answers
10 views

Will .asp suffix cause any issues

I have changed the suffix to .asp via the SEO section in Magento2 panel. Although all pages & products are opening properly. I wanted to know from your experience, will this cause any ...
2
votes
2answers
53 views

Magento 2: Change the bestseller report count more than 5 items

How to change the bestseller report items number more than 5 items Magento 2? Thank In Advance..!
0
votes
0answers
12 views

Ensure text remains visible during webfont load: Doesn't work on added fonts

In our Magento build we have a custom theme that uses Luma as a parent. After doing an Audit in Chrome we get the message Ensure text remains visible during webfont load and it lists the following. ...
0
votes
0answers
17 views

Could not apply patch! Skipping. The error was: Cannot apply patch XXXXXXXXXX.diff

I'm installing a code base which is created by others, then i remove the old when i run "composer install" and encounter show many this kind of error message. Anyone know what is the problem?
2
votes
1answer
25 views

Magento2: What is difference between configurable products and simple product with custom option? [duplicate]

Can anyone explain me What is difference configurable products and simple product with custom option? Thanks in advance..!
0
votes
0answers
16 views

Cannot receive emails on the same domain Magento 2.3.2

I am not able to configure the delivery of the emails on the same domain. To summarize: when a customer orders a product he/she receives an email confirmation with the order details, I've added my ...