Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
jsmorissMember
Excellent – thanks.
BTW, here are some other changes I’ve made:
wp-cart-for-digital-products$ diff eStore_misc_functions.php-orig eStore_misc_functions.php
255c255,259
< $replacement .= '<input type="hidden" name="product" value="'.htmlspecialchars($nggImage->alttext).'" /><input type="hidden" name="product_name_tmp1" value="'.htmlspecialchars($nggImage->alttext).'" />';
---
> // jsmoriss - added caption to product_name_tmpl field
> $replacement .= '<input type="hidden" name="product" value="'.htmlspecialchars($nggImage->alttext);
> $replacement .= '" /><input type="hidden" name="product_name_tmp1" value="'.htmlspecialchars($nggImage->alttext);
> if(!empty($nggImage->caption)) $replacement .= ' : '.$nggImage->caption;
> $replacement .= '" />';
261,262c265,267
< if(!empty($nggImage->imageURL)){
< $replacement .= '<input type="hidden" name="thumbnail_url" value="'.$nggImage->imageURL.'" />';
---
> // jsmoriss - changed imageURL to thumbURL
> if(!empty($nggImage->thumbURL)){
> $replacement .= '<input type="hidden" name="thumbnail_url" value="'.$nggImage->thumbURL.'" />';eStore-extra-shortcodes$ diff shortcode_include.php-orig shortcode_include.php
1107a1108,1109
> // jsmoriss - added 100% to width of TD to maximize name / caption space
> // linked image instead of item name since it (may) contain caption text
1109c1111,1114
< <tr><td style='overflow: hidden;'><div class='eStore_cart_thumbnail'><img src='".$item['thumbnail_url']."' /></div><div class='eStore_cart_item_name'><a href='".$item['cartLink']."'>".$item['name']."</a></div><div class='eStore-fancy-clear'></div></td>";
---
> <tr><td style='overflow:hidden;width:100%;'>
> <div class='eStore_cart_thumbnail'><a href='".$item['cartLink']."'><img src='".$item['thumbnail_url']."' /></a></div>
> <div class='eStore_cart_item_name'>".$item['name']."</div>
> <div class='eStore-fancy-clear'></div></td>";Thanks,
js.
jsmorissMemberFYI – Found where the problem was:
$ diff eStore_misc_functions.php-orig eStore_misc_functions.php
262c262
<
$replacement .= '<input type="hidden" name="thumbnail_url" value="'.$nggImage->imageURL.'" />';
---
>
$replacement .= '<input type="hidden" name="thumbnail_url" value="'.$nggImage->thumbURL.'" />'; -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)