How can I add a custom filter in products query filter input with custom code for the apply in magento 2

Hello every one I develop a headless magento website and I want to ask if there is a way to add a custom filter method to add on the Product filter input in graphql. For example I want the filter to apply if a product’s sku is on a custom db table. I already tried to add it via graphql di xml but it didn’t work at all.

submitted by /u/echarissopoulos
[link] [comments]

What to focus on as a junior in a Magento 2 project?

Graduated from a Bootcamp (the usual react andy stuff) 5 weeks ago and put in a Magento 2 project as a frontend developer.

Currently, i don’t have too many tasks to do and I’m learning php, oop and mysql development whenever i don’t have any tickets left to do.

I’m wondering if learning backend development is a smart move or if you would advise me to focus on something else?

My intention is to be useful as fast as possible, however I’m unsure if i should focus on frontend or something else? Magento frontend development seems very outdated (extensive use of knockout.js and XML files), unusual and overly complex .

What would you do in my situation to make the most of this time?

submitted by /u/ivelkoch
[link] [comments]

Memory requirements for Magento 2

I am trying to install Magento 2 locally on my laptop which has Ubuntu running on it. I have read the requirements for installation and it says 2 GB memory.

But unfortunately that doesn’t seem to be working for me. I tried to install via Mark Shust’s docker image solution but my RAM is only 8 GB and the required memory for this image is 6 GB. If I allocate 6GBs to docker than my Ubuntu desktop stops working.

I tried to follow the official docs but if I run elasticsearch after installation then my system crashes and the system monitor shows a sudden spike in memory usage (6 GBs in total)

So I would like to ask, what is the actual memory requirements for running Magento 2 locally for development purposes (Including all the dependencies)?

submitted by /u/Trainee_Ninja
[link] [comments]

Report for sales?

Hi guys

I’ve started a new job and am not receiving much training unfortunately.

How do I gather a report of all sales by customers?

Our site allows customers to sell products through our brokerage section. But I don’t know how to run a report for only the products which our customers sold through us.

Anyone have any ideas?

Edit: no worries guys. My boss says he’ll do it himself tonight. Thanks a bunch

submitted by /u/PinkVoyd
[link] [comments]

Fighting the “Undefined array key instance in ArgumentsResolver.php” problem

While upgrading one of our merchant’s production instances, I run into a problem during setup:di:compile. The process failed with the error “Undefined array key instance in ArgumentsResolver.php”. I outlined the steps I took to debug and fix the issue in my latest blog post: https://blog.bitexpert.de/blog/magento_undefined_key_arguments_resolver

submitted by /u/shochdoerfer
[link] [comments]

Best way to Implement WebP images?

Hi

Our store is on version Magento 2.3.5. I’m trying to reduce page load times. Currently all images are either jpg or png, and we compress them as much as possible, but still some slow load times which is largely caused by image size.

As far as I know there’s no way to upload WebP images to Magento 2, but there are some extensions which seem to allow conversion on png or jpg to WebP once uploaded. Anyone know if these actually work, or if there is an alternative method to using WebP on magento 2?

We use Porto theme

thanks

John

submitted by /u/ivfdad84
[link] [comments]

Seeking help

Hey, i would like to ask for help. Im new to magento 2, and finding quite the issues in grasping my way around it. If anyone could help me out with advices or consulting i would be forever grateful.

I really want to learn it but feel really lost with module theming….

submitted by /u/kira00rb
[link] [comments]

Introducing: Maggie Bolt, an expert Magento tutor powered by GPT-4

Based on GPT-4, Maggie is a highly-intelligent AI bot that knows all about the lessons at M.academy, break down super confusing topics into simple & easy to understand concepts, can personally quiz you on the hard parts, and be your personal 1:1 tutor.

And… she also speaks over 70 languages and is available 24/7!

More info at https://www.youtube.com/watch?v=ZxhPmEpsYW4

If you have any questions about Maggie, lmk 😄

submitted by /u/markshust
[link] [comments]

Multiplied Price of Product In Minicart and Checkout Page

I’m a noob. Working on Magento 2.4.5. I have a question regarding a problem I’m working on right now.

I have been trying to list reordered bundled products on a page and have been trying to implement a multiselect add to cart option. So there are times a person would reorder same product witjh same bundle options and bundle quantity with different product quantity more than once.

The problem is if I select the same bundle product with same product Id and sku and add it to cart. It results in multiplication of base price in minicart and cart.

English is not my first language so I guess it is difficult to understand my question but I would like to add the problem I’m facing in a jpg file.

https://imgur.com/a/LpDIJfH

submitted by /u/LifeofPlight
[link] [comments]