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
0answers
17 views

Magento 2.2.9 - problem with URL keys

I have problem with URL keys. For some products URL that is generated is different that is saved in Admin panel on one of the store views. For example: In one shop, when i go to the product page, ...
0
votes
0answers
19 views

How to get all product details and sku using REST API in magento 2? using integration

<?php $productUrl='http:yourlUrl/rest/V1/products?searchCriteria[page_size]=20'; $ch = curl_init($productUrl); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, ...
0
votes
1answer
24 views

How to add multiple section in admin form magento2

I have created custom form in magento2 admin panel. Now I want to add one more section same as Tab, let say 'Tab1'. This is my general.php file. Namespace/Modulename/Block/Adminhtml/Custom/...
0
votes
0answers
16 views

Magento2:How to sort by Product Name A -Z in listing page?

I have used to Magneto2.3.1 and I have to create custom plugin for sort by option there Product Name A -Z not working on it getting error like below: 2 exception(s): Exception #0 (...
0
votes
2answers
45 views

get product id from item id in magento 2

I am trying to retrive product id from item id. i created first js function in sidebar.js: define([ 'jquery', 'Magento_Customer/js/model/authentication-popup', 'Magento_Customer/js/customer-data', '...
0
votes
0answers
9 views

Magento 2 API Product Search by configurable Option Attributes like size, color

I'd like to be able to search products via the API. In my experiments, I am searching for a value of an configurable option attribute (e.g. drop-down size) For example: rest/V1/products?...
0
votes
0answers
12 views

Save prices with 2 decimals only in database

We have a problem with synchronizing invoices with an accounting software. The product price sent from the synchronization magento module (to the software) is rounded by 4 decimals. In the software ...
0
votes
2answers
58 views

Magento 2 : Create custom sticky admin system messages

I need to create custom sticky admin system messages. Here is my code, But not working class StickyMessages implements \Magento\Framework\Notification\MessageInterface { public function ...
0
votes
1answer
26 views

Update item custom quantity and salable quantity value after place order in Magento 2

I need to decrease purchased item saleable quantity with custom value (x* ordered_qty) after place order in Magento 2.Right now I'm using the following observer and class to update the quantity of ...
0
votes
0answers
21 views

Magento 2 - configurable product price based on parent

looks like product pricing on M2 works differently in Magento 1 - for the configurable product, it used to work like this Parent item £200 -- Colour option A +£50 -- Colour option B +£75 and ...
0
votes
3answers
34 views

Magento2: Need to show system filed value in label not in input box

I need to show field value in the label, not in the input box. Please suggest for this
0
votes
0answers
15 views

Magento 2 Order Email Template not working

I want to add unsubscribe link in in All email footers I have used {{var subscriber.getUnsubscriptionLink()}} But it's not working. Note: The Unsubscription link should redirect to account page ...
0
votes
0answers
13 views

Resource tree not showing Magento 2.3.3

I am using Magento version 2.3.3 Resource Tree not showing while assigning custom resource to user. Its giving some JSON syntax error in console as well anyone here here, thanks in advance
0
votes
0answers
7 views

Magento2 set price field to accept 1.234,56 format of number

I am working in Magento2, I am switching language as Danish In Danish the currency format is 1.234,56
0
votes
0answers
16 views

Magento 2 How to upload and preview multiple images using category custom image attribute

I have created a custom image attribute for category and i need to upload multiple images and preview all the images. As of now i am able to select multiple images and store them in the database but ...
0
votes
0answers
17 views

Magento 2 backend update attributes on schedule, but never updates

I have tried to reindex but product attribute still not updated Please check screenshot given below.
0
votes
0answers
12 views

Magento2: Catalog Search problem while using - and &

In Magento2, i have stored some product sku = MAK A-97380 If i search "MAK A-97380" getting empty record If i search "MAK A" getting empty record If i search "97380" getting that record ...
0
votes
1answer
40 views

How to use Elasticsearch 6 with Apache, Redis and Varnish on Magento 2.3 Open Source?

I'm just learning Magento. I have Magento 2.3.3 open source set up on a Linux server with Apache, Redis & Varnish. Next I want to install Elasticsearch 6 ("ES") and I have confusion about some ...
3
votes
2answers
41 views

How hide in the view shipping in Magento 2?

I want hide the text SHIPPING, in Magento v2
1
vote
0answers
23 views

Magento 2 : dynamically update product option price

I would like to be able to dynamically set a product option price to 0 (marketing offer). Based on admin configuration. But I can't find which function I need to override.
1
vote
1answer
28 views

How to manage cache issue on toplink in mageno 2?

I am showing logged in username in Magento2 toplink. But due to Magento full page cache, it showing another username. I tried using cachable="false" for toplink block. It works on the MyDashboard ...
1
vote
1answer
26 views

How to add a custom attribute to a product view in Magento 2?

I created the attribute with code "supplier" in my admin area, besides, I saved the file "mycustomblock.phtml" in "/app/design/frontend/{MyThemeName}/default/etc/Magento_Catalog/templates/product/...
1
vote
0answers
11 views

Magento 2 Cart empty using Memcache

I am using Magento2.2.2 with memcache. Facing some issue with memcache with-out memcache adding cart is working fine and cart page showing added items. If enable memcache and configured env.php ...
1
vote
0answers
21 views

(Magento 2) Configurable product price doesn't change

Version : Magento 2.3.2 Theme : Cleversoft Hello, I have a product with it's variations (depending on the delivery). On my product page, I have my button for chose the delivery option, but the ...
1
vote
0answers
16 views

Telephone Number is required field error message on Magento2 checkout page

I have developed a Magento 2 site in which i am facing an issue some times not all the times. On checkout page once all process is don i face this issue. if i check the checkbox of My Billing and ...
1
vote
1answer
19 views

Magento 2 proxy real time example

I am learning the Magento 2 proxy concept so that I followed the https://webkul.com/blog/magento2-proxy-design-pattern-code-generation/ blog and discovered the proxy concept. I am a bit clear about ...
1
vote
0answers
10 views

cron_schedule table not emptying itself (deadlock error)

I just realized after cheking my logs that all the queries supposed to clean my cron_schedule table are not being executed properly. My table just keeps on growing. Here are the three exception types ...
1
vote
0answers
10 views

Change scope of tax catalog price calculation to store view

I need to change the Catalog Prices Tax Calculation Settings scope to store view rather than website but I've not found a solution as of yet. Is there any way to do this? The current set up is as ...
1
vote
0answers
20 views

Magento 2 admin path not working

I have setup an existing Magento 2 instance locally using a Docker(LAMP stack), which is working fine for store side but I haven't been able to get admin path working. It gives 404 page not found for $...
3
votes
1answer
28 views

Rounding price issue - Magento 2.3.3

Magento 2.3.3 is behaving weird. I have sample products. All have the same base price 0.30 €, tax is 19% VAT But when my clients order the prices in the same order are sometimes 0.36 €, sometimes 0....
0
votes
0answers
12 views

Magento2 product page is giving “fotoroma is not a function error”

In my magento2 project, fotoroma is not working fine, it is giving error like this: gallery.js:297 Uncaught TypeError: settings.$elementF.fotorama is not a function I have tried all the existing ...
1
vote
0answers
13 views

Magento 2 Klarna checkout with paypal express payment issue

I am using magento version 2.3.1 I get issue when I place order with Klarna checkout using Paypal express checkout When place order its redirect on Paypal and pay now there after that its giving ...
1
vote
2answers
20 views

How can I load popup widget unload or on ready?

I am trying to load popup widget , admin specifies it will be unload on ready . Where can I specify it must pop unload or on ready ? define([ 'jquery', 'Magento_Ui/js/modal/modal', 'mage/cookies' ],...
1
vote
0answers
7 views

Checkout Totals Sort order not changing

When I attempt to change the checkout totals sort order in Magento 2 backend, I can press save, however the sort order doesn't seem changed from the magento 2 backend. When I look in the database, ...
1
vote
0answers
10 views

Show Varnish 'Age:' in production mode

Is it possible to show the varnish 'Age:' header in production mode. I want to be able to monitor how long our pages are staying in Varnish cache for. This header is only visible in developer mode ...
1
vote
0answers
8 views

Category page Grid - Manual/Custom Product Sequence on Page Load

Is it possible to manually set the sequence of product items that appear for a specific category on page load. However, when filters are applied by Visitor, then sequence changes accordingly. ...
0
votes
0answers
30 views

Magento 2 B2B plugin functionalities

It may be a bit of a generic question, but I would love some opinions and advice form people familiar with magento both as a shop owners and developers. I need to prepare my shop for advanced B2B ...
1
vote
0answers
21 views

Magento 2 Wishlist siderbar not showing

I am using magento 2 EE and I am facing wishlist side bar not showing for some customers like: I have two customers one customer pawan@gmail.com- customer type - Individual user second customer ...
1
vote
0answers
39 views

I want to add sign in form of magento 2 checkout step

I want to add sign in form of magento 2 to my checkout step and want to show sign in form when checking out how to call template of sign in form in my custom checkout step.
1
vote
0answers
52 views

Magento2 - can't add product in cart

I am not able to add product to cart. tried these solutions but not working. https://stackoverflow.com/questions/41463643/magento-2-products-not-being-added-to-cart add to cart not working localhost ...
1
vote
1answer
36 views

Magento 2 - Use Bootstrap 4 (Uncaught Error: Script error for: bootstrap)

I try to install bootstrap 4. Note: THEME_LOCATION => app\design\frontend\company\base First I downloaded the Compiled CSS and JS from here. I moved the file bootstrap.min.css to THEME_LOCATION\...
1
vote
0answers
32 views

How to disable the product price for entire website in magento2

I have used the below code its not working. Please suggest the solution. if someone know the answer please share the exact code and folder structure. since i'm new to magento. di.xml file: &...
0
votes
0answers
8 views

how to add group pricing on configurable products?

I want to add particular discount on particular product. Yes it is for configurable product, but i could not found any good way to do it. Example : I have vip group and i have product abc,xyz i want ...
0
votes
0answers
9 views

Import Product Images Zip from Admin Panel in Magento 2

I need to make a panel in Magento 2 admin panel where i can upload a Product Images zip file which will extracted in pub/media folder. How can i do this? what approach should i follow to do this? ...
0
votes
1answer
16 views

How to hide product price for entire website in magento2 [duplicate]

I have used the below code its not working. di.xml file: < config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...
0
votes
1answer
11 views

Magento 2.2.10 change cancelled order to pending

Is it possible to put orders which been clicked in cancel from admin and do a check if the check fails keep it as pending
0
votes
0answers
20 views

Remove shipping step from one page checkout

I am working on the functionality of "Buy now Pay Later". So that customers can purchase on credit and that order will be in "pending" state. Then later, customers can see the list of "Outstanding ...
0
votes
0answers
17 views

Internal Server Error after upgrading from magento 2.3.0 to 2.3.3

I had upgraded my dev store from magento 2.3.0 to 2.3.3 after that i am getting below error Internal Server Error The server encountered an internal error or misconfiguration and was unable to ...
0
votes
1answer
37 views

How To add custom Menu admin side in customer tab in magento 2

How to add my module name inside the customer menu tab inside the admin panel? Whether there are any possibilities to add a menu inside the customer menu?
0
votes
0answers
21 views

MAGENTO2 : HOW TO RECTIFY WHICH PROMOTION IS APPLIED ON THE RESPECTIVE ITEM IN AN ORDER

I have an order with an Item having some special price on it. I want to know whether if it's Product's special price, tier price or any catalog rule promotion price. Reason for asking this question is ...