Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

"Best Sellers" and "Sale Items" Remove until exist?

Started by Deal-or-die, November 28, 2015, 05:39:30 AM

Previous topic - Next topic

Deal-or-die

G'day,
I apologise for the horrible wording of the subject haha, just wondering if there is any way to automatically hide the "Best seller" and the "sale items" on the home page when no sale or 'best selling' items available and then for them to re-appear when such sale or best selling item becomes available?

Cheers,
Josh

webdevmerc

I don't know how to do this automatically, but instead, I manually just disable the block in:
Design -> Layout -> Home Page and turn off the ones I don't want (bestsellers and special in the cases you describe above).

Deal-or-die

#2
Hey mate.

Yeah might have to do that as a temporary measure but I have a very basic understanding of scripting and I'm sure it isn't that hard to make this into a automated setup.

if(bestseller => 0)
{
      ShowThisBlock;
}
else
{
    Don'tshowthisblock;
}

KPro Skrptr now. Be making next best app soon :P
Haha sorry, just thought I'd give it a go :P

Forum Rules Code of conduct
AbanteCart.com 2010 -