Guest User

Untitled

a guest
Jun 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.42 KB | None | 0 0
  1. select p.products_id, pd.products_name,
  2. /*ZB EFI Free_shipping_by_store - changing to read from cache_products table*/
  3. cp.products_free_shipping_ups, cp.products_free_shipping_usps, cp.products_free_shipping_table,
  4. p.products_restrict_air, p.products_restrict_usps, p.products_restrict_ups, p.products_model,
  5. IF(ps.products_price IS NULL, p.products_price, ps.products_price) as products_price,
  6. IF(ps.products_quantity_breakpoint IS NULL, p.products_quantity_breakpoint, ps.products_quantity_breakpoint) as products_quantity_breakpoint,
  7. IF(ps.products_quantity_price IS NULL, p.products_quantity_price, ps.products_quantity_price) as products_quantity_price,
  8. p.products_weight, p.products_tax_class_id, p.registration_id, p.products_man_sku, p.products_upc, p.country,  
  9. IF(((ps.products_cart_limit IS NULL) OR (ps.products_cart_limit = '0')), p.products_cart_limit, ps.products_cart_limit) as products_cart_limit,
  10. p.products_multipack_quantity as products_multipack_quantity,
  11. /* ZB EFI Free_shipping_by_store */
  12. p2c.products_id, p2c.categories_id
  13. FROM products p
  14. LEFT JOIN products_to_categories p2c ON(p2c.products_id = p.products_id)
  15. LEFT JOIN cache_products cp ON(p2c.categories_id = cp.categories_id)
  16. INNER JOIN products_description pd
  17. LEFT JOIN products_stores ps ON(p.products_id = ps.products_id AND ps.stores_id = '" . STORE_ID . "')
  18. WHERE p.products_id='608'
  19. AND pd.products_id = p.products_id
  20. AND pd.language_id = '1'
Add Comment
Please, Sign In to add comment