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 13 years, 5 months ago by amin007.
-
AuthorPosts
-
May 16, 2011 at 12:00 am #3411toolanceMember
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 #32523amin007ParticipantThe 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 #32524avi8torMemberLike 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 #32525amin007ParticipantLook 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.
-
AuthorPosts
- You must be logged in to reply to this topic.