Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions skin/frontend/base/default/js/scp/scp_product_extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,16 @@ Product.Config.prototype.updateProductStock = function(productId) {
//If config product doesn't already have an additional information section,
//it won't be shown for associated product either. It's too hard to work out
//where to place it given that different themes use very different html here
$$('p.availability').each(function(el) {
el.replace(stockStatusHtml);
});
$$('div.add-to-box').each(function(el) {
el.innerHTML=addToCartHtml;
});
if (typeof stockStatusHtml !== 'undefined') {
$$('p.availability').each(function(el) {
el.replace(stockStatusHtml);
});
}
if (typeof addToCartHtml !== 'undefined') {
$$('div.add-to-box').each(function(el) {
el.innerHTML=addToCartHtml;
});
}
};

Product.Config.prototype.updateProductSku = function(productId) {
Expand Down