News:

Support the VirtueMart project and become a member

Main Menu

modify product selection of mod_virtuemart_product

Started by Lexiboy, July 11, 2014, 08:53:38 AM

Previous topic - Next topic

Lexiboy

I have a clients that does not use stock control. He only uses the availability field to display the product availability status.

Now he wants to add best sellers to his main page with use of the mod_virtuemart_product. But since he does not use stock control it is possible (and happens) that products that are not currently available are shown as well.

I am trying to find the the source where the products are actually read from the database, but cannot find it.

Where can I adapt the loading of products so that it only loads products that have no value in the availability field?




With kind regards,
Alex Stienstra

GJC Web Design

just echo out the $products in the module - and use any node that relates to stock level to filter the results by in the looping

assume there is one there
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation