I am using drupal commerce. I created my products and made my exposed filters ordered by taxonomies that I had recently made. Now I want to link those filters in a specific hierarchy, each product had a specific types. For example :
printer has three types,scanner has four types .
If user selects printer in the product commerce type, the exposed filter for type shows the three types related to printer. I found a module called views dependent filter that may do this. Any suggestions to help me? Thank you
You may also want to look into https://www.drupal.org/project/facetapi , If you are going multi level deep it is very useful
Related
on a project that i'm developing I generate taxononmies (product attributes) dynamically based on a csv input file got by an ERP system.
I receive 2 files for 2 languages, the first one create everything (products, taxononmies, terms and so on), the second one translate everythings on the 2° language.
No problem for any of those entities except for taxonomies. I found many many post about translate terms, products but nothing about translate a taxonomy NAME (NOT TERMS).
What is the correct way to translate that information in the proper way?
My last option is to do direct query on the SQL database but of course this is not the elegant way to do that.
Thank you.
I'm facing a common scenario in the creation and the managing of a website that I'm still surprised I'm having difficulties in finding a good solution using Wordpress.
Let's say that I have a Wordpress website featuring food recipes. I have custom post types such as recipes and authors (of the recipes).
With the help of Advanced Custom Field plugin and Toolset plugin, it has been very easy to create the two custom post types and creating their custom fields together with the relationships between the objects.
Now, let's say that in multiple locations of the website I want to show a section called Spotlight Recipes where I show 3 featured recipes that I manually change every week.
What I would like to have in this situation, is a new item in the backend sidebar menu called Website Settings for example, that will allow me to manually choose the three recipes that will be featured in the section described above.
Let's say that I also want to display a section called Authors of the month and I always want to be able to manually choose the 5 authors that will be shown. It would be great if these could be also chosen inside the "Website Settings" backend page.
I think this is a very common scenario but I can't find a solution that I like. So I'm wondering: how websites using Wordpress solve this? Should I create a new custom post type called "MySettings" and create one instance of this, creating all its custom fields, and use it as a "singleton settings object"? It doesn't really appeal to me.
The best setup would be to add a new taxonomy for your Recipe custom post type. Then create a new category in that taxonomy named "Spotlight recipes".
You can add a custom taxonomy for users also.
There could be several scenarios for limiting the number of recipes shown. If you are declaring a recipe as recipe of the week as you add it then all you would need in your widget query is 3 parameters:
1) Set category to spotlight category of new taxonomy
2) Limit posts to 3 or 4
3) Sort by most recent
This way only the most recent recipes are shown at all times. It will also let you keep an archive of recipes of the week.
I need to create a way for users to enter recipe information into a wordpress page that can be displayed globally, on their buddypress user page, import/export based on a defined xml standard and accept reviews for each recipe. In one example the user would be able to enter more than one type of ingredient (i.e. tomatoes) with each item having the same level of detailed fields yet when exported to xml, each tomato would have its own <tomato> tags. Hope that makes sense.
My question is should I build a custom plugin or can custom post types work? If a custom plugin would provide the best solution, can you suggest reading material that would put me on the best path to create such a solution?
In that case, custom post types would work just fine. The Types plugin can automate a good part of it, including the admin interface to edit your recipes.
You could define a new taxonomy for ingredients.
I need to build a custom tv in modx that will all a user to select a image, a title and a date.
Can't seem to find any help other than the docs with although detailed don't answer my problem.
Anyone done this before and are able to advise me further
Cheers
I'm not 100% sure, if this is what you're trying to archieve, but I think multiItemsGridTv (MIGX) for modX revolution is what you want.
From the docs:
MIGX (multiItemsGridTv for modx) is a custom-tv-input-type for adding
multiple items into one TV-value and a snippet for listing this items
on your frontend.
It has a configurable grid and a configurable tabbed
editor-window to add and edit items. Each item can have multiple
fields.
For each field you can use another tv-input-type.
Essentially, you can make up a set of multiple different template variables (including images), that always belong together. If you then assign your MIGX tv to a template, you can enter as much of these sets as needed per resource.
You can download it via package management or from the modX Extras Repository.
I have a website which is up and running on drupal. Its product based website. I developed by creating my own tables and writing php code using php filters. I never used module concepts. Since the site is running well, so i am thinking to move to module concept. so wanted some help here, like how to do it.. i have gone through module development concepts also.
requirement.
1. Admin should be able to create new products like Mobile, Camera.
2. He should be able to define product properties and properties for which user will rate on.
3. Admin/ second admin should be able to create new sub products under products like mobile - nokia 8850 , nokia 9980 where he enters details of product properties also.
4. A listing page for all the sun products under main product. and from listing page we go to to main sub product page where user rates the product.
My confusion : should i create a new table or drupal takes care of all the requirements. and how do i start with it.
update : clear picture of requirement
ex :
1. 1st i add a product "MOBILES"
2. Then i add properties for this main product.
3. Then i start adding sub products under MOBILES i.e nokia 1100, samsumg 2200 and etc.
while adding sub products, in this page it gives me a text box for all the propeties i defined while creating the main product MOBILES . So is this possible using CCK.
You're right to consider using modules and following the "Drupal way". Use CCK + Views and Drupal will take care of the table maintenance and querying for you.
As already mentioned, you will need to get familiar with the CCK module. This module will allow you to create new "content types", which in your example would be the different product types and their attributes. Here is a good overview video on CCK. With CCK you can define new content types and Drupal will create the basic content creation forms for you and hide spare you from all the database details when you're working with it.
The Views module is essentially a query builder and will allow you to create views of your content. There are all sorts of related modules that can help you render your data as charts, grids, lists, slideshows, tables, etc.
There is a slight learning curve but once you get past it you'll be able to build new things pretty quick.
Update: Just another thought, if you are really needing to create some kind of classification system you should look at Taxonomies.
It sounds like you could do all of this with modules, without needing to do any php coding at all. Check out (if you haven't already) cck, views, and fivestar.
In response to your update, sounds like CCK and Node Hierarchy should do everything you need.