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

How do I remove parts of the Fancy 2 display

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How do I remove parts of the Fancy 2 display

Tagged: fancy2 display modification

  • This topic has 3 replies, 3 voices, and was last updated 14 years ago by amin007.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 16, 2011 at 12:00 am #3411
    toolance
    Member

    Loving WP Cart for Digital Products so far. I just have a few design tweaks to do and need some advice. I’d like to completely remove the thumbnail display from the product info that is displayed when using [wp_eStore_fancy2 id=1].

    Would this be an edit in the PHP rather than the css? If PHP which script do I edit? If css the class seems to be ‘eStore-thumbnail’ but I’m struggling to locate it. Ideally I’d just like to remove that entire thumbnail from the fancy 2 table so that all I see is the product name, price and ‘add to cart’ button.

    I’m using the fancy 2 option because if I use the [wp_eStore:product_id:1:end] shortcode it won’t display my price for some reason, just the button and nothing else.

    Please point me in the right direction.

    May 16, 2011 at 11:44 pm #32523
    amin007
    Participant

    The purpose of the following shortcode is to just give you a button so you can design the product dispaly however you want it:

    [wp_eStore:product_id:1:end]

    There are many different types of shortcodes that you can use. They are all listed here:

    http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460

    Regarding fancy2 display modification. If you are just going to customize the look and feel (color, font size etc.) then you can just do that from the CSS file. If you want to just remove parts of it then you will need to modify the PHP file. To do this open the “eStore_misc_functions.php” file and look for the following function:

    function show_product_fancy_style2

    June 5, 2011 at 5:30 pm #32524
    avi8tor
    Member

    Like tooLance, I am also trying to display the fancy 2 option without the thumbnail. I noticed in the extra short_codes there is one for fancy 1 w/o thumbnail, but nothing for fancy 2.

    The goal is really having everything in alignment on the page. I want to show the same product in two different sizes, however variation doesn’t work well because the inventory control is 1 for each. So if a customer purchases one size there is no way to reflect that only the other is available.

    The work-around is to list the same product twice with the second description saying something like “same as above only in this size”. the problem is I don’t want another thumbnail of the same and the display will show where a thumbnail should exist if I don’t use one. The alignment is thrown out of whack as well.

    I thought about checking for a thumbnail image using PHP code like below

    <?php

    $filename = ‘/path/to/thumbnailImage’;

    if (file_exists($filename)) {

    continue on;

    } else {

    do something else”;

    }

    ?>

    but not sure where to put this in function show_product_fancy_style2.

    Alternatively, I could use the shortcode you mentioned, but still have a problem with product alignment on the page.

    Any suggestions?

    BTW, this is a great plugin, with many, many options. Thanks for your hard work.

    June 6, 2011 at 1:09 am #32525
    amin007
    Participant

    Look for the following line of code in the function that I suggested to modify (show_product_fancy_style2):

    $output .= get_thumbnail_image_section_code($ret_product);

    Once you find the above line change it to the following:

    if(!empty($ret_product->thumbnail_url))
    {
    $output .= get_thumbnail_image_section_code($ret_product);
    }

    This will make it so the thumbnail section is only displayed if there is a “Thumbnail images” specified for the product.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

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