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.

1
vote
0answers
6 views

Static composer tests fail on fresh install

If I clone a fresh copy of magento2 and run vendor/bin/phpunit -c dev/tests/static/phpunit.xml.dist, the ComposerTest fails because each packaged module has a 'version' property. Version must not be ...
0
votes
1answer
12 views

How can I show specific products on homepage in Magento 2?

How can I show specific products on homepage? It has to be client friendly to do in CMS. I tried displaying a category then changing the sort order on products in category.
0
votes
0answers
7 views

change image sizes in fotorama

how do I change the images sizes of the fotorama gallery ? From what I understand I need to edit my view.xml But what Image Id's do I need to change please. Also do I need to run some mage command ...
1
vote
0answers
18 views

Getting a cutomer attribute value from a parent block inside child block

I am trying to get a value of my custom attribute linkedin_value to populate a form I have added to customer account edit page but I cannot get to it. As soon as I call $block->anything or $this-&...
0
votes
1answer
11 views

Bundle product on cart shows up price 0 (REST API)

I'm using Magento 2.3 as a headless solution, having an Angular app as a storefront and using REST API to manage eCommerce functionalities. The fact is, in certain conditions, a bundled product with ...
1
vote
0answers
6 views

Wrong display of VAT

Magento version 2.2.6 I have a problem with the addition of a product price and a selected attribute (or more) price(s) In this shop I have entered the prices 'excluding VAT'. The product page is ...
1
vote
0answers
14 views

How to delete the summary table in minicart page Magento 2

I want to remove the summary from this page and how to remove shipping method and the part of price and product from this page Thanks in advance
1
vote
0answers
11 views

Magento 2 Plugin files not being generated

I have a plugin that adds some stuff to the customer dashboard. I'm trying to add a js file but for whatever reason it's being missed out. web/js/main.js define(['jquery', 'underscore', 'mage/...
3
votes
1answer
47 views

composer connection refused

Context: magento 2.1.7 community-edition composer.phar 1.7.2 installed and setup on a development server then deployed on a production server (dictinct from the previous) All worked well, including ...
1
vote
0answers
11 views

Is It possible to add custom block in CMS pages?

I made an extension and place block for specific CMS pages, How Can I Place my block in CMS pages? I am trying to enable extension from admin and select specific CMS pages then block should be ...
2
votes
0answers
16 views

Price not being displayed on Magento 2.2.4 product page

I have an installation of Magento 2.2.4. I created a new configurable product but the price is not displayed in the frontend nor are the option. If I create a simple product everything is alright. ...
1
vote
0answers
15 views

Magento 2 : add google map in checkout

I want to add google map in Magento 2 checkout page. Added API url and key to phtml using below code <referenceContainer name="after.body.start"> <block class="Test\Vendor\Block\...
1
vote
0answers
14 views

Multi store setup with sub domains, MAGE_RUN_CODE not working

After reading some articles to setup multi store, I have created a new directory containing index.php and .htaccess files along with symlinks for pub, var and generated folders. Here is updated index....
0
votes
2answers
21 views

static content 404 magento2

I installed Magento2.3 and got greeted with the usual style not loading errors. I looked at the url it was trying to load and it was going to en_GB, which was 404'ing. Inspecting the pub/static ...
1
vote
0answers
13 views

Magento2 and Docker-Compose is incredible slow on Linux

We are working on a local env for developers and a Magento 2 Docker-Compose Stack. We are using nginx, PHP 7.2, Elasticsearch and Varnish. However, we experience unbearable loading times with and ...
1
vote
1answer
24 views

Magento 2 How to get customer collection from website id?

I want to get collection for customer website wise. I have a website id, and now I want all the customers which belong to that particular website id. I am trying here: using \Magento\Customer\Model\...
1
vote
1answer
19 views

Free Shipping for magento 2

I'm very new to the Magento 2 framework. I would like to know that how to set up free shipping above the amount 50 dollars and below amount should have 6.5 dollar shipping charges. Please help me to ...
2
votes
0answers
16 views

Magento 2. how to hide price only for specific categories

Actually I hide the price using Plugin but now I want to hide price only for specific categories like I only want to hide the Price for bags. I want to do this thing by using Admin configuration like ...
1
vote
0answers
12 views

configurable price issue in quickview and list page magento2

I'm having an issue with pricebox.js/configurable.js and configurable products. They are used in quickview and on individual product pages. same Issue I can see in this platform in this link ...
1
vote
0answers
7 views

Magento 2 - Configurable product with multiple price attributes

I'm facing a dead-end with my configurable product and my simple products. Right now, im struggling setting up my configuration prices in a way that make sense for my products. Since Magento 2 , the ...
0
votes
0answers
10 views

Show Drop down attribute value in Magento 2

I have the following problem. We do have a attribute 'delivery_time' and the block calls the attibute.phtml under vendor/magento/module-catalog/view/frontend/templates/product/view. Unfortunatly is ...
0
votes
0answers
9 views

Migrated Attributes with 1000 options not saving “Use in Layered navigation” value to “yes”

I have a select attribute with 1000 options. When I tried to save the attribute as use in layered navigation as "yes". It will be saved successfully but with "no" as value.
1
vote
1answer
20 views

route shows user login page title

In one Magento 2.2.6 instance something very odd occurs: the meta page title shows <title>Customer Login</title> and the page title in the content also shows Customer Login - even though ...
0
votes
1answer
24 views

Magento 2 How to add custom attribute to customer address and how to insert value in that attribute?

I want to add a new custom attribute to "customer_address" that I did with an attribute installer script, now I am able to see that field in "eav_attribute" table. I have created a module and I have ...
3
votes
1answer
52 views

How to get product video in product listing page in magento 2?

How to get product video as base and thumbnail in product listing page. Currently, Only Video preview image is showing in listing page. But I want to display video in listing page instead of the ...
1
vote
1answer
31 views

phpinfo() in magento2

I created a phpinfo.php page in my Magento2 project but when I try to access it via URL it shows a 404 page. It's set up here in the magento root: |-Magento2 |-----<other folders etc.> |-----...
2
votes
0answers
22 views

Replacing string in checkout summary

We have managed to modify the " Talla" Field in order to remove the "(-)" part. What happens is once we go to next, once selected the address we want to send to, it reloads the page and the "(-)" ...
0
votes
0answers
33 views

install magento 2 onto local WAMP Server

Experts! I've installed Magento 2 (CE 2.3.0) into local WAMP server. Everything looked fine until I try to get to Administrator's page. This page looks like complete black screen (I am using Chrome as ...
0
votes
0answers
11 views

Magento2: Magento media to S3 bucket uploading issue

I have installed the Thai Module for transfer media to S3. When I run the php bin/magento s3:storage:export images upload successfully but images not showing on S3 bucket. Please check the screenshot....
1
vote
0answers
39 views

No Home CMS page configured or found

I'm facing this problem, There was no Home CMS page configured or found In the Template Config > Manage Template when i set " All store view " and save block so the below error be visible. ...
1
vote
1answer
20 views

Magento2: crontab not working in magento for emarsys catalog generation?

I am trying to run the command php bin/module cron:run but getting error in CLI. Here is my crontab.xml enter code here<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
18 views

How to fix the migration error [Exception] Warning: PDOStatement::execute(): MySQL server has gone away

How to fix the migration error How to fix the migration error [Exception] Warning: PDOStatement::execute(): MySQL server has gone away in C:\xampp7.0\htdocs\magento220\vendor\magento\data-migration-...
2
votes
1answer
40 views

Magento2 : how to change admin startup page programmatically

I want to change landing page of admin based on some condition how can I achieve this ?
0
votes
2answers
32 views

How do I add a custom message block at the beginning of the maincontent div in product list/ detail page

How do I add a custom message block "Lorem Ipsum dolor sit amet" at the beginning of the "maincontent" div that appear below the breadcrumbs in product list/ detail page. Thanks in advance.
0
votes
1answer
12 views

Magento 2.2.4 Composer Patch Failed: “1 out of 1 hunk ignored”

Applying patch to v2.2.4 for Github issue 14968, but I keep getting hunk fails error. After looking Looking here: SUPEE-9767 - Hunk #1 FAILED at 225. 1 out of 1 hunk FAILED I believe the problem is ...
1
vote
0answers
14 views

What causes the Magento2 interfaces and APIs to leak implementation details at every orifice?

One of the things that surprised me so much, after spending multiple times more than working with typical platform, is the degree undocumented and ever changing implementation details must be known to ...
0
votes
0answers
7 views

Issue with productlist widget - VES_ALL and VES_Productlist [on hold]

Im facing a problem, Installed the VES_ALL and VES_ProductList module to have widget with lot of options like latest arrivals, sorting , season style and may other. This module is from LandOfCoder.com....
1
vote
0answers
22 views

Call php in system.xml

I want to call a php file containing first name in system.xml. I know that it can be done by using source_model and using class class_name implements \Magento\Framework\Option\ArrayInterface Is ...
0
votes
0answers
16 views

Magento2, Is it still necessary to disable a module before uninstalling it, and setup:upgrade? Any idea why this can't be the one command?

To disable a Magento2 module, I do the following. php bin/magento module:disable <ExtensionProvider_ExtensionName> --clear-static-content php bin/magento module:uninstall <...
0
votes
1answer
29 views

Invalid template file:in Magento 2.2.7

When i am installing magento 2.2.7 in my local dev window system using wamp, Than i getting 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'D:/...
0
votes
1answer
26 views

How can I change the sender name?

How can I change the sender name in Centos? All magento transactional emails are delivered with the user name i@prokaryotes.ru. Please see attached.
0
votes
0answers
8 views

add to compare list

I'm building rest api to add product to compare list. that's my code: /** * @api * @param int $productId * @return array */ public function addProduct($productId){ $userType = $this->...
0
votes
0answers
7 views

JS Error on Custom Renderer for AbstractFieldArray

I have added a field array to one of my config pages, and it worked until I decided to add a checkbox. I created a custom renderer for the checkbox with the name is_syncable, but get the following JS ...
0
votes
0answers
22 views

Magento2: Notice: Array to string conversion?

I am getting the following error after updating my custom admin record only for image upload field in magento2.2.5. (Notice: Array to string conversion in /var/www/html/magento2/vendor/magento/...
0
votes
0answers
7 views

Magento2, Can attribute value conflicts be avoided in a large product catalog?

I'm working with a very large catalog of products, and am preparing the data for importing into the cart. However I've got a pretty ugly problem, different products place different meanings on the ...
0
votes
0answers
8 views

Can it's possible to set JavaScript variable on <script type=“text/x-magento-init”> tag data in Magento 2

I want to make the changes of spConfig variable by javascript variable. <script type="text/x-magento-init"> { "#product_addtocart_form": { "configurable": { ...
1
vote
1answer
26 views

Prevent Magento2 display information on script on homepage

I would like to know how can i stop magento2 to printing information about my plugin and script on homepage.If u analyze my code i have got all these script that contain information about all plugin i ...
0
votes
0answers
19 views

Remove label from custom field

I have magento 2.1.1 and I want to remove custom field label which is added by 3th party module. In that module appropriate xml file is placed by path Namespace_ModuleName/view/frontend/layout/...
0
votes
0answers
17 views

Magento 2.x how to get ui-select selected value

I have place ui-select component and i want to get value in my custom component. How can i get selected value in custom component ? list.js file Here is my output.
1
vote
0answers
8 views

magento 2 - Access denied for user - cache problem

1 exception(s): Exception #0 (Exception): Warning: mysqli_connect(): (HY000/1045): Access denied for user 'aromacak_db30'@'localhost' (using password: YES) in /home/aromacakes/test.aromacakes.online/...