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
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
2answers
65 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
29 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
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
8 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
25 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
61 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
39 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
25 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?
0
votes
1answer
15 views

jquery plugin error “Uncaught TypeError: $(…).[plugin function] is not a function”

I am using Magento 2.2.6 and I am trying to include a jquery plugin (stickybits, in this case). The jquery plugin file is successfully called in my requirejs-config.js file and I can see that the file ...
2
votes
1answer
70 views

Slow transaction on /customer/section/load Magento v2.2.5 CE

I was recently seeing slow response times on our Magento 2.2.5 CE installation, so we installed NewRelic to monitor some site metrics. One thing that instantly stood out to me was the /customer/...
0
votes
0answers
22 views

Magento 2 How to hide price of product and add to cart button and Show a custom Link if not logged in [duplicate]

I want to Hide the Price of the product and also add to cart button if the user is not logged in and want to give a link in place of Add to cart button to Login. Thanks in Advance :)
1
vote
1answer
22 views

Admin no display

Using - windows 10 OS - Magento-CE-2.3.0-2018-11-27-10-23-08 - xampp-win32-7.2.12-0-VC15-installer I have try mozilla firefox, Chrome, explorer and incognito but admin page will not display any ...
0
votes
0answers
7 views

Magento 2 performance issue [closed]

We are seeing a huge drop in performance every 5 minutes. We've checked our crons and made adjustments but are still seeing a drop in performance. Thoughts?
0
votes
1answer
24 views

Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint

I have a custom module with a defined route as: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd"> <...
0
votes
1answer
20 views

Magento 2 UI Form datepicker, default date and strange behaviour

I created a UI Form with a datepicker field. In the XML I set required-entry to false. It keeps returning 'This is a required field'. In the XML the definition is thus: <field name="begin_datum"&...
0
votes
2answers
23 views

Create Coupon/Price rule for first 10 Customers .(Magento 2)

I want to create a price rule in magento 2, and want that to be active only for the first 10 Customers . Is it possible to achieve that ? Thank You !
0
votes
0answers
21 views

Magento 2 CMS 404 error

we are in the process of updating our humble little Magento 1.7 shop to the latest version 2.3 It is a multi-language store and we have succesfully migrated all customers and all categories and ...
0
votes
1answer
16 views

M2.3 - Creating multiple attribute options at once generates error

I am trying to add multiple attribute options to an already existing attribute. During the loop, it will create the first option, and then throw an error. Fatal error: Uncaught TypeError: Argument ...
0
votes
0answers
8 views

Restrict add to cart visibility according to group magento 2

I have two catalog and two group when a customer that belong to group 1 is connecting he can just see add to cart of catalog 1 and same for a customer that belong to group 2 he can just see add to ...
0
votes
2answers
34 views

Magento 2 in frontend can not able to get the customer custom attribute value

I have created a custom customer attribute, and while create and update customer from backend the value will be saved in Database. But while do the same thing from front-end the value is not able to ...
0
votes
1answer
22 views

Redirecting to home page

We have magento 2.2.6 site running.Recently the site was migrated from one server to another server,we are getting following issue: when we login into admin and leave that page as it is for some time ...
1
vote
1answer
26 views

Magento 2 : Custom Report with Two Table Join issue

I am facing issue with a custom report with multiple table join. I have created a custom collection into _initSelect function. While I am print this query and run manually on a database server its ...
0
votes
0answers
10 views

Magento2 seprate Currency symbol and price of products [closed]

I want to separate the div of currency symbol and price how I can do that in magento2.
0
votes
1answer
12 views

Magento 2 Commerce. Is there a cron that runs rabbitmq consumers?

When cron runs I see a log that informs me that queue consumers failed to start. Is there a cron that runs rabbitmq consumers?