Jump to content

Having issues with my wordpress site


ewsngr

Recommended Posts

i want help on why is my on-line store not showing my product image and info properly on my wordpress site. the images and the info of the product except for the price. just help me check the site to see what i am saying. here is the link to the site http://www.netlibrary.com.ng.

here is the code =>   function print_product_on_sales($item_xml){

if(cp_woocommerce_enabled()) { 
$title = find_xml_value($item_xml, 'title');
$caption = html_entity_decode(find_xml_value($item_xml, 'caption'));
$button_title =  find_xml_value($item_xml, 'button-title');
 
$post_temp = query_posts(array('post_type'=>'product', 'paged'=>$paged, 
'product_cat'=>$category_val, 'posts_per_page'=>3));
 
while( have_posts() ){
the_post();
 
$item_size ="245x325";
$image_type = empty($image_type)? "Link to Current Post": $image_type; 
$thumbnail_id = get_post_thumbnail_id();
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_size );
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
$product_title = get_the_title();
$title_length = get_option(THEME_NAME_S.'_products_page_title_length');
$short_title = substr($product_title,0,$title_length);
$num_excerpt = '5';
echo '<figure class="span4 s-product">';
echo '<div class="s-product-img">';
echo '<a href="' . get_permalink() . '" title="' . get_the_title() . '">';
echo '<img src="' . $thumbnail[0] .'" alt="'. $alt_text .'"/>';
echo '</a>';
echo'</div>';
echo '<article class="s-product-det">';
echo '<h3 class="product-thumbnail-title port-title-color cp-title"><a href="' . get_permalink() . '">' . $product_title. '</a></h3>'; 
echo '<p>';
echo substr(get_the_excerpt(), 0,100);
echo '</p>';
echo '<div class="clear"></div>';
echo '<div class="cart-btn2">';
do_action( 'woocommerce_after_shop_loop_item' );
echo '</div>';
echo '<div class="cart-price"> <span class="price">' . do_action( 'woocommerce_after_shop_loop_item_title' ).'</span> </div>';
woocommerce_show_product_loop_sale_flash();
echo '</article>';
echo '</figure>';
 
 
} else {
 __('Missing Woocommerce plugin','crunchpress');
  }
}
 

 

on the other hand.

on my wordpress site after payment is made this error display on the user account recent orders panel.
the error displays like this   Fatal error: Call to undefined function printf__() in /home/netlibra/public_html/wp-content/themes/book-store/woocommerce/myaccount/my-orders.php on line 59

i want someone to help me solve this error or tell me how to overcome it.

i need it please....

here is how it is displaying and which is not suppose to.

post-166610-0-19610800-1385462629_thumb.png

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.