cancel
Showing results for 
Search instead for 
Did you mean: 

Stock show up twice, why?

Stock show up twice, why?

Hello,

 

I'm having a problem with my configureable products. If I click on the configureable product, without selecting the "version" i want to buy, will it show me "In Stock" which is fine, but when I select the wanted product from the drop down will it now show "Availability: In stock In stock", How do I fix it so it wont show "In Stock" twice?

 

Take a look at the two screen dumps to see what I mean,

 

Sorry for my bad english.

 

"In stock" shows if nothing is selected:

http://i63.tinypic.com/6o1ymr.png

 

"In Stock In Stock" shows when i select the attribute:

http://i64.tinypic.com/2i9r23s.png

 

Thank you in advance :-)

3 REPLIES 3

Re: Stock show up twice, why?

Perhaps you need to check the view-source file: www.dampzonen.dk/skin/frontend/pt004/default/js/configurableswatches/swatches-product.js

There, around line 660, you'll find the method called setStockStatus. This method can be used to edit the Availability block.

By the way, if you check the default Magento with the RWD theme, you will find the same bug. However, the label tag isn't displayed in its styles, despite the fact that it has the right default meaning. 

1) This is how it looks when the page loads: 
https://gyazo.com/84fa567ea68ebaf61ef4ceb9f13dc652

2) And this is after the option is selected:
https://gyazo.com/9b202c4526edb308123353db68fc2cf4

Perhaps, you should try to hide it (display: noneSmiley Wink or rewrite the code. It's up to you to decide how to implement it at the end instead of this:

el.select('span').invoke('update', Translator.translate('In Stock'));

you should get:

el.select(‘span.value').invoke('update', Translator.translate('In Stock'));

 By analogy, you should do that for Out of Stock products.

______________________________________________________________
Innovative, top-performing Magento Extensions (with an array of FREE tools).

Re: Stock show up twice, why?

Thank you so much for your answer, I'm trying to implement the code you wrote "(dislpay: noneSmiley Happy But I don't know where to place it, and it doesn't work for me :-( 

 

I'm still a newbie to this, sorry...

 

Can you tell me where to place it?

Re: Stock show up twice, why?

Just add the code below in any active css file used in your theme: 

 

.availability .label {
    display: none;
}


 

______________________________________________________________
Innovative, top-performing Magento Extensions (with an array of FREE tools).