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
https://forums.phpfreaks.com/topic/284284-having-issues-with-my-wordpress-site/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.