Questions tagged [magento2]

Magento 2 is an eCommerce R&D project facilitating the improvement of Magento Core products. Written in PHP-Zend Framework. Available under both open-source and commercial licenses.

0
votes
1answer
9 views

Get param and converto to string in Magento 2

I want to rewrite value from variable store. http://localhost/magento_04/?store=angielski2 I tried to do this by $_GET['store'], but it doesn't work. I tried also by using: $language = $this->...
0
votes
0answers
6 views

How to handle custom API in magento2?

i want to help . how to create the custom api in magento2 ? its a normally simple api create here to add the 2 values and show the result . the ouput is here : { "message": "Request does not ...
-1
votes
0answers
10 views

Magento 2 - zend_db_expr returns object instead of array format

Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection Object ( [_optionValueTable:protected] => eav_attribute_option_value [_coreResource:protected] => Magento\Framework\App\...
-1
votes
0answers
7 views

Totals - Including Tax

I'm developing a module which has selection of all available countries as "Shipping To". User and/or guest are able to select their shipping country. Currently I am storing that in a Cookie. What ...
0
votes
1answer
12 views

Magento 2.2 Configurable Product with Downloadable Option: Email doesn't include download links

I have a configurable product with a downloadable option. When I perform a test purchase of the downloadable product option, the confirmation email doesn't include a link to the download, but instead ...
0
votes
0answers
8 views

Display swatches in recenly viewed products in magento 2

In Magento 2, product detail page i have showed Recently viewed products. But i have to display swatches also in recently viewed products. Please anybody navigate me how can i do. Thank you
0
votes
1answer
24 views

Image cache url in Magento

I have image url in js variable /w/s/wsh10-black_main.jpg. Question: How can I get media cache url in js, like: https://mydomain.test/media/catalog/product/cache/c687aa7517cf01e65c009f6943c2b1e9/? ...
0
votes
0answers
8 views

what is a better approach to update magento 2 product?

I'm using this code to update a product in magento 2. is there a better approach, like if there is a specific model to use for the product instead of the ObjectManager that could be faster or better ...
-1
votes
0answers
13 views

Attributes error on importing Magento 2 products

Im tryin to import products.csv on my Magento 2.2.6 website, but i receive the below error. 1. Value for 'news_to_date' attribute contains incorrect value in row(s): 1, 2, 3, 8, 18, 19, 20, 21, 22, ...
0
votes
0answers
7 views

in Magento2 for configurable product in a frontside display radio button instead of dropdown

My question is How can change dropdown to radio button in Magento 2 Configurable Product.Please tell me if anyone know?
0
votes
0answers
9 views

Magento 2 enable shipping method on cron and admin, but disable/hide in frontend

I need to keep free shipping enabled in the system (mainly for cron to use it in specific extension), but remove/hide it from customer (that means in frontend (cart, checkout)). I have been trying to ...
0
votes
0answers
11 views

Magento2 - Web API Get Request from Localhost has no Access-Control-Allow-Origin

I am building a PWA and am trying to fetch data from my Magento2 Website. Now I managed to connect to the server using Postman. But now that I am trying it with my ReactJS PWA it gives me the ...
0
votes
1answer
14 views

How to auto-generate order XML - Magento 2

What is the best way to generate an order XML automatically whenever a new order is created in magento 2? I'm going to import these datas to ERP using a webservice, so it needs to be in XML. ...
-1
votes
0answers
10 views

magento2 requirejs-config.js is not writable [on hold]

I have this problem image with problem
0
votes
1answer
23 views

How to optimize Magento 2 blocks cache lifetime? TTL

Are there any ready-to-use settings for Magento 2 blocks cache lifetime for high load servers? I mean for each block type: sidebars, headers, footers, categories, products etc. For example, what ...
0
votes
0answers
12 views

Pager does not show items, Magento2

Pager doesn't show items. It does show count of them and even paginates. But it paginates nothing. The code is below. Block/TestClass.php <?php namespace Wade\Crud\Block; class TestClass ...
0
votes
1answer
25 views

Magento developer coding question (Upwork)

I have hired a developer through UpWork to develop a Magento Webshop. One of the benefits if UpWork is that you can see the working hours and the files she has been working in. She has billed me for ...
0
votes
1answer
30 views

Error in Magento: Argument 2 passed to Magento\Framework\Pricing\Price\Pool::__construct() […]

I do not want to change the core files. and I don't understand why this happened its work perfect before. Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\Pricing\Price\Pool::...
-1
votes
1answer
8 views

Detailed Magento2 events reference

Where can I find a good and detailed description about Magento2 events? I would prefer a complete reference, but still not found. Thanks in advance!
0
votes
0answers
14 views

Magento 2 Import Products, Category problem

All right, I found magmi, where I can import products without problem. The only issue is that on CSV from provider, there is column "Category" (for each product, we are talking about 50.000 products). ...
0
votes
0answers
15 views

magento 2 several blocks linked to one template

I need to link 2 blocks to one template but, so I declared this layout: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:...
0
votes
0answers
5 views

Dynamic Admin Grid - Magento 2

I have a custom table in database which columns may be altered. I want to display all the columns and their values from each record in a custom admin grid. How can I achieve this?
0
votes
1answer
13 views

Magento 2 Amasty Layered Navigation. Remove display of current applied filters

I am trying to remove the block which displays all of the current applied filters. Please see image below. Is this done by editing a layout file or via an option in the admin panel? If so how do i it?
-1
votes
1answer
23 views

Magento 2 checkout stuck at loader (IE11)

Our checkout page (magento 2) stops at the checkout while loading. There is a syntax error at the console in this line. This is on production mode with js bundled. I just prettify it so it's ...
0
votes
0answers
14 views

Magento 2 Commerce Scheduled Price update deletes the images

For a webshop I'm working on, I need to import price updates. I created an import script that does this for me. So I have a Console command that speaks to a converter class. This converter class ...
0
votes
1answer
12 views

Is this a varnish hit?

I am having an issue with Varnish installed with Magento 2, I have followed this tutorial https://slack-redir.net/link?url=https%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fhow-to-speed-up-apache-with-...
0
votes
0answers
30 views

5K to 10k Ecommerce Sample Products for Magento

I am looking for a sample dataset of around 5k or even more for Magento. I want to perform some experiments but can't seem to find the resources. Do we have any site/repo where sample data for ...
0
votes
0answers
12 views

Magento 2 find orphan products (simple product without configurable)

I created code that should find simple products not visible individually which are not attached to configurable product. $collection = $objectManager->create('Magento\Catalog\Model\ResourceModel\...
0
votes
0answers
18 views

How to show color swatches in recently viewed products

In phtml file i just added the following code $swatchBlock = $this->getLayout() ->createBlock("Magento\Swatches\Block\Product\Renderer\Listing\Configurable") ->setTemplate("...
0
votes
0answers
12 views

Magento 2 routing between Controllers

I Have an Index.php file, in which I have a form with action to ../Action/Create.php. Looks like this: Main Controller: ../Controller/Index/Index.php I need to access via different controller, ...
0
votes
0answers
9 views

How to get OAuth access token from Magento2 using Node.js?

I have created integrations in magento but couldn't get store_base_url and oauth_verifier.
-3
votes
0answers
12 views

Magento 2.2.5 checkout issue

I'm using magento 2.2.5 with Plazathemes. Used payment gateway is realex. When I choose the pay with credit card(realex) and click the place order button it returns the "An error occured on the ...
0
votes
0answers
12 views

How to connect Node js with MAgento using Rest API

I am new to Magento and NodeJs. Can anyone please help to make connection between NodeJS application and Magento2 Rest APIs. It will be really great if anyone can provide me step by step procedure for ...
0
votes
0answers
14 views

Orders not coming in magento 2 ebay admin

Orders not coming in Magento eBay admin No idea how to start to debug m2epro support is taking time to respond! Help Please
0
votes
0answers
10 views

How to change breakpoint in magento2 Ves Magemenu

I try to modify the responsible of ves megamenu, I find there is 5 breakpoints defaultly. enter image description here But I want to change it. But I do not know how to do it.
0
votes
0answers
18 views

Layered navigation on the home page in the 1-column theme

I'm trying to make home page as 2 columns with left sidebar. Unfortunately, the left sidebar appears below the slider - link. The XML code used below: <referenceContainer name="sidebar.main"&...
0
votes
0answers
20 views

Categories Links are not working in Magento 2

I have like 50 categories with the settings of URL Key in Search Engine Optimization. And, my link settings has .html suffix of category url. Can you guys help me where I am doing wrong ? Please ...
0
votes
0answers
17 views

Magento 2 says MAMP PRO is missing mcrypt but it's installed

I am trying to install Magento 2, but it says that the mcrypt extension isn't installed. In php.ini, extension=mcrypt.so is uncommented and should therefore be active. The configuration command shows -...
0
votes
2answers
15 views

Getting blank page after changing the deploy mode to developer

fresh installed Magento 2.2.3 with sample data everything worked fine. until I changed the deploy: mode to the developer. now it is showing a blank page, there is no error only blank screen. refresh ...
0
votes
0answers
14 views

How to delete address particular user address id base api in Magento2?

I want to help, please. I created the API delete address particular user of the address_is base but the answer will not GET properly. I use the default magento2 api :/V1/addresses/{addressId} and ...
0
votes
0answers
24 views

Magento2 theme mini cart KO templating issue

I have issues with Magento2 theme mini cart KO templating issue. I have been trying to create a realtime mini cart dropdown in my header and having issue with its data rendering. I tried KO ...
0
votes
0answers
17 views

How to change hover backgroud of ves megamenu magento2

I am trying to change the style of vesmegamenu. The default hover background is black. as you can see in the picture. click effect I want to change it into white. If there any place I can change it ...
0
votes
1answer
15 views

Images not showing in admin panel as well as no log out option is there.

After completion of Magento 2 Community Edition , Images not showing in admin panel as well as no log out option is there.
0
votes
1answer
30 views

Installing Varnish on port 8080 breaks local environment

I am having trouble installing Varnish on my local environment, I amusing ubuntu and apache 2, I need to install this for Magento 2 purposes, so I followed this tutorial, https://www.digitalocean.com/...
0
votes
2answers
22 views

Magestore checkout page show error in magento 2

I am using latest Rewardspoint module for magento2 and it display me blank checkout page. When I checked the system.log then it show me this error; [2018-10-12 04:06:11] main.CRITICAL: Source class ...
0
votes
0answers
65 views

Upgrade Magento 2.1.7 > 2.2.4 - Unable to unserialize value

We can't get Magento 2.1.7 upgraded to 2.2.4. It gives the error "Unable to unserialize value, string is corrupted." After doing all the right things and then running: php bin/magento setup:upgrade ...
0
votes
1answer
24 views

magento2 megamenu cannot save after I modify the database

I am working with the magento2 ves magemenu. I create a magemenu in my local environment, and after that I migrate the tables which related to ves magemenu to the integration environment. But when I ...
-1
votes
1answer
21 views

Varnish causes user to log off right after the login

We setup two web servers with Apache 2.4, php 7.0.32 and Magento 2.1 with Varnish 4.x version and one MySQL database, Apache is listening on port 8080 and Varnish on port 80, web servers are able to ...
0
votes
0answers
18 views

Magento2 parent-child theme configuration and deployment issues

Having issues with site themes. I have a parent theme and a child theme. Several files/layouts are overriden in the child theme. This was all working fine up until yesterday or the day before (been ...
-2
votes
3answers
34 views

How to check Magento version in all versions including Magento1.x and Magento2.x?

I develop Magento extension for both Magento1.x and Magento2.x. I want to provide a source code for all version(Magento1.x, Magento2.x). I need to check Magento version in first part. How to check? ...