I am trying to Pull from MySQL but just can't get the string right to pull from the right field.
it is pulling from the wrong location. currently from (catalog_product_entity_media_gallery_value_video)
and should be pulling the video from (catalog_product_entity_varchar)
(attribute id 147)
this gives the value for the correct stored URL in the database. Not sure what is the correct code string.
Here is my code:
$sql = "SELECT url FROM catalog_product_entity_media_gallery_value_video where value_id= ".$product_data['entity_id']." ";
$video_url = $connection->fetchOne($sql);
I am trying this but has to have the 'attribute_id' of 174 included to pull the correct 'value' and get the URL in the database.
Here is my code:
$sql = "SELECT url FROM catalog_product_entity_varchar where value_id= ".$product_data['value']." ";
$video_url = $connection->fetchOne($sql);
any thoughts on how to add the addition of attribute_id of 174 in this string to be able to pull the URL stored in the value field..?
Thanks PRiZM..