Created
August 18, 2015 12:03
-
-
Save iledcom/d9a8d85a85bbbda4e908 to your computer and use it in GitHub Desktop.
Drupa7 Output URL large image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach ($node->field_product['und'] as $key => $product_array) { | |
if ( !empty($product_array) ) { | |
$product = commerce_product_load($product_array['product_id']); | |
$largeimg = image_style_url('large', $product->field_image['und'][0]['uri']); | |
echo $largeimg; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment