Async operations on magento : how to speed this up ?

Hello ! I’m currently using a script to add some products / information through the bulk api (asnync operations).

It’s working pretty well but it’s honestly slow . I’m using a magento 2.4.2 on Kubernetes and I have a cron pod that is always running “php bin/magento queue:consumers:start async.operations.all”, in order to consume the queues content as quick as possible.

The addition of tasks in the queues goes really fast but. currently, I can process (get the item in the queue and add this to Magento) something like 2 products in 10 seconds ! too slow…

I’m using a rabbitmq ( bitnami/rabbitmq:3.10.8-debian-11-r0) pod that manages the queues. The monitoring of this rabbitmq (and the cron one) instance doesn’t seem to indicate that the CPU / RAM is too weak.

Do you have any clue / idea that could help to improve the performances ? Have you ever faced something like this ?

Thanks for now 🙂

submitted by /u/No-Appointment-3446
[link] [comments]

Recommendation for SSO authenticating our Magento customers to a 3rd party ERP

Hi, we’re planning to split out our ERP and order fulfilment out of Magento, but this leaves us with a puzzle – If the 3rd party ERP has all the latest info about a customer’s order history and shipments, how can we authenticate them to see this? We don’t want to push all order edits back to Magento, so we will show their order details from the ERP in a customer portal in an iframe on the Magento site, but we need the login to be the same. We also need customers to be able to log in to Magento during checkout to pull their address book.

Is it advisable for us to set up Magento as an identity provider somehow and get the ERP to link into that, or would you recommend using a 3rd party SAML service like Auth0 and getting both Magento and ERP to use that for authentication? I’ve searched around, but can’t find many obvious solutions from well known companies. I guess it’s a bit of a niche requirement.

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

webscale (prior magemojo) anyone else having issues?

Everytime I change something in their control panel like enable or disable cloudflare, autoscaling, or varnish the site goes down with 502 errors. I have to email support to fix it even though the Magento 2 setup is all fine.

Right now even their support portal is down. I’m thinking about moving to Nexcess or Cloudways

Anybody else having issues? Also their support took 1 – 2 hours to fix it.

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

Retrieve custom fields on addresses in controller.

I’m working through the official Add a New Field in the Address Form tutorial.

That tutorial suggests using Extension Attributes to store the fields’ data, however it seems that Extension Attributes are not supported in the open source version of Magento. Thus, I’d like to read that data back in the controller and store it.

I’ve got a Preference configured for the ShippingInformationManagement class and it properly loads. However, the $addressInformation does not have the submitted fields, even though I do see them in the request. Here I’ve copied the request as curl from the Chrome dev tools, the submission has custom_field on the customAttributes element:

--data-raw '{"cartId":"kboHQydnW0jQFt1CYq7fpDVpwW3bzZqZ","billingAddress":{"countryId":"IL","region":"","street":["32432432432"],"company":"","telephone":"32423432432432","postcode":"22333","city":"wewerew","firstname":"New Customer","lastname":"Cust","customAttributes":[{"attribute_code":"custom_field","value":"FOOBAR"}],"saveInAddressBook":null},"paymentMethod":{"method":"checkmo","po_number":null,"additional_data":null},"email":"[email protected]"}'  

This code is getting the address:

public function saveAddressInformation($cartId, ShippingInformationInterface $addressInformation) : PaymentDetailsInterface { $address = $addressInformation->getShippingAddress(); } 

But the $address object has only this _data:

country_id = "IL" region = "" street = "32432432432" company = "" telephone = "32423432432432" postcode = "22333" city = "wewerew" firstname = "New Customer" lastname = "Cust" custom_attributes = [] 

Now that $address variable also has a customAttributeFactory property, however I’ve gone all through it with Xdebug and it does not seem do contain the custom_field data anywhere.

Based upon the “Access the value of the custom field on server side” section of the official tutorial, I’ve tried all sorts of ways to get the data out of the $address variable, and out of the AddressInterface and ShippingInformationInterface interfaces. (I’ve tried both, because the tutorial suggests one but implements the other, and the AddressInterface does not extend ShippingInformationInterface, neither does ShippingInformationInterface extend AddressInterface, however both extend MagentoFrameworkApiCustomAttributesDataInterface).

$address->getExtensionAttributes()->getCustomFields(); // Throws error $address->getCustomFields(); // Null $address->getCustomField(); // Null $ai = ObjectManager::getInstance()->get(MagentoQuoteApiDataAddressInterface::class)->getExtensionAttributes(); $cf_text = $ai->getCustomfield(); // Null $sii = ObjectManager::getInstance()->get(MagentoCheckoutApiDataShippingInformationInterface::class)->getExtensionAttributes(); $cf_code = $sii->getCustomfield(); // Error: Undefined method getCustomfield $bii = ObjectManager::getInstance()->get(MagentoCheckoutApiDataBillingInformationInterface::class)->getExtensionAttributes(); // Actually, this interface doesn't exist, but I tried! 

So how do I get the values of the custom fields?

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

Product Resized Images Not Generating

M2.4.4

After clicking “Clear Product Image Cache” in an attempt to resolve some product image issues, it turns out every single product photo on our store went kaput. Ok, sure, makes sense.

But doesn’t Magento automatically generate these resized images on page load? Even still, shouldn’t I see my placeholder image instead of… well, nothing?

Is my only option to run catalog:image:resize? This command by itself takes hours to finish. This does not seem the least bit ideal. I’m hoping to find a solution like… now?

Is there anything I can look into to figure this one out? Any possible bugs that I’m unaware of?

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

Automatic On Sale Page

I have a page that has all of the items that are currently on sale, but the problem is that it shows every item and not like pages of 20 like the normal categories. It is the Porto Theme’s sale grid.

So my question is, how do I get this page to be like the normal categories and have multiple pages?

Or how do I make my own category page that will just have all the items currently on sale and just updates itself without me having to put items into the category and then take them out once off sale?

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

Blog Extension Suggestion – Security 2.4.4

We are moving to 2.4.4 and are currently hosting our blog separately from the ecomm site itself. We aren’t new to Magneto 2, but have security concerns hosting a blog via an extension. We are using the Magento Cloud Commerce B2B.

Discussing hosting with a consultant, they pointed out there may be some legacy issues with hosting a blog under the Magento install, other consultants have stated this is no longer a problem. I am hoping for some clear pros and cons of bringing our blog from the current subdomain (hosted elsewhere) into the Adobe/Magento fold. Our overall goal is to use the blog as intended to squeeze as much SEO synergy between the site and blog as possible.

What should I look out for, any suggestions on security, best practice?

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

Downloadable items as a configurable option

I posted this on /r/magento2 and haven’t received any responses, so I’m posting it here as well.

We have a need for a user to choose from a simple physical product or a downloadable product (each with a cost/ price associated) via a single configurable product. Apparently, if you publish a simple downloadable product, there is no qty box. If it’s part of a configurable, the qty box appears. This seems like a Magento bug, but not 100% sure. We’re using a BSS commerce extension on the simple product to make the simple product have a dropdown (so the customer can choose between (for instance) 10, 20, 30, 40 units.

Have any of you come up with a good workaround for using simple and downloadable products as part of a configurable and not have the qty box appear on when the downloadable is selected?

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

HELP! Resource Library

Our e-commerce business has thousands of resources that we want to centralize in one place other than on product pages, blog posts, random page blocks, or even in the footer. I need to be able to organize/tag each my resources by resource type, brand, product, etc.

Think of the resources as drawings, how to’s, literature, compliance standards, etc. File types such as PDFs, CAD drawings, and potentially video, links to informational blog posts and potentially video.

Has anyone done this before that can provide me with an example? Is this custom DEV or is there an extension that does just this?

Any help would be appreciated. I am a marketer and not a developer and need to understand if there are tools out there that I can utilize with slight customization than having to go down a more expensive route.

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