Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: "Best Sellers" and "Sale Items" Remove until exist?  (Read 3884 times)

Offline Deal-or-die

  • Newbie
  • *
  • Posts: 10
  • Karma: +1/-0
    • View Profile
"Best Sellers" and "Sale Items" Remove until exist?
« 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

Offline webdevmerc

  • Full Member
  • ***
  • Posts: 172
  • Karma: +32/-1
    • View Profile
Re: "Best Sellers" and "Sale Items" Remove until exist?
« Reply #1 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).

Offline Deal-or-die

  • Newbie
  • *
  • Posts: 10
  • Karma: +1/-0
    • View Profile
Re: "Best Sellers" and "Sale Items" Remove until exist?
« Reply #2 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
« Last Edit: November 28, 2015, 06:24:02 AM by Deal-or-die »

 

Powered by SMFPacks Social Login Mod