Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. woocommerce useful links
- http://www.skyverge.com/blog/category/tutorials/woocommerce-tutorials/
- http://www.woothemes.com/woocommerce/
- http://docs.woothemes.com/documentation/plugins/woocommerce/
- http://code.tutsplus.com/articles/an-introduction-to-theming-woocommerce-for-wordpress--wp-31577
- https://support.woothemes.com/hc/en-us/articles/203106357-Add-Login-Logout-Links-To-The-Custom-Primary-Menu-Area
- http://docs.woothemes.com/document/woocommerce-shortcodes/
- http://www.woothemes.com/2014/08/five-quick-woocommerce-customization-tips/
- http://www.skyverge.com/blog/get-woocommerce-page-urls/
- http://www.pootlepress.com/2014/04/100-woocommerce-tips-tricks/
- 2.woocomarce page এর Log-in, Account, Cart, Chakout কে ডাইনামিক করার জন্য header.php পেজের শুরুতে নিচের কোডটি ব্যাবহার করুন।
- <?php
- global $woocommerce;
- ?>
- 3.pages - shortcode
- My Account - [woocommerce_my_account]
- cart - [woocommerce_cart]
- Checkout - [woocommerce_checkout]
- Wishlist - [yith_wcwl_wishlist]
- 4. //NUMBER OF PRODICTS TO DISPLAY ON SHOP PAGE
- add_filter('loop_shop_per_page', create_function('$cols', 'return 4;'));
- এখানে একটা ফাংশন তৈরী করা হয়েছে ভেরিযেবল $cols হল column, retun 4 হল কতগুলো product shop page a প্রদর্শন করবে।এখানে আপনি ১২ দিলে page a ১২ টি product প্রদর্শন করবে।
- 5./* for log in log out menu https://wordpress.org/support/topic/send-users-to-woocommerce-my-account-page-instead-of-default-wp-loginlogout-pa */
- /*Add LoginOut in Top Menu */
- add_filter( 'wp_nav_menu_items', 'add_loginout_link', 10, 2 );
- function add_loginout_link( $items, $args ) {
- if (is_user_logged_in() && $args->theme_location == 'main_top_menu') {
- $items .= '
- <li><a href="'. wp_logout_url( get_permalink( wc_get_page_id( 'myaccount' ) ) ) .'">Log Out</a></li>
- <li><a href="' . get_permalink( wc_get_page_id( 'myaccount' ) ) . '">My Account</a></li>
- ';
- }
- elseif (!is_user_logged_in() && $args->theme_location == 'main_top_menu') {
- $items .= '
- <li><a href="' . get_permalink( wc_get_page_id( 'myaccount' ) ) . '">Log In</a></li>'; } return $items; }
- 6. for Enable registration on the "My Account" page go to WooCommerce > Settings > go to Accounts tab > in Registration Options Enable registration on the "My Account" page
- 7.plugin - https://wordpress.org/plugins/yith-woocommerce-wishlist/
- 8.quickstart theme http://www.woothemes.com/storefront/
- 9.https://github.com/bassjobsen/woocommerce-twitterbootstrap
- https://github.com/bassjobsen/jbst
- https://wordpress.org/plugins/woocommerce-twitterbootstrap/
- 9.How to fix: Default WooCommerce CSS not working properly
- <body <?php body_class(); ?>>
- or //link http://stanhub.com/how-to-fix-default-woocommerce-css-not-working-properly/
- <div class="woocommerce">
- page content goes here
- </div>
- 10 . page link - <a href="<?php bloginfo('home'); ?>/wp-login.php"></a> //default wp login link
- <a href="<?php bloginfo('home'); ?>/wp-login.php?action=register">Register</a> // default wp Register link
- <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>">My account </a> // woothemes My Account link http://docs.woothemes.com/document/display-my-account-link-in-a-template-file/
- <a href="<?php echo get_permalink( get_option('woocommerce_cart_page_id') ); ?>">Cart</a> // Cart url
- <a href="<?php echo get_permalink( get_option('woocommerce_checkout_page_id') ); ?>">checkout</a> //checkout
- <a href="<?php echo get_permalink( get_option('woocommerce_shop_page_id') ); ?>">Shop</a> // Shop url
- <a href="<?php echo get_permalink( get_option('yith_wcwl_wishlist_page_id') ); ?>">Wishlist</a>//Wishlist
- 11.// Customize Woocommerce Related Products Output
- function woocommerce_output_related_products() {
- woocommerce_related_products(6,3); // Display 6 products in 3 columns
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement