Adding name attributes and saving in the database for easy use everywhere #187
devmansurov
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I will now look at your json file structure with product data to save them to the database. There I found something like this product with attributes:
At the current moment, we will use the attributes of our products in approximately the same way:
As you can see from the code above, we write the name of the attribute ourselves in a static way. Why not do it dynamically and output the translated attribute name from the database like this:
Generally product attributes in json file looks like this in my mind:
This will help us a lot to implement a dynamic shop frontend.
Beta Was this translation helpful? Give feedback.
All reactions