Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 2 of 2
Remove “+£xx” from options on product view (configurable products)
 
swkelling
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2011-09-30
 

This worked great for me for Option Type Dropdown in 1.6.2

create these local directories:
/app/code/local/Mage/Catalog/Block/Product/View/Options/Type/

Now to solve the problem on a simple product with custom options

Copy:
/app/code/core/Mage/Catalog/Block/Product/View/Options/Type/Select.php
To:
/app/code/local/Mage/Catalog/Block/Product/View/Options/Type/Select.php

Make these changes in local Select.php

For option type Dropdown or Multiple select

Replace this

$_value->getTitle() . ‘ ‘ . $priceStr . ‘’

with this

$_value->getTitle() . ‘ ‘ . ‘’

 
Magento Community Magento Community
Magento Community
Magento Community
 
camelscript
Jr. Member
 
Total Posts:  8
Joined:  2012-08-21
 

Worked for me just fine! Magento CE 1.7.0.2
I added file that can be used to override original file. Just put it in app/design/frontend/[your_package]/[your_theme]/template/catalog/product/view/type/options/
and every thing should be just fine.

(:Thanks GL!

benz001 - 07 November 2010 10:14 PM

To address the original thread question (ie the price difference being shown for configurable products), you can easily remove this by overriding the javascript object’s method that updates this string, doing it this way means you only change your template file - no core changes are required.

Look for the template:
catalog/product/view/type/options/configurable.phtml

Around line 44 you’ll find:

var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);

Immediately before it we rewrite the function
//Rewrite the function
    Product.Config.prototype.formatPrice = function(){
        
return '';
    
}
        
var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);
File Attachments
configurable.phtml  (File Size: 3KB - Downloads: 44)
 
Magento Community Magento Community
Magento Community
Magento Community
 
steve1512
Jr. Member
 
Total Posts:  7
Joined:  2012-10-10
 

So I am having no luck with this. I am using 1.4. What I am trying to do is take out the “Add $10” after custom options on our web site. I tried doing this through configurable.phtml, but it didn’t change anything. It should be a simple off/on feature in the admin in my opinion. We don’t want customers to see the different add on prices on the site. Anyone have any other way to hide this? I have googled it and seen some advice on how to do it, but to no avail. If there is a step I am missing, please let me know.

Image Attachments
Screene.jpgScreene.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 2 of 2