To whoever has used Saleor with React. There is very little resources for various implementations so I thought I'd ask here.
What is the best way to add colors to products for saleor dashboard? And if possible is there a short example anywhere of how that can be used in storefront react application?
For example I got product with "Size" and "Color" Variant Attributes, and "Delivery" and "Returns" Product Attributes. Let's say I want to have a product that has 2 sizes and 4 colors. Do I have to create all 8 variants (each color for each size) or is there a better way of doing it?
Because right now what I'm doing is I have 8 variants each size for each color and it's very difficult to manipulate the data that I need in the storefront which is using React.
Essentially what I want to accomplish is have the 2 sizes, and each size has the 4 colors. But the way I'm doing it with variant attributes requires so much data manipulation in the front-end that I'm thinking it's not the right way to do it.
Any suggestions/pointers are appreciated
It makes sense to add all variants (color × size) since each one of them needs to have a unique identifier SKU which acts as a unique identity of the product (typically a bar code)
Related
I am currently trying to implement a web tool with a capable web developer, but we are stuck on one functionality.
It's about draggable nested lists, which should be grouped and sorted automatically according to different attributes.
The "draggable" is not the problem but the automatic creation of parent & child nested lists and the automatic distribution of the products into the corresponding lists.
For a better understanding I have made a
Figma-Prototype, maybe you will understand what I mean.
I have a database of products with attributes like "producer", "product category", "sub-category", "country" and "region". (However the example is just a table, in reality we made the DB in MongoDB)
I want the user to be able to change the order (drag&drop) and also create new lists(Nested-List Parents & Childrens). However, I would like to spare the Users from having to start at 0 and create and fill all lists manually, for example, when it its just about grouping and sorting "only" by product category.
Is this even Possible? We are working with React (MERT-stack).
Thank you!!
We havent an idea where to start, tbh.
For content types, I am able to translate the content's fields in drupal, but for the taxonomies term's fields, its only allow to translate the title and body fields.I added two more fields in taxonomy's term. Please guide me.
You need to change the vocabulary setting a bit and then you will be able to do it.
You need to select the option "Translate. Different terms will be allowed for each language and they can be translated." (highlighted in above image) and then it will allow you to use a different term in each language with the translated terms field values. We are using this and its working fine. Though, other settings won't allow you to achieve what are you trying to do.
Hope that help!
I am working on a project with drupal 7. My drupal experience is limited and Im a bit stuck on how to achieve a good structure.
The site will have products like wine, sherries and spirits. Each of these product types will have subcategories. (example: like red / white wine) Within these subcategories there will be certain brands of wines.
Since the website is focussing only on displaying the products and not selling them, I really do not want to use any ecommerce software, or modules.
Preferably I would like the products to be a content type. There is a little catch to it. All categories, so in the examples above; wines, sherries, spirits BUT ALSO red / white wines should have a description and a image.
Can anyone shed some light on how to create this in drupal 7. I have googled a lot but im not sure what the right approach would be. Thanks!
I think you could create the different pages using the taxonomy structure and views. You would set up a custom content type of products, then for each product put in the proper tags. This should group together the different categories for you.
I've presented them all as a list in 3 columns (see here: http://focallocal.org/action/ ) but i need to double the amount there now and it is going to look terrible.
what we really need is filters to cross reference and organize them as the number will grow to over 100 soon. Any suggestions for managing and organizing the large amount of content?
It doesn't have to be on one page as long as i can put a short intro and photo to each page
I suggest making a separate post for each of your project descriptions with a custom post type called "project" or similar to group them all (and so it doesn't affect any ordinary blog posts.)
How to add a custom post type
Next, you need to "flush" the permalinks (Settings > Permalinks, click Save Changes.)
The Project posts can be split into categories or you can add tags (less formal) and each post can have a featured image.
If you called your post type "project", you will be able to view an index of all of them at http://example.com/project, which, taking the TwentyFourteen theme as an example, will use the archive.php file as a template (see the Template Hierarchy.)
I have 4 forms (beside the main form) that I would like to store in an array and called randomly. The forms contain web pages with YouTube video clips that autoplay. When I use them individually in the code they work as expected. I am having trouble getting them to play from an array.
Consider the following approaches:
If the four forms are identical except for the specific YouTube URL, consider consolidating them to a single form. You can send the URL to the new form via the constructor. An array of strings is much easier to create.
You could generate a random integer (between 1 and 4). Use as Select myRandomInteger statement with a Case to initialize and show the form for that integer value (index).
Finally, if you post the non working code, perhaps someone will have a more specific solution for you.