Guest User

Untitled

a guest
Nov 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. This information are stored in catalog_product_entity_varchar.
  2.  
  3. Before you get this information from database you must know attribute_id for base image attribute, you can get this id by:
  4.  
  5. SELECT `attribute_id` FROM eav_attribute where `attribute_code` ='image' AND entity_type_id = 4;
  6. For me result is 85, now if we want get base image information for product with id 1020:
  7.  
  8. SELECT * FROM catalog_product_entity_varchar where `attribute_id`=85 and `entity_id`=1020
  9. Hope it helps.
Add Comment
Please, Sign In to add comment