I have experimented with D7 Commerce Kickstart and I have 2 feature requests:

My products have 3 prices: "price", "retail price" and "export price".

Depending on his user role, a user will see one of these prices.

For some products I do not want to display a price, only retail and export price, for example.
Since the price is a required field, a value must be entered.

So my feature requests are:

  1. Possibility to hide "price" and "add to cart" per product.
  2. Price per user role.

I think that these features are highly requested since I have found several discussions about them.
Thank you.

Comments

tomsm created an issue. See original summary.

bojanz’s picture

You have indicated 8.x-2.x-dev as the version. Is this feedback for the Drupal 8 version, or was that a mistake?

tomsm’s picture

First I tried 8.x-2.x-dev and then D7 Kickstart to investigate what the possibilities are regarding prices per role.

Since Drupal 8 has better multilingual support, I prefer to create my site with D8.
So, it is a feature request for the D8 version.

bojanz’s picture

Category: Feature request » Support request
Status: Active » Fixed

Thanks for the clarification.

The price field is no longer required in 2 .x.
The price and add to cart form can be removed on per product type basis.
Doing it per-product is something we're leaving to a contrib module. It's a field and a hook, not a lot of work.
Price per role is done by https://www.drupal.org/project/commerce_pricelist in D7 and it will stay in that module for D8.

tomsm’s picture

Thanks for your answer.

I have another similar question:
Will it be possible in 2.x to hide prices from anonymous users?

bojanz’s picture

Sure, with a custom module. Nothing's changing there compared to 1.x

tomsm’s picture

Is it possible to use the module field permissions (if a D8 version will exist) to hide the price and/or the add to cart field?
Because I want to do the following:

  • Price per role
  • Possibility to hide "Add to cart" per role.
  • Possibility to hide the price per role: Is this possible with "commerce pricelist" module?
  • Is it possible to leave a price empty (no value) so that it is not shown. This is the behavior I have with CCK in my D6 site. If a price is hidden, is the cart also hidden automatically?

Right now I have a D6 site which does all that (with CCK3 and field permissions), but it does not have a commerce function. Now I want to have real commerce site with the same price functionality.
Is it possible to achieve this with Commerce 2.x and a custom module?

I am sorry that I have so many questions, but I am trying to figure out how to rebuild my site.

bojanz’s picture

Yes, field_permissions should be able to do the hiding per role.
Price per role is commerce_pricelist.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.