DC New product not showing in 'all product' - drupal

I'm not sure this is the right place to ask the question but I tried everywhere (drupal.exchange drupal etc ... nobodies seems to have seen it)
So I'm trying here. Not I'm happy to investigate myself but as I'm new to drupal I have no idea whatsover, how to 'debug' or find a problem so any hint would be appreciated.
I created a new product display content type and then a new product of this type.
This new item shows up in the category list but not in the product list.
Repeatable : Always
Steps to reproduce :
install KC without demo store, no option selected
create a new content type : structure/content type/add new content type
save it : save and edit fields
add a product reference to this content type: add existing field / select product reference
save (this generate an error, I raised issue about it).
save settings
add a product category to this content type
save settings
save content type
Create a product : store/product/add product/
select the later display
fill the name, sky and price
save product
select a product category
save (bottom of the page) Now the product and its display should be created
click on the corresponding category on the main menu (top right) => the new item is listed
clik on all product (main menu) => the new item is not listed.
Is it a bug or am i missing something ?

Ok I found the answer. My new product wasn't displayed not because it was filtered but because the indexes used by the search API hasn't been updated. Seems obvious once you know that the view is not using a query but the result of search.

Related

How to change display of variable products on Woocommerce archive-product page

I am using the Storefront theme (downloaded a few days ago so newest version) and I want to do something quite simple:
on the archive-product page I want to display the product name of a list of variable products (all shoes) , along with two custom fields that I attached to the product post type.
All goes well with simple products. I can edit that which is shown through my theme-child folder/woocommerce/loop/price.php.
My issue appears as soon as I turn a product into a variable product. When I do that, the custom fields disappear, and all I see beneath the product is a button that says "select option"
I have been looking for hours to find the correct template/hook to fix this but I just cant find it...
I have no idea where to look :( Hope ome

field image didn't appears in my view

I am using Drupal commerce, I have been wanting to create views for recently added products, actually that works (pretty easy) but when I want to add the field image, images didn't appear. I will try to illustrate my steps:
1) create new view, show: content; of: product display; sorted by: newest first.
2) add relationship (content: referenced products) then I required it.
what I did wrong!
thanks for any answer.
You have to add the image field from the referenced product (i.e the image field, using the relationship like "(Referenced Product) Image") in your view. In Drupal Commerce, image fields on products are usually product field and not product display field as they might change across products variations.
If you already add the image field, make sure you choose "Use relationship : Referenced product" in the image field settings, otherwise Views will keep looking for this field on the product display, not on the product itself.

Drupal 7 how to add views

m create one vocabularity locations(like delhi,bangalore,kerala) and im creates two content types one for user content(fields name,locations,map) type another for admin content(fields like locatoins,no of atms) type , these two contain one specific field that is locations field (vocabularity) now i have to display all details in one view means as table . ,columns are locations,name,no of atms. how to display in these all details in one view please help me im new to drupal thanks in advance. already im creating view no of atms values not displayingenter image description here
First you need to create a new view to show content and type as all
In create page give display format as Table
Then click continue and edit
Add new filter criterea Content: Type
On add you can select your required content types Choose is one of option and check your required content types
Then click Apply
After that you can add your required fields from the add in fields section of your view.
you can add contextual filters for filter according to taxonomy name.

display only unique terms in a view from product in drupal commerce

I have a bunch of wines imported as products in drupal commerce and i want to make a 'regions' page to give a list of all the regions that is automatically populated by pulling the 'region' out of each product but that only displays unique values.
at the moment i have a list of all the products with the same region listed loads of times and i can't find a way in views to only show the regions once.
Try going to 'Settings' under the 'Format' section of your view and setting your region as the 'Grouping field Nr.1' -- you can then list the products from that region underneath or not....
============== EDIT ==================
If you don't want to display the wines under the terms, just start a new view from scratch, and when you're creating it, choose that you want to make this a taxonomy terms view, vs a content view. That should do it!!

Drupal CC/Views - new fields not showing up in CCK

I am working with CCK/Views for the first time, and I am stuck on a detail...
I have created a custom type called Outlet (as in Retail Outlet).
I added 5 new fields to my new custom type.
I created some content in my new Content Type.
Then I went to Views to Add a new "Node" type View for my New Content Type.
I click on Fields to select Fields.
There is a option/select box to select which fields to choose...
But alas, my new Content Type and related fields does not show up here.
What am I doing wrong?
It should be under Content in the dropdown.
It will be called field_whatever_you_named

Resources