I tried to limit the exported products based on conditions but was not able to manage it with the given settings.
So I made an override like it was explained here: https://rolandd.com/documentation/ro-csvi/override-import-export-routines
And I added the following line to exclude empty products (since VM doesn't change the in_stock number if a product has been ordered and the product is empty if the number ordered matches the number in stock.)
$query->where('#__virtuemart_products.product_in_stock > #__virtuemart_products.product_ordered');
This works fine.
And then I wanted to exclud all products, that are not available yet, so the product_available_date is in the future.
I tried the following:
$query->where('#__virtuemart_products.product_available_date > ' . date('YYYY-mm-dd')); -> all products are exported
and
$query->where('#__virtuemart_products.product_available_date > ' . date('YYYY-mm-dd 00:00:00')); -> gives back a sql error
How can I make this work? I'm sorry, but my knowledge of SQL is not that good.
It would be really nice to be able to exclude products based on conditions in the settings without making an override.
Thank you very much for your great component, the use is really intuitive. I appreciate.
Kind regards,
Tanja