-
-
Save druman/3600d18669d4455647ae to your computer and use it in GitHub Desktop.
Drupa7 Output URL large image
This file contains hidden or 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