Default price of $0 for Products

Created on 18 July 2023, over 1 year ago
Updated 19 July 2023, over 1 year ago

Our Drupal 10 Commerce site has exclusively "free" products. Every time our editors have to add a product they are forced to specify that the product price is $0. This is not a big deal, but they were asking if there is a way to just make the default product price in the form $0? Is there a way to do this? THANKS

💬 Support request
Status

Fixed

Version

2.36

Component

Price

Created by

🇺🇸United States socalerich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @socalerich
  • Status changed to Fixed over 1 year ago
  • 🇮🇱Israel jsacksick

    I was going to say this is possible via the field config form to just set a default value but since this is a base field, it's not.

    So, one thing you could do is implement an event subscriber that reacts to the ProductEvents::PRODUCT_VARIATION_CREATE event and from there you can set a 0$ price.

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

Production build 0.71.5 2024