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
Simple Product Tier Pricing and Custom Options drop down issue (bug fix?)
 
integer_net
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2012-09-05
Aachen, Germany
 

Hi Folks,

sashatronics’ fix works, but it’s not update safe.
We made a fix by adjusting a phtml file and put it in our own theme.
You can find detailed information here:
Magento Bug individuelle Optionen und Staffelpreise 100 prozent Ersparnis

Sorry, it’s in german only. If anyone needs a translation, just ask for it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
hbbh
Jr. Member
 
Total Posts:  3
Joined:  2013-03-14
 

I don’t believe that sashatronics fix did work, I think it just masks the problem.

I also don’t think that your class replacement fixes all the issues with this bug, I have outlined a full fix for this problem here:

http://stackoverflow.com/a/16022796/159341

Although I have used your tierprices.phtml fix in the solution, and referenced you smile

Tristan

 
Magento Community Magento Community
Magento Community
Magento Community
 
thmt08041991
Jr. Member
 
Total Posts:  1
Joined:  2013-08-14
 

oke let check from line 750 to line 772 of file: /js/varien/product.js you will see this issue

for (var 0this.tierPrices.lengthi++) {
                
$$('.price.tier-' i).each(function (el{
                    
var price this.tierPrices[i] parseFloat(optionPrices);
                    
el.innerHTML this.formatPrice(price);
                
}this);
                $$(
'.price.tier-' '-incl-tax').each(function (el{
                    
var price this.tierPricesInclTax[i] parseFloat(optionPrices);
                    
el.innerHTML this.formatPrice(price);
                
}this);
                $$(
'.benefit').each(function (el{
                    
var parsePrice = function (html{
                        
return parseFloat(/\d+\.?\d*/.exec(html));
                    
};
                    var 
container = $(this.containers[3]) this.containers[3] this.containers[0];
                    var 
price parsePrice($(container).innerHTML);
                    var 
tierPrice = $$('.price.tier-' i);
                    
tierPrice tierPrice.length parseInt(tierPrice[0].innerHTML10) : 0;
                    var 
$percent Selector.findChildElements(el['.percent.tier-' i]);
                    
$percent.each(function (el{
                        el
.innerHTML Math.ceil(100 - ((100 price) * tierPrice));
                    
});
                
}this);
            
}

and fix it similar below

for (var 0this.tierPrices.lengthi++) {
                
$$('.price  .tier-' i).each(function (el{
                    
var price this.tierPrices[i] parseFloat(optionPrices);
                    
el.innerHTML this.formatPrice(price);
                
}this);
                $$(
'.price  .tier-' '-incl-tax').each(function (el{
                    
var price this.tierPricesInclTax[i] parseFloat(optionPrices);
                    
el.innerHTML this.formatPrice(price);
                
}this);
                $$(
'.benefit').each(function (el{
                    
var parsePrice = function (html{
                        
return parseFloat(/\d+\.?\d*/.exec(html));
                    
};
                    var 
container = $(this.containers[3]) this.containers[3] this.containers[0];
                    var 
price parsePrice($(container).innerHTML);
                    var 
tierPrice = $$('.price .tier-' i);
                    
tierPrice tierPrice.length parseInt(tierPrice[0].innerHTML10) : 0;
                    var 
$percent Selector.findChildElements(el['.percent   .tier-' i]);
                    
$percent.each(function (el{
                        el
.innerHTML Math.ceil(100 - ((100 price) * tierPrice));
                    
});
                
}this);
            
}

- you need insert space between dom mootool : $$(’.price .tier-’ + i) insteed $$(’.price.tier-’ + i)
the script will work fine.
good luck:

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 2 of 2