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
1answer
18 views

Activity Approve From super admin in magento 2

I am using Magento 2.2.6, and I need to create two admin user, in which one user change anything, it should be mandatory for another user will approve that. then only the changes will affect. I saw ...
0
votes
0answers
12 views

Show custom Credit/Debit card form on Payment Page

I am working on a project magento 2.2 and client to show only Credit/Debit card form (backend connected with paypal, means we can use Paypal Express Checkout) But client want not to show list or ...
0
votes
0answers
15 views

Showing Invalid Block Type after Disabling TemplateMonster_FilmSlider

I am working on a project Magento 2.2 and having TemplateMonster theme. I want to disable FilmSlider (which is available in theme) and wanted to show some video. I disabled that specific ...
2
votes
1answer
45 views

Magento 2 . How to hide 'Add to cart' button while not logged in

This is how I tried but its not working Bodak/DisableAddToCart/etc/adminhtml/system.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
33 views

Copy files from /vendor/* to another server? Mailchimp installation without composer

My shared hosting doesn't allow me to use composer install (php memory limit error). So I had to install to my clone magento2 on xampp server. http://wiki.ebizmarts.com/installation-guide-m4m2 below ...
0
votes
0answers
23 views

How to retrieve reward point amount for order using REST API in Magento 2

The Magento 2 (Enterprise) REST API for endpoint: /V1/orders/{entity_id} is missing the field containing the redeemed reward points for an order, called reward_currency_amount. I have checked the ...
0
votes
0answers
25 views

ERROR Magento\Framework\Exception\LocalizedException: Field title can't be empty in Model/Theme.php:337

I have this problem installing Magento2, is stopped at 51%. I checked: Permissions => chmod 777 Composer Installation DB Also I tried with those Solutions: magento setup upgrade error: field can&#...
0
votes
0answers
11 views

turing back to developer-mode error magento2

I don't know how to fix this and I have an idea what might caused it. Here is what happened I went on production mode. On production mode everything works fine. But when I try to go back to developer ...
0
votes
0answers
8 views

Show media image that is NOT base, small_image or thumb ? on product view page

Steps to reproduce : 1) go to admin, create a product and add two images and set roles as a) base image b) small image or thumbnail 2) now go to product page in frontend , reload the url. you can ...
0
votes
1answer
11 views

How to remove “Please enter a quantity greater than ##” when adding a product to cart

I need to remove the "Please enter a quantity greater than ##" message from the product detail page, what file do I have to edit to stop only this specific alert? Thanks! Gonzalo
0
votes
3answers
29 views

Magento 2.2.5: When deploying not coping css to pub/static

I have a Magento 2.2.5 based website and when I do a below command: php bin/magento setup:di:compile and then php bin/magento setup:static-content:deploy And then I look in the pub/static/frontend/...
0
votes
1answer
14 views

Cant access setup(or any files) of magento2 in browser

Installed lamp on centos 7. Moved files to /var/www/html/ When I chmod 655 magento directory I can see apache welcome screen, but when i try IP_addr/index.php gives: "You don't have permission to ...
0
votes
0answers
20 views

Magento 2: Good way to modify a custom attribute field dynamically from admin

I have added a custom customer attribute. I need to enable backend validation for this field in registration form, edit customer form, etc. It needs to be required and unique field. Or not, depending ...
0
votes
1answer
22 views

Magento suddendly messed up design

i'm in big trouble. I was working on my Magento theme and suddendly something wrong with up my website. i'm using bootstrap but it's not loading my version but the one of a plugin i installed. if i ...
0
votes
0answers
15 views

Allow store scope attributes in Configurable Products

Is there any way to remove the requirement that only global attributes can be used to create configurable products? I would like to use my store scope attributes to create configurable products. I ...
0
votes
0answers
10 views

Magento2 how to update order summary in checkout when choosing a different shipping method

I'd like to update shipping price and cart subtotal when choosing a different shipping method in the checkout page Any hint on involved files and the right approach would be very helpful
0
votes
1answer
32 views

Magento2: Got the issue

I have installed the Magento2-S3 extension for Aws S3 storage. I have got the issue below when I run the command php bin/magento s3:storage:export PHP Fatal error: Uncaught Error: Class 'Aws\S3\...
0
votes
0answers
9 views

Magento2 EE How to disabled reward points on checkout based on product type?

I want to disabled Reward Point use based on Product type at checkout. When a user added a Gift card product then I want to restrict to use Reward points. Any help would be appreciated. Thanks.
0
votes
0answers
6 views

Catalog Category Changes are Not reflected in Overidden File

I am using the barbour theme and i have created a child theme for the same.The issue i am having is that by default for category pages,the products are shown with a sidebar so i have removed that and ...
0
votes
1answer
14 views

Magento 2 Programmatically stop decreasing stock qty while placing an order

I don't want to decrease stock qty when order is placed. I know this can be done in admin by setting decrease stock to NO. But I want to change the update stock logic, so I need to know where can I ...
0
votes
2answers
16 views

How To Pass A Custom Price Value To Product List Price Renderer In Magento 2?

We have come across an issue that I'm trying to solve. In order to overcome this bug https://github.com/magento/magento2/issues/10009 where discounted prices are not applied per customer group, I've ...
1
vote
1answer
45 views
+100

How to implement master/slave database configuration in Magento 2 community edition?

As we know master/slave or split database configuration is possible with Magento 2 enterprise edition and not with the community edition. How we can implement master/slave or split database ...
0
votes
0answers
12 views

magento 2 how to get custom name in view order(front end)

How to display custom name in view order(front end) where I am getting the name with prefix and i need to display custom name without prefix and other place in website i need to display name with ...
0
votes
2answers
19 views

how to get productId in sign up or sign in page when full page cache on in magento2?

I want to redirect page if customer come from product page ->sign up page i want redirect them after sign up on product page. But i am not getting product id on that page if full page cache is on in ...
1
vote
3answers
26 views

Magento 2 follows MVVM architecture or MVC architechure?

I am understanding the logic behind working in separate folders in Magento 2 and came across bundle of articles talking about same thing in different ways. Some explain MVC logic behind it and some ...
0
votes
0answers
10 views

Unique coupon code for customer magento 2

I am working on magento 2. As per requirement I need to create coupon code which should work for specific customer. For Example : I have 100 customer then I need to send them a mail with unique ...
0
votes
0answers
18 views

Magenot 2 : Mixin JS should only call in custom module page

I used mixin JS format for swatch render in my custom module. => requirejs-config.js /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ var config = { ...
0
votes
0answers
7 views

Create attribute with frontend input Magento2

Is it possible by coding or any extension to allow user to enter input using attributes. So just like Custom options I want to have the ability to input data on frontend. The reason I want to have it ...
0
votes
1answer
26 views

How to update cart total on payment page dynamically in Magento 2

How can I update cart total on payment page in Magento 2, I tried using jQuery and PHP both, but I am unable to update cart total.Can anyone please direct me in right direction.
1
vote
1answer
14 views

Magento 2 | Hide zipp fleld in Cart

I tried to hide the Postcode (zipp) field in the cart in the block shipping costs but nothing is working. The name of the DIV is 'shippingAddress.postcode'. Hide with CSS is not working and also some ...
0
votes
0answers
9 views

how can i change the value of state column in code(sales_order) table from new to processing ?

Hi i have made a relation between two order statuses in my magento 2.2 system , the first status of the order is "pending" and the second is "processing" , i goto (stores->settings->order statuses) ...
0
votes
0answers
7 views

Magento 2: Custom input field values not saved in product form

I have to add a more complex input to the product form. For this, I have added the following UI configuration <fieldset name="fieldset_name"> <argument name="data" xsi:type="array"> ...
0
votes
1answer
12 views

Magento 2 How should i configurate TAX?

i need configuration my tax . I need this: Product Price (without TAX) = 322,63 PLN Final Product Price = 322,63 PLN + 23% VAT = 419 PLN How should I configuration my tax in M2 configuration panel ...
0
votes
0answers
9 views

Query string to add product and apply promo code: M2

I currently have set up a query string that automatically adds a set amount of products to the users cart when they click a specific button. I already have everything set with with the FormKey() and ...
2
votes
0answers
22 views

Magento CE 2.2.x - Unable to set attribute set for new product

I've created a CSV for all the attributes and sets that need to be added and a script to import them. After doing so I'm unable to load the attribute sets in the admin while creating a new product. ...
0
votes
0answers
12 views

How to connect AWS S3 bucket images to my website

I have installed the extension https://github.com/thaiphan/magento2-s3/ for connect to S3 bucket. When I proceed to sync button then images not uploaded proper format on AWS S3. Please check the ...
1
vote
0answers
9 views

Magento 2. What is the recommend way to disable a core cron job?

Magento comes with it's own cron jobs. What is the recommended/cleanest way to disable on of such crons? I could do a rewrite of the worker class but I'm guessing there is an easier way. Any pointers ...
1
vote
0answers
30 views

Run native csv import product magento 2, no way to set csv file in custom module

I followed steps in this topic Magento 2 run native product csv import programtically, but it didn't work. When I try to import product through a CSV file in back-office, the check data is correct and ...
0
votes
0answers
8 views

control the visibility of add to cart according to group and their catalog magento 2

I have created two catalogs and two group and each group had his own catalog so when he connects he can just see added to the cart of his catalog and not the other catalog. Is there a sol of creating ...
2
votes
0answers
8 views

How can I contribute and add a new feature in Magento 2 via github?

I want the Magento 2 \Magento\Framework\HTTP\Client\Curl class to handle all http methods. I have added as a feature request in magento/community-feature repo on github. How can I add the feature ...
0
votes
1answer
13 views

magento 2 migrating from local to live site. what is the host setting

i am migrating from my localhost to a live site. My question is, in the setting within the : app\etc\env.php what is the setting for 'host' . on the localhost the setting is localhost. but what ...
0
votes
1answer
28 views

Sorry, you need permissions to view this content

I have created a admin user by below command. php bin/magento admin:user:create --admin-user="admin1" --admin-password="admin@123" --admin-email="admin1@gmail.com" --admin-firstname="fname" --admin-...
0
votes
0answers
56 views

“Your session has expired” - Magento 2.2.7 fresh install

I've started out with Magento 2. Everything's working fine, except for Magento's formKeyValidator which isn't able to validate the incoming request. It's happening on the frontend. While adding a ...
0
votes
1answer
19 views

How to make some products shippable only to one city at checkout page

I need some products like x, y, z shippable to only one city(A) at the checkout page. Based on the selected shipping address how can I disable shipping those products(x, y, z) to all other cities ...
0
votes
3answers
37 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 a new function which returns module status enable/disable, which is defined in the model class. I need ...
0
votes
0answers
15 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
2answers
42 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> require(['jquery','Magento_Customer/js/customer-data','domReady!'], function ($, ...
0
votes
0answers
8 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
24 views

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

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

“Cannot resolve symbol" in default.xml

“Cannot resolve symbol" error showing in default.xml how can i solve it?