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

Thumbnail url clarification needs

I get the thumbnail url using the following code $image_url = $this->imagehelper->init($product, 'product_page_image_small')->setImageFile($product->getFile())->getUrl(); echo $...
0
votes
0answers
11 views

Where Can I Add label?

Where Can I add these labels in my form /checkout?
0
votes
1answer
10 views

magento2 Error: technical problem with the server created an error on logo upload M 2.3.0

On mangento 2.3.0 version when you try to upload logo for theme from admin side it will gives error as below "technical problem with the server created an error". Is there something wrong with ...
0
votes
0answers
6 views

Fatal Error: 'Uncaught Error: Class 'Spyc' not found in /app/code/DeviceDetector/Yaml/Spyc.php:17

I have installed MageWorx Ordermanagement extension.I have also migrated data from m1 to m2. From the extension when i do the manual sync data i am getting following error. Fatal Error: 'Uncaught ...
0
votes
0answers
7 views

Project results change event in JS

In Javascript or Jquery is there an event that can be watched to see if the product results set has been changed or filtered because sometimes the window does not reload and my plugin login does not ...
2
votes
0answers
15 views

Magento2 catalog_product_category / catalog_category_product - Serialization failure Deadlock

Lately I'm experiencing some issues when trying to reindex catalog_product_category and/or catalog_category_product (most of the issues seem to be on this last one). The reindex process fails to ...
0
votes
0answers
19 views

Product url rewrite not working when product import using csv from admin in magento2?

Product url rewrite not working when product import using csv from admin in magento2
1
vote
0answers
12 views

form validation is applying to login form but not for other forms

For me login form is working (used data-mage-init='{"validation":{}}' in form and minlength:6 ). But the same is not applying for the other forms <form class="form-address-edit" action="<?= $...
1
vote
0answers
8 views

API issue returning object

We have this API where we save different fields, but the object $lines we have created doesn't save properly. The code below are the getters and setters for the object $lines. Save method API: ...
1
vote
1answer
115 views

Cron not working and Cron log showing Fatal error: Allowed memory size of 33554432 bytes exhausted

I have getting this error in magento 2. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 28672 bytes) in /home/www/public_html/website.com/vendor/composer/composer/...
0
votes
1answer
20 views

Setting prices per country

My customer would like to have a webshop including country and language selection different prices per country different article status per country (buyable or not due to import regulations) I am ...
1
vote
2answers
14 views

How to enable zooming on product page?

I installed magento lattest veriosn on local server (xampp). But i would like to add zoom for product images same as magento 1. How to enable zooming on product page ?? thanks
1
vote
0answers
9 views

Magento 2.2 - Required parameter 'theme_dir' was not passed when uploading image upload

When I'm going to upload product image I see this error "Required parameter 'theme_dir' was not passed". I'm using a Theme.
1
vote
0answers
6 views

Form Validation is not working for names and phone number min length

Hi I tried all standard method of validation like minlength:6, add data-mage-init='{"validation":{}}'in form and all standard tags. But validation is not working.Please anyone suggest me
1
vote
2answers
17 views

Module JS - Mismatched anonymous define module

I've tried adding my module JS file to Magento2 but for whatever reason it seems to return this error: Error: Mismatched anonymous define() module: function($) My view/frontend file structure: |-...
1
vote
1answer
19 views

Magento 2 move reviews form inside list.phtml file

By default magento 2 review structure is like this - /templates/review.phtml and inside it you have - /product/view/list.phtml and Magento_Review/templates/form.phtml files. form.phtml file is ...
0
votes
1answer
20 views

Delete the price from whole site and from product magento 2

In my website i want to insert product without price and so i don't want to see this attribute none in FO none on BO so how to proceed any help please ?? another question please: i want to buy ...
0
votes
2answers
37 views

Magento 2 Attribute Type change

I have created product level attribute with the type text field. Now I am facing issue because complete value not coming. How we can update the Catalog Input Type for Store Owner text field to the ...
0
votes
0answers
3 views

POST http://example.com/setup/index.php/dependency-check/component-dependency 404 (Not Found)

while installing an extension in Magento 2.3 through extension manager an error occurred at Readiness Check: - Check Component Dependency We found conflicting component dependencies. Hide detail For ...
-1
votes
0answers
14 views

Set phone number min length and numbers only

In which file do I need to validate the phone number.
0
votes
0answers
4 views

How to change Print Order default 'date format' and to remove 'telephone underline' magento 2?

I am trying to change Print Order default 'date format' which is rendered on the first in Print Scrin Pages and 'telephone underlines' magento 2? If AnyOne have any idea,please tell me.
0
votes
1answer
20 views

Magento 2 category listing page not show product

In our magento store category listing page not display anyone product getting this error"We can't find products matching the selection." in all pages but in admin side product assign to category and ...
0
votes
0answers
11 views

Magento 2 set due amount zero when invoice generate programmatically

I am generating invoice of due amount of order. But due amount is not set zero after generating invoice. <?php namespace Namespace\Paymentmethod\Model; use Namespace\Paymentmethod\Api\...
1
vote
2answers
26 views

How to use https for all pages

I wanted to use https for all pages. For this I tried changing unsecured base URL to https in web configuration and in back-end. But at that time,the page is not loading at all, error is "too many ...
0
votes
0answers
12 views

Is Instant Purchase REST API available in Magento 2?

The new Instant Purchase feature provides returning customers with a faster checkout experience by using previously-stored payment credentials and shipping information to skip checkout steps. When ...
2
votes
1answer
25 views

How to solve newly generated magento 2 file permission issue in ubantu 18.04?

I have install and configured magento 2 in ubantu 18.04. Everything work fine but when i am run magento2 command using cli than every time it will display file permission issue in "cache_dir" and "...
2
votes
0answers
14 views

Can Magento 2 Proxies be used to handle non existing class

I am building an extension which is dependent on multiple third party payment gateways. So I have created a special service class which gives the respective payment gateway class object depending on ...
0
votes
0answers
16 views

Magento2: How to disable product image cache url?

I want to disable product cache URL. How to get product image URL directly into the path.
1
vote
2answers
24 views

Custom multiselct product attribute not showing selected in admin

I have created a custom multiselct product attribute pro grammatically. Everything is working fine i.e values are saving in databases and values also showing in product grid.But the selected values is ...
1
vote
1answer
15 views

How to override Registration success message magento 2?

I am trying to override CreatePost.php in local but its not working properly. Below i am pasting the code please check once. I am trying to override the code in getSuccessMessage function C:\...
0
votes
0answers
15 views

Magento 2 How to send HTML in Order Comment Section of Transactional E-Mails

I am trying to send HTML structure in order comment section, but in email it convert in simple plain text. any idea? Comment: Hello, <a href="example.com">Click Here</a> Current ...
0
votes
0answers
15 views

How to create layered navigation for custom page in Magento 2?

I want to show layered navigation on custom page where I will show some products. I followed the answer in Layered navigation for custom collection on custom page - magento2 but it is not working.
1
vote
0answers
27 views

How to get Current Currency SIGN in UI component field

I have created a Custom Module using the UI Component on Admin Side. Now i Need to show a Current Currency Sign in this field. SS:
1
vote
0answers
11 views

Magento multiple VAT classes

I am trying to set up a Magento Shop for a German restaurant that also has some events. We would like to sell Tickets that contain entry & food. Problem is, we have two different VAT situations ...
0
votes
0answers
13 views

Edit tracking information

I have a custom shipping module that I made following https://www.classyllama.com/blog/creating-shipping-method-magento-2 I need to show my carrier information when the admin clicks on Track This ...
1
vote
0answers
8 views

Display Configurable Product Image to Match Filter Selection in Magento 2

I have a configurable product, it has 2 colour options - black and white. When I navigate to its category on my website I see my products black version thumbnail, which is an image I have manually ...
0
votes
1answer
18 views

Pass boolean or variable from Child Block to Parent Block?

I'm probably thinking about this the wrong way, but I have two blocks and one is the child of the other. In the parent's template file, I'm calling getChildHtml() and rendering the child block that ...
1
vote
0answers
4 views

Custom configurable product pricing property

Is it possible to have a product attribute like 'custom price' that is global and can be set on a configurable product in a way that the price for the item itself can be pulled from that field and ...
0
votes
2answers
21 views

Magento 2 How to override adminhtml Js components

Basically I want to override grid.js component file in Magento 2 Require config view/adminhtml/require-config.js Require config code. var config = { map: { '*': { ...
0
votes
0answers
7 views

Does a user created cart interfere with a REST created cart or continue?

The question I have, if a customer has created a cart via a website..... And then for customer service reasons, the customer calls in a want to place an order, by using the API's (let's say Salesforce ...
0
votes
0answers
11 views

Magento 2 Child theme of Luma change media query

I have a custom theme that is a child of Luma. I see the styles-l min-width is set at 768px. Up until then the styles-m is active. I know if it was in my custom theme I could set that in my ...
2
votes
1answer
22 views

Add extra line to head section with url as a variable

I want for every page an additional line in the head section. The extra line should look like this: <link rel="alternate" href="https://www.mywebsite.com/us/link.html" hreflang="en-US"> where "...
0
votes
0answers
11 views

Magento 2 Tax calculation correct on checkout but wrong on payment

In our shop, there is a weird issue related to tax on checkout. We have migrated from Magento 1 to Magento 2 recently. I've used the data migration tool to migrate customers and orders only (the rest ...
0
votes
1answer
25 views

Magento 2.2.1 - Remove Free Shipping for a Specific Product

I recently upgraded to Magento 2.2.1 and there are 3 products that I make and sell. I recently set up free shipping for any orders over $500. However, for these 3 products, I need to remove the free ...
0
votes
0answers
7 views

Magento 2 Drop Shipping - Duplicated Products

I use 4 suppliers each of which is updated automatically by CSV feed twice daily, these 4 suppliers have approx 80% of the same products but at different prices, rendering either 2, 3 or 4 of the same ...
1
vote
0answers
15 views

CatalogSearch results looking for partial SKU

I need to be able to search by partial string of a SKU, for example, if a SKU of a product is "CUS123.5NYS" the customer may also be able to search by "123.5N", but currently, it only works if I ...
1
vote
1answer
19 views

Hide product price from wishlist in magento2

How can I hide price based on a condition from customer wishlist products. <block class="Magento\Wishlist\Block\Customer\Wishlist" name="customer.wishlist" template="Magento_Wishlist::view.phtml" ...
2
votes
2answers
15 views

Magento 2. how to hide 'Add to cart button' using Plugins

How to Hide 'Add to cart' button using Plugins.I'm stuck in to hide add to cart button if you guys help me it will be a really glad for me Thanks in advance
1
vote
0answers
19 views

Exception after bin/magento setup:di:compile and adding virtualType

I was adding this: <virtualType name="Test\Faq\Model\ResourceModel\VisitStat\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult"> <arguments> ...
0
votes
0answers
11 views

Set Price via URL or Text Field

I'm migrating a shop to Magento 2.2.7 and looking for an extension or code customization that will allow the shop to send out a URL with a price variable in it. i.e. thedomain.com/product-price-url....