AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Deal-or-die on November 28, 2015, 05:39:30 AM

Title: "Best Sellers" and "Sale Items" Remove until exist?
Post by: Deal-or-die on November 28, 2015, 05:39:30 AM
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
Title: Re: "Best Sellers" and "Sale Items" Remove until exist?
Post by: webdevmerc on November 28, 2015, 05:57:15 AM
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).
Title: Re: "Best Sellers" and "Sale Items" Remove until exist?
Post by: Deal-or-die on November 28, 2015, 06:18:33 AM
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