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
1
vote
0answers
23 views

Adding data to database [closed]

I'm able to fetch data from custom form but not able to put it in database table. $model = $this->_name->create(); $entity = $this->getRequest()->getParams(); $model->...
1
vote
0answers
5 views

Add some information in additional_options of quote_item_option table while adding item to quote while creating order from backend

I want to add some information in additional_options of quote_item_option table while adding item to quote while creating order from backend. For this purpose I need an event that called after adding ...
1
vote
1answer
38 views

magento 2 add owl carousel to recently viewed products

I am trying to add owl carousel to recently viewed products in product detail page by making custom theme and creating viewed_grid.phtml in app/design/frontend/_YOUR_VENDOR_/YOUR_THEME/...
1
vote
0answers
11 views

Magento 2 Mobile view menu links redirect to undefined page

I have an instance Magento 2.3.3 In that I have installed the Weltpixel mega menu module and configure it. In sub-menu I have added custom HTML with ul > li tags. The sub-menus are working perfectly ...
1
vote
0answers
14 views

Change product prices

I need to know where catalog and cart prices are called to display so that I can calculate discounts via php and call the same function to display on screen. The prices in question are those of the ...
1
vote
1answer
40 views

How to change a shipping method config error message by custom module custom message in magento 2

How to change a shipping method config error message by custom module in magento 2 See the below image, I want to update display error message in e checkout page with custom module. I know that we ...
1
vote
2answers
17 views

Undefined property: SimpleMagento\\Custom\\Controller\\Test\\First\\Interceptor::$getRequest … In controller

Error in controller :- Undefined property: SimpleMagento\Custom\Controller\Test\First\Interceptor::$getRequest .......While fetching data from custom form. Can someone provide me solution or how to ...
1
vote
0answers
28 views

Magento 2: How to override table rate model

I am getting an issue while overriding the table rate model. namespace Abc\Shipping\Model\Carrier; use Magento\Quote\Model\Quote\Address\RateRequest; class Tablerate extends \Magento\...
1
vote
0answers
18 views

How to display all submenu in Magento 2?

I want to display level0 and level1 of menu in the same line like in photo: Any help please ? Thanks
1
vote
1answer
19 views

Getting Error on Checkout Page. Magento 2

in theme I added a simple html to show pop-up after adding product to cart with two buttons Continue Shopping and Checkout my code is <div id="add-cart-confirm" style="display: none; position: ...
1
vote
0answers
11 views

Magento2: How to mass update the custom table status from ui component grid

I have a ui component grid in admin which displays data from the custom table multivendor_product in which id is the primary key of the table and another field product_id is the product ID ...
1
vote
0answers
11 views

POP up (Sign IN & Create New Account ) Problem

we use theme claue we faced problem in POP up (Sign IN & Create New Account ) as per attached image Create New Account loading & Sign IN get error (could not authenticate. please try again ...
1
vote
0answers
16 views

Newsletter Subscriber Email

I have upgraded my Magento 2.3.3, after the upgrade I do not receive a newsletter email where I can see the code of email how I can debug to find the root cause of email not sending. Other emails ...
0
votes
0answers
15 views

Magento 2 : Image is taking too much time to display

How can I product image load time decrease? The product image is taking too much time to display on home page and all the pages. Please help me to solve this issue. Thanks in Advanced.
0
votes
1answer
29 views

Magento 2: How to disable cron jobs?

I want to disable some Cron jobs by group or specific cron tab in my staging environment because of some reason. Please someone suggest me a solution, how to do that?
0
votes
0answers
17 views

Magento 2 : PayPal express checkout is redirecting to cart page, without showing any success or failure error

I am using PayPal express checkout on my Magento 2.2.6 website. Steps to reproduce the issue that are Add product to cart From the cart page click Paypal express checkout button Add the ...
0
votes
0answers
15 views

How to remove all configuration product and products associated with it from the category through the database

How to remove all configuration products and products associated with it from the category through the database? I found a method on how to remove just a product or separately a configuration one but ...
0
votes
0answers
9 views

Collection size return 0 after applying group by magento 2.3

I am getting collection size by the following function : $this->_collection->getSize(); and it's return right result. But when I am applying the group by on collection it returns 0 always. $...
0
votes
0answers
10 views

how to open URL in new tab if it's URL rewrite target path is third party URL in Magento 2?

I want to open all links whose URL rewrite contains different URL. Suppose I have a category which generates link like https://example.com/catalog/category/view/s/music/id/52/ and it's URL ...
0
votes
0answers
20 views

Need event to update quote item while creating an order from admin

Can someone tell me an event for updating quote items while creating an order from admin?
0
votes
1answer
14 views

Magento2: How to customize the Billing address form?

Currently there is no validation class available in phone number field. I want to add "validate-digits" class, but I am not able to find the related file, Please help me how to do this changes so ...
1
vote
1answer
39 views

Magento 2 Custom Email Template

I have created New Custom Header Template from admin. This email template i want to use in my custom email template in custom module. Currently i am using this below code to add header. {{template ...
1
vote
1answer
22 views

Magento:2.2.8 Save response in db under custom_column created in sales_order and quote tables

I am using Custom Shipping API where I am getting response from API. Here I want to save this response to my order and quote table, I used event checkout_onepage_controller_success_action Here's code ...
1
vote
1answer
33 views

Magento2.3.3 Review on homepage

namespace Magento\Review\Block\Product\ReviewRenderer; if ($product->getRatingSummary() === null) { $this->reviewSummaryFactory->create()->appendSummaryDataToObject( $...
1
vote
0answers
22 views

Remove Source not disable, want to delete it

Magento 2.3.1 with MSI would like to remove source. I repeat want to delete/remove source :) reason is I created accidentally and it needs to be remove before we move to production. For more ...
1
vote
2answers
22 views

Magento2: How to add modal inside my module like customer address modal?

How to add modal form inside my module like customer address modal?
1
vote
0answers
17 views

Magento 2: Unable to resize the swatch image

view.xml: <image id="swatch_image_base" type="swatch_image"> <width>500</width> <height>600</height> </image> <...
1
vote
0answers
9 views

How to list all JS outputed via module?

I want to have all the JS outputted as it's in the HTML, so if the bundle, minify and CDN are enabled or not I would like to get the URL listed via my module. How could I do that?
1
vote
0answers
6 views

Magento connect to verrified reveiews module (avis-verifies ) from different server

i want to test "avis verifies" module on a development server. the problem i facing that the module's already connected to a production server and i can't syncronize the account with the dev server. ...
1
vote
1answer
10 views

How do I add images to custom theme

I need to add an extra, static image in the page header. Right after the logo. My child theme directory structure in [magento project root]/app/design/frontend/My_Vendor/My_Theme/ ├── ...
1
vote
1answer
28 views

How to remove tooltip from email field on checkout

Tell me how to remove tooltip from the checkout email field. I tried this way app/code/Dv/Tooltip/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\...
1
vote
1answer
20 views

How to use Magento 2.3 and Cloudfare CDN?

I'm currently trying out the Cloudflare CDN (free plan), but I didn't notice much in website performance. My server was having "server load" problems and it did stop, but It seems the website's ...
1
vote
1answer
32 views

Resolve all less file symlinks with nodejs

I want to use gulp file with Magento instead of native grunt that Magento provides as a default build system for compilation of less files.Due to very slow nature of grunt, I decided to make own ...
1
vote
1answer
19 views

Copy page builder layout

Can someone help me how to copy layouts of page builder(i. e html content) from one page to another in enterprise edition magento2. 3, is there a way to do
1
vote
1answer
19 views

Add custom class per page on MainContent

I would like to add a custom class in the <main id="maincontent" class="page-main"> the reason I want to do this is because there's a specific pages that need different background color. So let ...
1
vote
0answers
11 views

Magento 2: How to show loader while customer-data is loading from server?

define([ 'Magento_Ui/js/form/form', 'Magento_Customer/js/customer-data' ], function (Component, customerData) { 'use strict'; return Component.extend({ isLoggedIn: function () {...
0
votes
0answers
14 views

Order of 1 customer showing in another customer in magento 2.3.2

I am using Magento 2.3.2 CE. Recently we have wiered issue occured on our website. Customer 1 had placed order and it got assigned to Customer 2 account. any one faced this type of issue. Thanks
1
vote
0answers
10 views

How to add custom form on checkout page below shipping address using Layout Processor?

I am following this tutorial https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_form.html but I am not able to add form as code looks incomplete to me. I have created below files: - ...
1
vote
0answers
15 views

How Configurable Product's option rendered in magento 2

Actually I am creation a custom product view page fore understanding the rendering of product view I have created controller like this namespace Tasks\BulkAdd\Controller\Index; class Vivek extends ...
1
vote
0answers
10 views

How do add related product groups for a specific product

I have some products in my shop that should be linked together in subgroups: "required", "conflicting", "recommended", "spareparts". For example: product A requires "mounting kit (product B)" product ...
1
vote
2answers
25 views

Correct Deployment Steps in a Production server

Recently, we have gone live a website which was built in Magento 2.3.1. After release we did some changes in the code and also added some modules locally. Then the code was pushed to the live server ...
1
vote
0answers
14 views

Magento 2 Shipping Method fail to load due the http 500 error

The shipping method failed to load after I complete setup the payment method and so on... None of the method shown in the frontend and a error log shown as below http://domain/Magento2/rest/default/...
1
vote
0answers
8 views

Cache type to regenerate schema.graphqls files

after changing the schema in schema.graphqls file I always must clean the cache. It's take a while, so I'd like to know, what the cache type in magento is responsible for regenerating this files?
2
votes
0answers
21 views

integrate PWA App into Magento2 website

I want to integrate PWA App into my Magento2 website , i have already tried with Tigren extension and made changes as per the document. After installation i am getting errors in checkout process. I ...
1
vote
0answers
16 views

Magento 2: How to add the home page URL in sitemap.xml

How to add the Homepage URL in sitemap.xml with priority 0.1 in Magento 2? Please Help me.
1
vote
0answers
29 views

Magento2 Recent product view collection only cart page return any other page not return?

<?php namespace Logicrays\ProductSlider\Block; use Magento\Catalog\Block\Product\Context; use Magento\Catalog\Model\Product\Visibility; use Magento\Catalog\Model\ResourceModel\Product\...
1
vote
1answer
34 views

How to show Block depending on Customer Logged In/Out in Magento 2

I want to Show Conditionally Depend of customer logged in status For Magento 1 i Found this Solution i want Same Lopic for Magento 2 // is Logged in <customer_logged_in> <reference ...
0
votes
1answer
32 views

How to done a error message under shipping method in magento 2

How to done a error message under shipping method in magento 2 like this..
0
votes
0answers
9 views

Disable direct access the files(.pdf) from pub folder. Only customer can do this

How can I make my files accessible for login customers only. Files are under pub directory.
0
votes
0answers
14 views

Review start On home page

public function appendSummary($collection) { $entityIds = []; foreach ($collection->getItems() as $item) { $entityIds[] = $item->getEntityId(); } if (count($entityIds) ==...