I am looking for help with adding some summary custom fields to categories which inherit values from their child posts. Its similar to ecommerce sites that will show filters on the left hand side with a range of available filters from the category of products you are in.
For example...
100 posts with custom field height_size as a number
then on the category display automatically combine data for any posts that are added to that category
average height_size
min height_size
max height_size
etc...
Related
I created five groups of fields and assigned each group to a different category using a condition.
In the admin panel, in four categories (on post pages), groups with fields are displayed correctly. But in one category, one corresponding group and one incorrect are displayed. That is, the group that I linked to another category is displayed.
How is this possible, and how to fix it?
Tried to recreate groups with fields – but the same.
I've created a product that have multiple categories, but when I click on the product it shows the wrong category "Footcare" instead of "Handcare". What am I doing wrong?
I'm looking for small help. I'm using this function in function.php. When I use a shortcode [total-product] I'll get for example "We have a total of 1000 products in stock".
Using Get the count of all "In stock" products in WooCommerce code, takes a number of products from all categories, but I need to get number just only from specific categories - not from all together.
I don't know how to change the SQL query to select from specific categories, eg by ID.
Is there any chance of counting the number of product "in stock" according to specific categories? Something like (I have no idea about Database structure of WP tables):
AND category_id LIKE '100;101;...' // one or more category IDs
How can I implement multiple group category filter using a widget?
Example Category Hierarchy:
Category1: Choicea1a and Choice2a
Category2: Choice1b and Choice2b
I want to display the two categories inside a select field containing their respective child categories. Is there an existing plugin for this?
Thanks!
I'm new to Commerce I hope some kind fellow could give me some directions here.
I am creating an ecommerce website for a printing company. I will give an example of what I require
For instance they will offer A6 flyers but these come in different specifications each with differing prices
Here is an example:
http://4frontdesigns.co.uk/Untitled-1.jpg
So down the left column are quantities of flyers and along thw top different speciifications of those flyers with the prices shown in the middle.
Any help much appreciated
Can I just add each variation of these one by one as it is not possible to just say that a certain additional attribute to the product will add so much $$ to the base price.
Would I just add each variation one by one then some how pull these all into one display?
You could use the commerce price table module like Flo suggested or look at the Price attributes Module https://www.drupal.org/project/commerce_pricing_attributes
It uses option sets and then add to (or subtract from) the price based on the selected attribute.
The answer for me was to create each product variation as its own product. So every variation gets added as a separate product.
If you are wondering how to add different variations to product such as paper size or colour, you would do this with taxonomy. Simply create a taxonomy term called colour and then add all the colours into this term that you would require.
Then when you create your product type in commerce, you would add this as an option to choose from when adding products by doing the following. Go to manange fields for the product type you want to add it for and add a new field, type of data = term reference. You will then select the desired taxonomy term and also there will be an option to 'Enable this field to function as an attribute field on Add to Cart forms.' - You want to select this!
Then what you do is create a product display and pull all these in to a single page, which then gives you drop down options to change, and the price changes accordingly in real time.
You can create a product display by creating a new content type first, call it product display... Then add a field to this content type which is a 'product reference'.
Now add new content, pick to create a product display (what we have just created) and choose the products that you want to appear on that page.
Then automatically Drupal Commerce will take care of the rest. Hope this helps someone!