Monthly
30 points
Starting to get into this DEV thing
I'm new here
micdech
Member — 4th February 2012 (3 months ago)
Hi all,
I write to propose a simple option to include in the core of marketpress.
In order to show the excerpt or not, in the product list, i suggest a really simple few line of code.
In file marketpress.php under the Product list settings i add:
<tr>
<th scope="row"><?php _e('Show the excerpt', 'mp') ?></th>
<td>
<label><input value="1" name="mp[show_excerpt]" type="radio"<?php checked($settings['show_excerpt'], 1) ?> /> <?php _e('Yes', 'mp') ?></label>
<label><input value="0" name="mp[show_excerpt]" type="radio"<?php checked($settings['show_excerpt'], 0) ?> /> <?php _e('No', 'mp') ?></label>
</td>
</tr>
In file template-function.php i add just two instruction:
if(is_null($settings['show_excerpt'])){
$settings['show_excerpt'] = 1;
}
and:
if($settings['show_excerpt'] != 0):
$product_content .= '<div class="mp_product_content_excerpt">'.$mp->product_excerpt($post->post_excerpt, $post->post_content, $post->ID).'</div>';
endif;
That's all! Really simple and functional...
What do you think about? :)
Regards
Michele

Responses (4)
Support Kangaroo — 4th February 2012 (3 months ago) #
Greetings Michele :-)
nice and thank you for your valuable input!
I shall let the developer know about your coding and perhaps they may choose to incorporate it.
Actually this should be moved to Feature Request in which I shall do but also let the Developer know about it.
Thanks again and have a great weekend!
Joe :-)
Member — 4th February 2012 (3 months ago) #
Hi aecnu,
I've got also many css template, for this layout, and i can send you freely, for better view this option.
Thank you!
Have a great weekend you too!
Regards
Lead Developer — 6th February 2012 (3 months ago) #
Thanks, will be in 2.5
Member — 6th February 2012 (3 months ago) #
I can send you some css template for this kind of layout...
You can see an example on http://shoescia.byoutique.com/store/products
all products are floating without excerpt :D
I can send you a css file, if you want
Regards
Become a member