Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Modern Slider - Products by Category Tabs (SKU# FLEX-00016)

TOPIC: Hide soldout products.

Hide soldout products. 8 years 5 months ago #13126

Is it possible to hide soldout products?
The administrator has disabled public write access.

Hide soldout products. 8 years 5 months ago #13133

Hi,

Normally, if a product is Soldout, the SOLDOUT" badge will be displayed. If you want to remove that product completely, it is possible only with a "simple" coding edit; but you should do it very carefully.

Follow my steps.
1- Open this PHP file: /modules/mod_flexible_vm_pros_by_cats/tmpl/default.php
2- Find this line (line # 55):
$j=0; foreach($list_items as $key => $item) {
and replace it with this:
$j=0; foreach($list_items as $key => $item) {
	 if (($item->product_in_stock - $item->product_ordered) > 1) {

3- Find this line (line # 238):
<span class="flexiblewdSoldout"><?php  echo $options->translate_soldout;?></span>
</li>
and replace it with this:
<span class="flexiblewdSoldout"><?php  echo $options->translate_soldout;?></span>
</li>
<?php } ?> 

And you are good to go. From now on, if any of the product is SOLDOUT, it will be removed from the module completely.

If you like Modern Slider and satisfied with the support you have received, please "write a review" on:
www.flexiblewebdesign.com/Virtuemart-Modules/Virtuemart-Modern-Slider-Products-by-Category-Tabs

Rate Modern Slider and write a couple of sentences to share your experience with the support team.
It won't take more than 2 minutes from you but it is extremely important for us.

Thanks in advance!

Regards,
Support
The administrator has disabled public write access.

Hide soldout products. 8 years 5 months ago #13140

The administrator has disabled public write access.

Hide soldout products. 8 years 5 months ago #13152

hi,

I have tested the code i have provided you. It should be working just fine. After injecting that coding edit, instead of "SOLD OUT" badge, the product should be hidden completely from the module. What do you get after making that edit? (nothing changes at all?)

By the way, you have this option enabled, don't you?

Attachment Pasted_Image_10_20_15__2_55_AM.png not found



Regards
The administrator has disabled public write access.
Time to create page: 0.161 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo