HowTo: Update Product Attributes in Magento 2
I once had to update a single attribute on thousands of products from a data import. My first instinct was to load each product with the repository, set the value and save it, and it worked… …
Tag
23 posts tagged Magento 2
Clear tagI once had to update a single attribute on thousands of products from a data import. My first instinct was to load each product with the repository, set the value and save it, and it worked… …
In the previous post I showed how to send an email programmatically, but I left one piece out on purpose, the template. Here is how I register a custom email template that ships with the …
Sooner or later every project needs to send an email that Magento does not send out of the box, a notification to an admin, a reminder to a customer, a report to the warehouse. The good news …
This week I had the task to build an alternative success page for customers who pay with a specific payment method. If the customers select Bank Transfer method they should be redirected to …
A while ago I needed to run a task automatically every night to clean up some old rows from a custom table. The obvious tool for the job is a cron job, but if you come from Magento 1 the …