Home / Woo-Commerce

Woo-Commerce

May, 2017

  • 1 May

    WooCommerce: See What’s Inside the Order Array (print_r)

    When coding in PHP for WooCommerce, sometimes you’ll need to know what’s inside the “Order Array”, so that you can use its elements to print some custom message on the thank you page, or maybe modify its default behaviour. There is a great PHP function that helps a lot – …

April, 2017

  • 26 April

    Bazar Shop v3.1.0 – Multi-Purpose e-Commerce Theme

    Demo: https://themeforest.net/item/bazar-shop-multipurpose-ecommerce-theme/3895788 Last Update 12 April 17 Created 29 January 13 Widget Ready Yes Compatible Browsers IE9, IE10, IE11, Firefox, Safari, Opera, Chrome Compatible With WooCommerce 2.6.x, WooCommerce 2.5, WooCommerce 2.4.x, WooCommerce 2.3.x Software Version WordPress 4.5.x, WordPress 4.5.2, WordPress 4.5.1, WordPress 4.5, WordPress 4.4.2, WordPress 4.4.1, WordPress 4.4, WordPress …

  • 25 April

    WooCommerce: Display Product Height, Length, Width @ Shop Page

    Another interestng snippet that could come very handy. How do we show product dimensions on the shop / category / tag / loop pages? WooCommerce: show height, width, length @ loop PHP Snippet: Display Product Height, Length, Width @ Shop Page – WooCommerce /** * @snippet Display Product Height, Length, …

  • 10 April

    WooCommerce: Buy 1 Product > Add Free Product to Cart Programmatically

    You can see this in action on my own website. When you add a product to cart with a specific SKU, such as the “Become a Supporter” product, another product is automatically added to cart and a 100% coupon discount is applied to it as well. To see this in …

  • 6 April

    WooCommerce: Disable Jetpack Publicize for Products

    When you enable the Jetpack plugin and its “Publicize” module, WordPress posts get automatically shared to the social media you pick. This, of course, includes also WooCommerce posts -> “products”. Well, what if you want to deactivate this function? WooCommerce Products: Disable Jetpack Publicize PHP Snippet: Disable Jetpack Publicize for …

  • 5 April

    WooCommerce: Display Weight @ Cart & Checkout

    Following up from the other day’s snippet (deny checkout based on cart weight), you might want to show what is the current Cart Weight on the cart and checkout page. So here you go! Show weight at WooCommerce Cart & Checkout PHP Snippet: Display Weight @ WooCommerce Cart & Checkout …

February, 2017

  • 11 February

    Download Profile Builder Pro v2.5.6 | Cozmoslabs Premium WordPress Profile Plugin

    Profile Builder Pro v2.5.6 – WordPress Profile Plugin Profile Builder Pro v2.5.6 is the all in one user registration and management plugin for WordPress sites. This WordpRess Plugin Will help you to Customize your website by adding front-end registration, profile and login forms. You can also Download Previous version of …

  • 11 February

    Download WooCommerce PDF Vouchers v2.9.7 | Codecanyon Premium WordPress Plugin

    WooCommerce PDF Vouchers v2.9.7 – WordPress Plugin free Download WooCommerce PDF Vouchers v2.9.7 WordPress Plugin allows you to sell voucher codes that can then be redeemed at a physical location. This Plugin is perfect for stores that wish to sell tickets to events, discount codes for on-site pickup, class admission …

May, 2016

  • 26 May

    How to hack wordpress via wp-config?

    How to hack wordpress via wp-config?

  • 24 May

    How to url redirect with another url in .htaccess file?

    How to url redirect with another url in .htaccess file? Copy the code and past in root folder .Htaccess  file . Redirect 302 /jewellry-photography http://www.circulatetechnology.com/ Redirect 302 /http:www.google.com http://www.circulatetechnology.com/ example like: http://www.circulatetechnology.com/jewellry-photography redirect on http://www.circulatetechnology.com and http:www.google.com it will be redirect on http://www.circulatetechnology.com  

  • 6 May

    Display Product Discount/Offer percentage in bubble WooCommerce

    Display Product Discount/Offer percentage in bubble WooCommerce. So what I have here is a code snippet to calculate individual product discount and display it in sale bubble. Replace all the codes in following files your theme folder/woocommerce/loop/sale-flash.php and  your theme folder/woocommerce/single-product/sale-flash.php with below code. <?php /** * Product loop sale flash …

  • 6 May

    WooCommerce Products Custom Fields with Discount price

    WooCommerce Products Custom Fields with Discount price. /***********************my custom code******************/ // Add save percent next to sale item prices. add_filter( ‘woocommerce_sale_price_html’, ‘woocommerce_custom_sales_price’, 10, 2 ); function woocommerce_custom_sales_price( $price, $product ) { $percentage = round( ( ( $product->regular_price – $product->sale_price ) / $product->regular_price ) * 100 ); echo $price . sprintf( …

March, 2016

  • 31 March

    How to Secure Your WordPress Admin to Restrict Access to Specific IP Address with HTACCESS?

    How to Secure Your WordPress Admin to Restrict Access to Specific IP Address with HTACCESS?   Copy and paste the code in .htaccess file. ErrorDocument 401 /path-to-your-site/index.php?error=404 ErrorDocument 403 /path-to-your-site/index.php?error=404 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR] RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ RewriteCond %{REMOTE_ADDR} !^IP Address One$ RewriteCond %{REMOTE_ADDR} !^IP Address …

  • 17 March

    How to Creating a Custom Post Type for product, slider, portfolio or News Sections in wordpress or Woocommerce

    Copy and paste the code in functions.php function my_custom_post_product() { $args = array(); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' ); <?php function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( …

February, 2016

  • 26 February

    WooCommerce All Shortcodes List here

    – shows the cart page – shows the checkout page – shows the order tracking form – shows the user account page [woocommerce_edit_account] – Edit account pages [woocommerce_change_password] – shows the change password page [woocommerce_view_order] – shows the user account view order page [woocommerce_logout] – shows the logout page [woocommerce_pay] …

  • 18 February

    How to Display Product specific category with WooCommerce ?

      How to Display Product specific category with WooCommerce ? <?php $cate = get_queried_object(); $cateID = $cate->term_id; $args = array( 'hierarchical' => 1, 'show_option_none' => '', 'hide_empty' => 0, 'parent' => $cateID, 'taxonomy' => 'product_cat' ); $subcats = get_categories($args); foreach ($subcats as $sc) { $link = get_term_link( $sc->slug, $sc->taxonomy ); …

  • 16 February

    HOW TO GET ALL CATEGORIES , ALL SUB-CATEGORIES AND All PRODUCTS LIST ACCORDING TO CATEGORY IN WOOCOMMERCE?

    HOW TO GET ALL CATEGORIES , ALL SUB-CATEGORIES AND All PRODUCTS LIST ACCORDING TO CATEGORY IN WOOCOMMERCE? <?php $taxonomy = 'product_cat'; $orderby = 'name'; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hierarchical = 1; // 1 for …

  • 12 February

    WOO-COMMERCE VARIABLE PRODUCT ADD CUSTOM FIELD IN VARIATIONS FOR VENDOR PRICE AND COMMISSION PRICE ON MRP

    Code copy and past in them functions.php , its work fine. /*************for variable product**************/ // Add Variation Settings add_action( 'woocommerce_product_after_variable_attributes', 'variation_settings_fields', 10, 3 ); /** * Create new fields for variations * */ function variation_settings_fields( $loop, $variation_data, $variation ) { // Number Field woocommerce_wp_text_input( array( 'id' => '_vendor_price[' . $variation->ID …

  • 12 February

    Woo-commerce simple product add custom field for vendor price and commission price on MRP

    Code copy and past in them functions.php , its work fine. add_action( 'woocommerce_product_options_pricing', 'wc_vendor_price_product_field' ); function wc_vendor_price_product_field() { woocommerce_wp_text_input( array( 'id' => 'vendor_price', 'class' => 'wc_input_price short', 'label' => __( 'Vendor Price', 'woocommerce' ) . ' (RS) ' ) ); } add_action( 'save_post', 'wc_vendor_price_save_product' ); function wc_vendor_price_save_product( $product_id ) { …

  • 12 February

    WooCommerce Product Variations Grid or Table form with add to cart button

    WooCommerce Product Variations Grid or Table form with add to cart button. Copy and Paste the code in your theme function.php function find_valid_variations() { global $product; $variations = $product->get_available_variations(); $attributes = $product->get_attributes(); $new_variants = array(); // Loop through all variations foreach( $variations as $variation ) { // Peruse the attributes. …