My manager and me are working on building a new eCommerce website for the company that we work for. We purchased a theme for Drupal 8 and everything seems to work fine until we get to the part of setting up the Commerce pages. We setup the product attributes" first and things go haywire from there and we need major assistance. Here is the error we get when we start working on the Commerce portion of the site using the Commerce module.
I know that this is probably a dumb question, but... where should I put the code to create a node programmatically?
I've found many snippets to create a node from code, for example: https://gist.github.com/facine/35bb291811c146b6fc9e
But where should I put that code? In a custom module?
In D7 I could create a PHP script, bootstrap Drupal and then just execute the script... what about D8?
Is there a way to change or add class/id tags to items in Drupal? For instance, I want to change a certain set of images but the only class listed on all images is "img-responsive."
I'm very new to Drupal and trying to teach myself everything in a very limited amount of time. So if you answer, please provide clear directions/provide screenshots that a newbie could understand! I really appreciate any guidance or direction to my possible next steps.