1

I'm trying to create two selling price for each products. One is retail and another is wholesale price. For that I have two price fields in my product variation (commerce_price and wholesale price). But when I add a product it was displaying only commerce_price. I want to display both prices. I have enabled both price fields in its display settings also.

Here is the snapshot how it was looking now Here is the snapshot how it was looking now

Can anyone tell me how can I achieve this?

  • If you are using a contributed them, then the template file which is printing the product could be the culprit. Take a look at that. – Gokul N K Jun 23 '14 at 6:01
  • @GokulNK there is no code related to the product price in template file. – James Jun 23 '14 at 6:27
4

I'm guessing you're using commerce kickstart and/or you've got Commerce Extra Price Formatters installed, it has an extension that provides the feature you're displaying, RRPP and your price.

Check out your display options, the second price won't appear automatically until you make it so. Go to admin/structure/types/manage/[your-product-machine-name]/display and verify that your price is being displayed there:

enter image description here

Then click in the link for the settings of the variation type display if you're in kickstart or go to admin/commerce/config/product-variation-types and edit the display for your variation type.

enter image description here

If you're not in kickstart, the url for this same screen would be admin/commerce/products/types

Change the price formatter to Formatted price or whatever other fits for your needs.

  • Thank you pcambra. I really missed to enable it in content type. I have one more question on this. I have provide two radio buttons for the buyers, they can select either retail or wholesale. I need to change the price in the cart based on their selection. Is there any hook provides access to change the price. – James Jun 23 '14 at 8:09
  • I think you should make another question for that, not really related. – pcambra Jun 23 '14 at 8:10
  • 1
    OK then, I'll post a new question soon. Thanks for your help – James Jun 23 '14 at 8:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.