d1m007 / gshoppingflux

PrestaShop Google Shopping Flux Module
100 stars 61 forks source link

Export product in stock - only products with Deny Order and quantity > 0 or Allow orders #89

Open j8lud opened 4 years ago

j8lud commented 4 years ago

Is it possible export only the prducts with flag Deny Order and quantity > 0 or Allow orders ? Otherwise the products with options visibility Everywhere or Catalog.

If I set in your module only in stock don't export the product with Allow orders set to true.

Regards Paolo

j8lud commented 4 years ago

Is it possible export only the prducts with flag Deny Order and quantity > 0 or Allow orders ? Otherwise the products with options visibility Everywhere or Catalog.

If I set in your module only in stock don't export the product with Allow orders set to true.

Regards Paolo

row 2193 // add this $sql .= ' AND p.visibility = "both"';

And then for add reference in the title row 2303 (2305) // Product name $title_crop = $product['name'].' '.$product['reference'];

d1m007 commented 4 years ago

Feel free to submit your changes as a regular pull request, in order to get it available in the module for everyone, that will certainly be merged asap.