Forums › Forums › Search & Filter Pro › WP E-commerce not shw Image on result
Tagged: WP E-commerce
- This topic has 13 replies, 2 voices, and was last updated 11 years ago by
Ross.
-
Anonymous(Private) March 1, 2015 at 11:54 pm #12625
Hi i buy you plugin? and install on my wordpress e-commerce site. In search result not show product image. The loop adding.
http://lombard01.ru/products-page.html/bez-brilliantov-2/koltso-492Ross Moderator(Private) March 2, 2015 at 7:58 pm #12683Hi Stanislav
Just so you know we do not provide support at weekends.
If I follow you correctly, you would like to add price and images to your search results?
First you must find out which template is used for the results, or create a new one specifically for your results, then under “display results”, you must enter the filename of your template.
Once you know which template is being used, then you can make customisations to the loop – this is native to WordPress and not this plugin:
For images check here – http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail#Post_Thumbnail_Linking_to_large_Image_Size
For meta data (I guess price is stored this way) check here – http://codex.wordpress.org/Function_Reference/get_post_meta
Thanks
Anonymous(Private) March 2, 2015 at 8:07 pm #12685Yes, I made a loop in your manuals. My theme is Parabola

my searc-filter.php
<?php
/**
* The template for displaying Search results pages.
*
* @package Cryout Creations
* @subpackage Parabola
* @since Parabola 1.0
*/get_header(); ?>
<section id=”container” class=”<?php echo parabola_get_layout_class(); ?>”>
<div id=”content” role=”main”>
<?php cryout_before_content_hook(); ?><?php if ( have_posts() ) : ?>
<h2 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘parabola’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?></h2>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><?php
/* Run the loop for the search to output the results.
* If you want to overload this in a child theme then include a file
* called loop-search.php and that will be used instead.
*/
get_template_part( ‘content/content’, get_post_format() );
?>
<?php endwhile; ?><?php if($parabola_pagination==”Enable”) parabola_pagination(); else parabola_content_nav( ‘nav-below’ ); ?>
<?php else : ?>
<article id=”post-0″ class=”post no-results not-found”>
<header class=”entry-header”>
<h1 class=”entry-title”><?php _e( ‘Nothing Found’, ‘parabola’ ); ?></h1>
</header><!– .entry-header –>
<h4><?php printf( __( ‘No search results for: %s.’, ‘parabola’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?></h2>
<br><div class=”contentsearch”><?php get_search_form(); ?></div>
</article><!– #post-0 –><?php endif; ?>
<?php cryout_after_content_hook(); ?>
</div><!– #content –>
<?php parabola_get_sidebar(); ?>
</section><!– #primary –><?php get_footer(); ?>
Ross Moderator(Private) March 2, 2015 at 8:12 pm #12686Yes this is your loop:
<?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /* Run the loop for the search to output the results. * If you want to overload this in a child theme then include a file * called loop-search.php and that will be used instead. */ get_template_part( ‘content/content’, get_post_format() ); ?> <?php endwhile; ?>Here you must make your modifications to add price & image, as per the links I sent you already.
Also see how get_template_part works, you may need to make modification in another file.
Thanks
Anonymous(Private) March 10, 2015 at 3:04 pm #13164Hi!
i get code fo thumbinals and past in search-filter.php
<?php
/**
* The template for displaying Search results pages.
*
* @package Cryout Creations
* @subpackage Parabola
* @since Parabola 1.0
*/get_header(); ?>
<section id=”container” class=”<?php echo parabola_get_layout_class(); ?>”>
<div id=”content” role=”main”>
<?php cryout_before_content_hook(); ?><?php if ( have_posts() ) : ?>
<h1 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘parabola’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?></h1>
<div class=”contentsearch”><?php get_search_form(); ?></div>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
” class=”<?php echo wpsc_the_product_image_link_classes(); ?>” href=”<?php echo esc_url( wpsc_the_product_image() ); ?>”>
” alt=”<?php echo wpsc_the_product_title(); ?>” title=”<?php echo wpsc_the_product_title(); ?>” src=”<?php echo wpsc_the_product_thumbnail(); ?>”/>
<?php
/* Run the loop for the search to output the results.
* If you want to overload this in a child theme then include a file
* called loop-search.php and that will be used instead.
*/ ……..
……and get this is result

where to paste the code that would have been in the same block???
Anonymous(Private) March 11, 2015 at 7:23 pm #13227somebody to answer my question? You claim to be compatible with the WP e-commerce, but it is not. I bought this plug-in the hope of solving the problems and can not get support in two weeks, I ask you to devote time to my problem, I do not think that the blame for my topic, not issued these prices and pictures.
Ross Moderator(Private) March 11, 2015 at 11:29 pm #13247Hi there I’m not sure what you mean about support in 2 weeks? As you can see my last response to you was
March 2, 2015 at 8:12 pm, and since then you have only contacted us yesterday – we have never taken longer than 48hrs to get back to you.From what I can tell, the plugin is working fine – as in, it is searching and loading your results fine – but the issue you are having is you want to change your layout?
In this case, customising the layout to work with your theme is not covered by support – otherwise we would be making custom templates for nearly every customer – this is a customisation of the plugin/your theme and not an issue with the plugin itself.
That being said – I’m having trouble following your above posts – please can you clarify your last question?
where to paste the code that would have been in the same block???
Thanks
-
AuthorPosts