Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

TOPIC: GooglebaseXML

GooglebaseXML 8 months 3 weeks ago #2927

  • 4FootyFans
  • 4FootyFans's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Hello

JM v2.5.24
VM v2.0.26d

Is there a simple way to filter 'In-stock'?

We do not UNpublish out of stock products and would like to list only products where stock > 3

Thanks
The administrator has disabled public write access.

GooglebaseXML 8 months 3 weeks ago #2929

  • boggler
  • boggler's Avatar
  • OFFLINE
  • Moderator
  • Posts: 807
  • Thank you received: 77
  • Karma: 14
At the moment we don't have this as an option, but it will be easy to modify the code to include this. The file you need to modify is

component/com_googlebasexml/models/googlebasexml.php, line 405, change
$where = "p.published=1";
to
$where = "p.published=1 and p.product_in_stock > 3";

That is if you are using version 4.5.1, if you are using an earlier version the code and line numbers will be slightly different, let me know if you need further assistance with this.
The administrator has disabled public write access.

GooglebaseXML 8 months 3 weeks ago #2931

  • 4FootyFans
  • 4FootyFans's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Perfect!

Thank You for the quick response.
The administrator has disabled public write access.
Moderators: boggler
Time to create page: 0.248 seconds