Life has been a bit stressful lately, and I find myself looking for strength. We’re trying to do too much at work at once. Things are delayed. At home, we have a 1-year-old and lots of things going on. Juggling commitments and dealing with family events. Insanity was growing.
One of the most challenging parts of Magento 2 development is how new it is, and how abruptly it hit the market. There were beta versions, and talk of it being released, but I think the general feel from the community was it was never going to happen. Everyone (mostly) continued focusing on 1.x. This was the inspiration of my tutorial posts.
I’ve come to figure out that sending over multiple products and categories does NOT work. When you do that, you end up with only the last one being created/updated. I’m still researching if this is even possible, and have even reached out to the community, but with no luck.
I have omitted the multiple product/category send paragraphs from my previous posts. I really want to apologize for this. It was an unfortunate oversight.
When I figure this out, or find a better solution (such as extending Magento or something), I will most likely make that another “Part” of this tutorial series. In fact, if anyone solves this, please comment, or send me a link to a post and I’ll give you a write up, credit, and link (I won’t steal content).
We’re running into a holiday weekend, I’ll have Part 5 next week!
One of the things I found to be a challenge was creating over 200 categories. The company I work for has a lot of different brands, categories, and a very large sku catalog. I didn’t want to farm this out and take money away from development, so I decided to do it myself. After assembling my CSV, I was ready to go to work with the Category REST API.
Updating your products is about the same process as creating them. You’re going to utilize the same API (/rest/V1/products).
The way we approach putting products up on our web site is to stock everything with a qty 0, and then the current price for the day its pushed over to the web site. From there our sales and marketing team will do daily updates of the current pricing and send over an update thru the REST API. Additionally, we have a cron setup that pulls inventory files and updates qty levels every few hours. This is where my talk about product updates and qty/price comes into play.
Adding a product through the Magento 2 REST API is actually quite simple. They have all the parameters and attributes and other things that you’d want to set in the JSON request. You can even setup an image or video in media gallery.
I launched a new Magento 2 project back in March. Our current web site was on a hosted shopping cart platform that had absolutely no flexibility outside of the theme. We needed something we could customize and interface with our custom-built ERP. Having a background in Magento, and the Magento 2 REST API looking attractive, we decided to go that direction.
This has been a couple weeks coming. It wasn’t that I wanted to put this off, or neglect putting down my thoughts on my friend, I just wanted to be sure I was ready. What good would it be to write out of sadness, or mourning, and forget all the good memories that we shared?
A.J. Joseph was born on March 6, 1999 in Arkansas. Me and Michele adopted him at Petland in Novi on July 4, 1999. We often joked that he was on sale and we bought him with our credit card. We put no thought into getting him. We just knew we wanted a Dachshund. When we walked into the store, I saw just one, and said to Michele “Hurry up and go tell her.”
After that, they put the 3 of us into a caged area to meet, and the rest was history. Me, Michele, and her brother Alex took him home from the mall that day, and later named him A.J. I could tell we had gotten ourselves a cool dog right from the beginning, I just didn’t realize we were adopting a legend.
- November 2020
- September 2020
- August 2020
- May 2020
- November 2019
- September 2019
- August 2019
- January 2019
- July 2018
- April 2018
- March 2018
- February 2018
- January 2018
- August 2017
- June 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- August 2016
- July 2016
- June 2016
- November 2013