Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
You are here: Home

jsmoriss

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 29, 2012 at 1:25 am in reply to: eStore cart thumbnail IMG SRC is full size image #47840
    jsmoriss
    Member

    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.

    July 28, 2012 at 12:35 am in reply to: eStore cart thumbnail IMG SRC is full size image #47838
    jsmoriss
    Member

    FYI – 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.'" />';

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ