Advertisement
asadsuman

woooLocation

Jan 2nd, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <!---Woocommerce various page location--->
  2.  
  3. 1. Single product price : woocommerce folder >> single-product folder >> price.php
  4.  
  5. 2.Signle add to cart button: woocommerce folder >> single-product folder >> addtocart folder >> variable, simple, grouped .php.
  6. The code is : <button type="submit" class="single_add_to_cart_button button alt btn btn-default add-to-cart"><i class="fa fa-shopping-cart"></i><?php echo $product->single_add_to_cart_text(); ?></button>
  7.  
  8. 3. How to echo product availability on single page :
  9. go to >> woocommerce folder >> content-single-product.php>>
  10. <div class="summary entry-summary">
  11. <?php global $product;?>
  12. <p class="stock-m13">Availability : <?php
  13.  
  14. if($product->is_in_stock()){
  15. echo'<p class="in-stock">In-stock</h2>';
  16.  
  17. }
  18. else{
  19. echo'<p class="out-of-stock">Out of stock</p>';
  20. }?>
  21. </p>
  22. </div>
  23.  
  24. 4.Woocommerce Author comment Customized :woocommerce folder >> single-product folder >>review.php find :<strong itemprop="author"><i class="fa fa-user"></i><?php comment_author(); ?></strong>
  25.  
  26. 5.
  27. //Woocommerce Tab custom text adding on functions.php
  28.  
  29. add_filter( 'woocommerce_product_tabs', 'woo_custom_description_tab', 98 );
  30. function woo_custom_description_tab( $tabs ) {
  31.  
  32. $tabs['description']['callback'] = 'woo_custom_description_tab_content'; // Custom description callback
  33.  
  34. return $tabs;
  35. }
  36.  
  37. function woo_custom_description_tab_content() {
  38. echo '<h2>Custom Description</h2>';
  39. echo '<p>Here\'s a custom description</p>';
  40. }
  41. //End of Custom tab title
  42.  
  43. 6. How to customized Shop page in woocommerce??
  44. archive.php belongs to shop page.
  45. 7.Product Review text edit :
  46. Go to woocommerce folder >> single-product-review.php
  47. 8. To remove the sidebar from single product page: Go to woocommerce folder >> single-product.php and bottom of the page remove the sidebar hook.
  48.  
  49.  
  50. 9.http://www.pootlepress.com/2014/04/100-woocommerce-tips-tricks/
  51. <!--start rating -->
  52. 10.1.start rating :https://support.woothemes.com/hc/communities/public/questions/202760976-How-to-insert-star-ratings-to-plugins
  53.  
  54. 11..https://support.woothemes.com/hc/communities/public/questions/201220087-Woocommerce-Causes-Slow-admin-ajax-php-Load-Times
  55. 10.2.http://stackoverflow.com/questions/14227121/how-do-you-add-the-star-ratings-for-products-in-woocommerce
  56.  
  57. 10.3 http://wordpress.stackexchange.com/questions/134561/additional-fields-on-woocommerces-rating-system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement