Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!---Woocommerce various page location--->
- 1. Single product price : woocommerce folder >> single-product folder >> price.php
- 2.Signle add to cart button: woocommerce folder >> single-product folder >> addtocart folder >> variable, simple, grouped .php.
- 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>
- 3. How to echo product availability on single page :
- go to >> woocommerce folder >> content-single-product.php>>
- <div class="summary entry-summary">
- <?php global $product;?>
- <p class="stock-m13">Availability : <?php
- if($product->is_in_stock()){
- echo'<p class="in-stock">In-stock</h2>';
- }
- else{
- echo'<p class="out-of-stock">Out of stock</p>';
- }?>
- </p>
- </div>
- 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>
- 5.
- //Woocommerce Tab custom text adding on functions.php
- add_filter( 'woocommerce_product_tabs', 'woo_custom_description_tab', 98 );
- function woo_custom_description_tab( $tabs ) {
- $tabs['description']['callback'] = 'woo_custom_description_tab_content'; // Custom description callback
- return $tabs;
- }
- function woo_custom_description_tab_content() {
- echo '<h2>Custom Description</h2>';
- echo '<p>Here\'s a custom description</p>';
- }
- //End of Custom tab title
- 6. How to customized Shop page in woocommerce??
- archive.php belongs to shop page.
- 7.Product Review text edit :
- Go to woocommerce folder >> single-product-review.php
- 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.
- 9.http://www.pootlepress.com/2014/04/100-woocommerce-tips-tricks/
- <!--start rating -->
- 10.1.start rating :https://support.woothemes.com/hc/communities/public/questions/202760976-How-to-insert-star-ratings-to-plugins
- 11..https://support.woothemes.com/hc/communities/public/questions/201220087-Woocommerce-Causes-Slow-admin-ajax-php-Load-Times
- 10.2.http://stackoverflow.com/questions/14227121/how-do-you-add-the-star-ratings-for-products-in-woocommerce
- 10.3 http://wordpress.stackexchange.com/questions/134561/additional-fields-on-woocommerces-rating-system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement