Hide products attributes that have stock=0

21.01.2016 15:53
#1
charo1989
Joomshopping forum user no avatar
Name: charo1989
24.11.2010
Posts: 11
Quote
Hide products attributes that have stock=0

Hi,
first of all, thank you for your work!!!
I have a question:
I have a product with 3 attributes: 150ml, 100ml and 50ml format.
Also when 50ml and 150ml has stock=0, a customer can insert them in the cart.
Can I show only product attributes that has stock > 0? I already flagged "hide product not available" in backend but not available attributes are still visible.
Regards
Alessandro

 
21.01.2016 16:27
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16480
Quote
Aw: Hide products attributes that have stock=0

Screenshot backend / product / attribute?

 
21.01.2016 16:54
#3
charo1989
Joomshopping forum user no avatar
Name: charo1989
24.11.2010
Posts: 11
Quote
Aw: Hide products attributes that have stock=0

See the attachment pls
Aw: Hide products attributes that have stock=0

 
21.01.2016 16:55
#4
charo1989
Joomshopping forum user no avatar
Name: charo1989
24.11.2010
Posts: 11
Quote
Aw: Hide products attributes that have stock=0

And this is the Front
Aw: Hide products attributes that have stock=0

 
21.01.2016 20:43
#5
charo1989
Joomshopping forum user no avatar
Name: charo1989
24.11.2010
Posts: 11
Quote
Aw: Hide products attributes that have stock=0

I solved this problem in the following mode:

file: com_jshopping \ tables \ product.php
function: getAttribValue

i forced the variable $onlyExistProduct a true value.

In this mode, I can show the message "product not available" when products are not available, and I can hide attributes that are not available in stock when a product has only some attribute combos not available.

I suggest you to introduce an option that permit to hide not only products that are not available in stock, but also attributes combos that are not available in stock.

I am using Joomshopping 4.9.2 so if you have already done that please excuse me.
Many thanks and regards
Alessandro


Letzte Ă„nderung: 21.01.2016 20:45
 
22.01.2016 08:05
#6
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16480
Quote
Aw: Hide products attributes that have stock=0

Works for me (Joomshooping 4.11.6)

 
Copyrights MAXXmarketing GmbH. All Rights Reserved