When no price is required how to stop it displaying 0.00

Yesterday with some help from here I managed to work out configurable attributes so I could put a wine into my wine store and have the different year options for that wine with different prices depending on the year.

I then turned the price requirement off so when i load the first product I didn't have to have a price on it it would be like teh master product with teh drop down menu for the years available in that master product. http://www.cellar2door.com/index.php/reds/chile/montes-folly-syrah-38.html

Problem is that even though there is no price for teh master product it still displays as Rp0,000.

Is there a way to set the code so that if a price is not entered then nothing is displayed it is just blank?

Many thanks,

Solutions

Make Sure you have copy the catalog/product/price.phtml in your current theme.

Then you have to add one line before <?php if (!$_product->isGrouped()): ?> line

<?php if ($_product->getPrice() > 0) : ?>
    Whole file code
<?php endif; ?>

At last add <?php endif; ?>.

Tags: Price

Similar questions

Toggle "required/not required" field in checkout
I have added a custom field in checkout called "Area". Area field is required by default, but I'd like to change that based on the selected country. If customer selects a country other than FR, then Area field should become optional (not required). Can you help me do that?
How to toggle “required/not required” custom customer attribute field?
Whether the field is invisible/optional/required in the forms should be configurable from the admin side and enforced both client and server side.
Magento2 checkout: add required checkbox, required validation not working
I am trying to add a required checkbox to the checkout summary of magento2, above the submit order button. I have managed to place the checkbox, but the order can still be submitted even if the checkbox is not checked. I have tried everything / searched everywhere but cant seem to figure this one out. Problem: Question: How do I add a 'required' va...
Price & Price as Configured Displaying as 0.00 on Bundle Product - Custom Theme
I'm working on a Magento site where I had zero involvement with its theme and honestly have no idea who even made it (the clients are not helpful). Anyways, I'm setting up Bundle Products and both the price; and price as configured ; Display as zero. I'm honestly not great with Magento's fairly confusing themeing system but the theme is located at;...
Shopping Cart Price Rules: How to stop all other coupon codes from being applied to a rule that has no coupon code
Basically I have a coupon called 2Love which we used for V-day. It has stop further rule processing set to "yes", but there's no actual coupon code for it. It applies directly to the cart if there is a combination of sku's. Now in the second picture i have a rule with a specific coupon code. It is also set to stop further rule processing. The probl...
Shopping Cart Rule and Catalog Price Rule -- Stop further Rule Processing not working
I have a number of Shopping Cart Rules with several different Actions but also I have one Catalog Price Rule giving 40% off everything. Now while this 40% Sale is on I don´t want any other Rules to be processed. But somehow this won´t work. Is this because some are Shopping Cart Rules and one is the Catalog Price Rule? I set "Stop Further Rules pro...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.