-1

On my Drupal 8 Commerce 8.x-2.0-beta7 site, I cannot get the price of a variation to display in my Add to Cart page.

On my Commerce Products Manage Display page, I am using the "Add to cart form" display for the Variations field.

http://prntscr.com/fg8q45

I see each variation title to select, but not the price. http://prntscr.com/fg8qfd

What am I missing?

Hochmania
  • 65
  • 3
  • 9

1 Answers1

0

@Bharanikumar I have the following steps to get the price showing on the product pages.

  1. First, create a product attribute, make the element type a select list, select the default variation type and add all the different variations that your product may have (red, blue, green).

  2. In the default variation type "manage form and manage display" I moved all the fields to visible.

  3. In the product types make sure the fields you want to be seen are not in disabled and the variation should be the "add to cart" format.

  4. Create a product, add variations and give the different variations prices.

After it is saved the variation select list should have all the options you specified in step 1 and the price and sku that you assigned it when you created the product.

I hope this helps!

enter image description here

enter image description here

cwiggo
  • 2,541
  • 9
  • 44
  • 87
Shawn
  • 16
  • 3
  • If possible can you please explain little bit better. i have price in product variable field[its multiple variation one], as per above suggestion just adding price field, how price will be display which is added in the variation. – Bharanikumar Nov 20 '17 at 13:29
  • I checked back to that project and with that one we used the price field from the +add field of that products manage field page so it has one price per content and not per variation. -sorry if my last post was misleading. – Shawn Nov 21 '17 at 19:14