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: 15
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
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
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: 15
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: 15
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: 15
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


Last change: 21.01.2016 20:45
 
22.01.2016 08:05
#6
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
Quote
Aw: Hide products attributes that have stock=0

Works for me (Joomshooping 4.11.6)

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.