Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
2answers
10 views

Magento 2 How to override Magento\Customer\Block\Address\Book block in my custom module?

I want to override block Magento\Customer\Block\Address\Book in my custom module. And need to add new function which returns module status enable/disabl, which is defined in model class. I need to ...
0
votes
0answers
4 views

Implement custom admin page for custom magento 2 shipping module

I am new to Magento and I am trying to implement a custom shipping module. I have found some resources and have made it work. but I have a problem, I want the custom shipping module to have its own ...
0
votes
0answers
6 views

Unsupported declare 'strict_types' in Magento 2.3.0

Error : Unsupported declare strict_types in ../vendor/magento/inventory-composer-installer while install the extension using composer in Magento 2.3.0.
0
votes
0answers
7 views

Unable to call function in ajax success in magento2

I have found below error: Uncaught TypeError: Cannot read property 'set' of undefined. Code: <script type="text/javascript"> $.ajax({ type:'POST', url: '<?php echo $this->...
0
votes
0answers
5 views

Block product shipping to a particular cities in checkout page

I want to shipp the fruits and vegetables only to the ABC city and other products overall India. How can I block product in the checkout page based on the customer shipping location(city).
1
vote
1answer
14 views

What is the SEO Recommended canonical category of products? [on hold]

Have a question, what is the SEO Recommended in Magento 2.2.5 canonical category of products?
0
votes
0answers
9 views

“Cannot resolve symbol" in default.xml

“Cannot resolve symbol" error showing in default.xml how can i solve it?
0
votes
1answer
11 views

jquery plugin error “Uncaught TypeError: $(…).[plugin function] is not a function”

I am using Magento 2.2.6 and I am trying to include a jquery plugin (stickybits, in this case). The jquery plugin file is successfully called in my requirejs-config.js file and I can see that the file ...
1
vote
0answers
8 views

Slow transaction on /customer/section/load Magento v2.2.5 CE

I was recently seeing slow response times on our Magento 2.2.5 CE installation, so we installed NewRelic to monitor some site metrics. One thing that instantly stood out to me was the /customer/...
0
votes
0answers
10 views

Magento 2 How to hide price of product and add to cart button and Show a custom Link if not logged in

I want to Hide the Price of the product and also add to cart button if the user is not logged in and want to give a link in place of Add to cart button to Login. Thanks in Advance :)
1
vote
1answer
17 views

Admin no display

Using - windows 10 OS - Magento-CE-2.3.0-2018-11-27-10-23-08 - xampp-win32-7.2.12-0-VC15-installer I have try mozilla firefox, Chrome, explorer and incognito but admin page will not display any ...
0
votes
0answers
7 views

Magento 2 performance issue [on hold]

We are seeing a huge drop in performance every 5 minutes. We've checked our crons and made adjustments but are still seeing a drop in performance. Thoughts?
0
votes
0answers
6 views

Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint

I have a custom module with a defined route as: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd"> <...
0
votes
0answers
9 views

Magento 2 UI Form datepicker, default date and strange behaviour

I created a UI Form with a datepicker field. In the xml I set required-entry to false. It keeps returning 'This is a required field'. In the xml the definition is thus:<field name="begin_datum">...
0
votes
2answers
11 views

Create Coupon/Price rule for first 10 Customers .(Magento 2)

I want to create a price rule in magento 2, and want that to be active only for the first 10 Customers . Is it possible to achieve that ? Thank You !
0
votes
0answers
10 views

Magento 2 CMS 404 error

we are in the process of updating our humble little Magento 1.7 shop to the latest version 2.3 It is a multi-language store and we have succesfully migrated all customers and all categories and ...
0
votes
0answers
8 views

M2.3 - Creating multiple attribute options at once generates error

I am trying to add multiple attribute options to an already existing attribute. During the loop, it will create the first option, and then throw an error. Fatal error: Uncaught TypeError: Argument ...
0
votes
0answers
5 views

Restrict add to cart visibility according to group magento 2

I have two catalog and two group when a customer that belong to group 1 is connecting he can just see add to cart of catalog 1 and same for a customer that belong to group 2 he can just see add to ...
0
votes
2answers
21 views

Magento 2 in frontend can not able to get the customer custom attribute value

I have created a custom customer attribute, and while create and update customer from backend the value will be saved in Database. But while do the same thing from front-end the value is not able to ...
0
votes
0answers
15 views

Redirecting to home page

We have magento 2.2.6 site running.Recently the site was migrated from one server to another server,we are getting following issue: when we login into admin and leave that page as it is for some time ...
0
votes
0answers
10 views

Magento 2 : Custom Report with Two Table Join issue

I am facing issue with a custom report with multiple table join. I have created a custom collection into _initSelect function. While I am print this query and run manually on a database server its ...
0
votes
0answers
8 views

Magento2 seprate Currency symbol and price of products [on hold]

I want to separate the div of currency symbol and price how I can do that in magento2.
0
votes
0answers
6 views

Magento 2 Commerce. Is there a cron that runs rabbitmq consumers?

When cron runs I see a log that informs me that queue consumers failed to start. Is there a cron that runs rabbitmq consumers?
0
votes
0answers
5 views

Recently viewed products not showing for NOT LOGGED CUSTOMERS in magento 2

Why recently view products not showing if any customer not logged. when customer logged in account then recently view product showing correctly. if customers log out from their account then recently ...
1
vote
0answers
8 views

Magento 2 Plugin Sort Order

I am trying to understand the concept of sort order when using plugin. As per my understanding the sort order works in lower to higher when used before method and higher to lower when used in after ...
0
votes
0answers
5 views

Magento2: Issue with tax rate

I set: tax: 23% The catalog price includes VAT tax The delivery price includes VAT tax After saving, magento gave 23% VAT to all products. (I have indicated that the catalog already contains VAT)...
1
vote
0answers
9 views

How to set success and error message when custompage ajaxcall in magento2?

I want to display success message when my custom form submitted . I am doing ajaxcall here. How to achieve this? I want default page.messages not custom message div.
1
vote
0answers
6 views

Magento 2 - how to change the product name in a configurable product

We have allot of custom products that we sell witch means we need to be able to ad those custom products to shopping carts for our customers. Right now we are solving this with a configurable product ...
0
votes
1answer
7 views

Magento 2 | Adding pagination on custom collection to display «per page» limiter

I have followed this link to show «per page» limiter on frontend. I have done so far is: My Collection: public function getInvoicesCus() { //get values of current page $page=($this->...
0
votes
0answers
8 views

Magento2 design_change database table is not updating new theme

In magento2.2.4 i have created a new child theme but it's name is not getting updated in database table design_change 'design' column so i am not see new child theme. Can i know from admin where can ...
1
vote
2answers
28 views

Move maento to the another path

Hi I have installed the developed the magento 2 in the path domain.com/new folder and developed in that path. Now I want push the installed file to the public_html file without affecting the code.
0
votes
1answer
19 views

Magento 2 How to use model function in phtml file When override phtml?

I want to override book.phtml file from my module and want to check if my module is enabled or not. if module is enabled then need to hide links and button from that phtml. I have module function as ...
0
votes
0answers
5 views

Using product api to upload video but deletes the product custom image roles

I am using api call = rest/all/V1/products/sku/media to upload video to a product but it deletes custom image roles. Can anyone please help me out.Thanks in advance.
0
votes
0answers
2 views

Fetch created new attribute of product in order summary of checkout page

I have created new attribute for products and given yes/no option to them. How can I fetch that new attribute data in the order summary checkout page
1
vote
0answers
11 views

Vantiv Payment Method Not working in magento 2 admin panel

I am using vantiv payment gateway for my magento 2 site, it's working fine in magento front end with out any issue. and i also have success log message in log file, but it not working in my magento ...
0
votes
0answers
4 views

Magento 2 Which function is called to deduct product inventory when order is placed?

When a new order is placed in Magento 2. The quantity is substracted for the product bought. I want to edit the logic, but I don't know which function I should edit with. Please help.
0
votes
1answer
8 views

Magento 2 - Disable caching of prices on category view

I have a Magento 2.2.4 store where prices are automatically updated every 10 minutes from an stock management system. This works fine on product pages and any custom 'featured products' sections etc, ...
0
votes
0answers
7 views

How to add .phtml content after order summay in magento 2

I created a .phtml file in my custom module, that file has one button.I want to display that button after order summary of review and payment section in magento 2. help me solve this.
0
votes
0answers
12 views

Save button is missing in the shipping address form at checkout page

In checkout page when I click on +new address button a popup is shown with a form in it but the save button is missing. How to add the missing save button in the popup form.
1
vote
3answers
70 views

Get search result count in Magento 2

How to get Search result count and keyword in result.phtml in magento2. I have overriden the Magento_CatalogSearch/templates/result.phtml file. I need to show the count returned from the search ...
0
votes
0answers
12 views

Magento 2.1.6 website is working fine but suddenly in one subcategory I'm getting the error bellow

Magento 2.1.6 website is working fine but suddenly in one subcategory, I'm getting the error below. website link - https://buddsbuddy.com/toys-for-toddlers/toys.html 2 exception(s): Exception #0 (...
1
vote
1answer
11 views

Magento 2 how to disable 'add new address' button from customer address book page, in account section?

I want to disable 'add new address' button from customer account address book and customer account section with checking if my custom module is enable/disable. file name is : vendor\magento\module-...
1
vote
1answer
28 views

Fetch product category name in order summary at checkout page

Hi I am looking to fetch the product category name in the order summary of checkout page. Which file do I need to edit to fetch the data
0
votes
0answers
7 views

Loggly Magento 2Usage

How to usage Loggly in Magento2. I want to use loggly tools and log my errors on loggly instance. How can that be done.
1
vote
1answer
20 views

How can I get full information of product in cart

How can I get full information of product in cart I want to get all info of my product which is in cart coz In my cart it will only get name sky and id, but I want custom attributes also ... [ {...
0
votes
2answers
18 views

Magento 2 in how to add the attributes extra more then values in bulk import ? what is th csv formats?

drop down box values not working in admin panel side using bulk import..! products attributes values not working in bulk import in csv files ?
0
votes
0answers
9 views

after payment fail the order cancel automatically magento2

when I canceled the order or payment fail the order has been canceled automatically, but actually when the payment fails the order status has not changed to canceled in magento2.
2
votes
1answer
19 views

Magento 2 Create observer on customer create, with custom module

I want to create an observer in my custom module which called when new customer create and delete. In my custom module i want to add custom data when customer created and delete custom data when ...
0
votes
0answers
21 views

How to override vendor\magento\module-quote\Model\Quote\Address\Total\Shipping.php

The main objective to override this method to add custom amount to shipping amount@ $total->setBaseShippingAmount($rate->getPrice()+custom_amount); $total->...
0
votes
0answers
9 views

Can we add translation in setup scripts of magento2?

e.g. In upgrade data i want to insert some records. Is there any effect of translation on data to be inserted ?