Hide Products from View in Drupal Commerce - drupal

I know this may be very basic but I can't seem to figure out a way to hide a product that I've got set up in Drupal Commerce. I'm new to Drupal so thanks for your patience.
In the product's edit screen, I go to 'Status' and choose 'Disabled' which prevents them from being added to carts (instead of Add To Cart, it displays 'Product Not Available' in the store) but it doesn't actually remove it from Product Display in the store. I've set the stock status to 0 on these products and made sure that they are not being displayed as 'Featured' yet they still show up.
Is there a simple setting where I can keep the product in the backend, in case I want to activate it later, but hide it from the store?
Thanks so much for your help.
For clarification, I am using the 'Expressa' theme.

It has been a while since I've worked with Drupal Commerce, but I assume that your product listing is a View.
You should be able to modify your View to filter out the disabled products.

Related

Hide product or variation if has a custom field

I need to be able to hide some products and / or variations in a Woocommerce with WPML only for some languages at certain times.
I tried everything, tried to disable the synchronization of the _stock_status that manages WPML but I have not been able and it has occurred to me to add a custom field to each one (in the case of the variations I suppose I would have to do it via database because in the dashboard there is no option) and have a check:
if "custom_field" exists => _stock_status = outofstock (or simply deactivate the add to cart button and display a message.)
This is "easy" for the products, but I don't know how to solve it with the variations. Any ideas? I also hear other solutions to the problem.

How to deactivate Order function in Wordpress

I am now building my own website that will show some pictures to users.
That's like ebay but unable to buy any items.
Just click and contact to the seller.
Here are 2 screenshots.
For example, click the first item, then the second page will show up.
Like the screenshot, I do Not want to see the 'Add to cart'. Instead of that, I want to see this, Contact the seller then it will show the seller's phone number.
I installed woocommerece & WV vendors plugins.
If you have any good suggestion, It will be appreciated.
Thanks.
Woocommerece is for selling items. If you are trying to create a lookalike shop site, I'd recommend:
Creating a custom post type for the products
Create custom fields for all the properties of your product & seller information.
Style the page as you wish.
Woocommerece is totally not necessery here.

woo commerce replace dropdown product variable with label where there is an attribute that has only one selection

I'm completely new on wp Woo Commerce.
Using wp AllImport I try to get products from the site bellow but for usability I have one big problem - users need to select all options even there is only one option, to buy a variable product.
Is there a solution to display variable products in woo commerce as in this website?
and orphan attribute to be shown as label but in same time to be selected?
Please note the dropdown is show only if there is another attribute (variant) with different value.
I've try to filter orphan values from my Array() but the product has not full details as I wish.
Please see my work result
As you can see you need to select all dropdowns to buy the product.
Thanks in advance

How To Add Custom Field In woo commerce product listing admin page in Wordpress

I am very much new to wordpress and need help. Well I need to add a custom field to woocommerce product listing page in admin and make it work.
So where do I have to make changes in code or in admin section.I need some suggestions on how to make it work.
Thanks in advance
if I'm understanding you right you want to add new fields to your woocommerce products, and you want those fields to show up in the admin panel. I am working on this right now myself and I have found a few good resources.
First of all, although I can't find any documentation on them yet directly in the woocommerce API docs, there are two hooks for extending the admin panel.
woocommerce_product_write_panel_tabs - this allows you to insert a new tab within the admin panel. from browsing the source of various free woocommerce plugins that do this it appears that the tab format should be <li>Tab Name</li>.
woocommerce_product_write_panel - this is where the insertion of your custom panel contents would go, placed within a <div id="#tab_name"></div>
These are the two hooks that I have had a great deal of difficulty locating. They allow you to hook into the actual woocommerce admin area, otherwise custom fields you might add will end up in a separate panel.
For all the details on actually adding the custom fields themselves and hooking them up to the front-end, I suggest this tutorial here, which covers the basic concepts involved in adding a new meta-data field and hooking it into the product display (in this case the single-product detail view, it sounds like you want to modify them in the list view but this will show you the basic principles).
http://www.xatik.com/2013/02/06/add-custom-form-woocommerce-product/
Note: that tutorial doesn't use the woocommerce admin panel but creates its own panel, the instructions I gave above, plus this tutorial, should get you just about anywhere you need to go.

How To Configure Fields To Display In Ubercart Product Node

I have set up ubercart on a site and everything seems ok when adding products and viewing the catalog page however when I click on the product the product view does not include the product image or the price.
I have have enabled all fields in admin/store/settings/products/edit/fields however this does not seem to change anything (SKU etc not displayed either, only description, size options, add to cart button and link to category)
Can anyone suggest why these may not be showing, Am I looking at completely the wrong config screen? Thanks
Check here admin/content/node-type/product/display if the display for the Full node is OK.
Another way will be to create a node-product.tpl.php template and display the fields as you wish (You'll have $node there, etc..).

Resources