Home / 2016 (page 2)

Yearly Archives: 2016

How to hack WhatsApp chat history & how to protect it ?

How to hack WhatsApp chat history & how to protect it ?

Read More »

How to hack wordpress via wp-config?

How to hack wordpress via wp-config?

Read More »

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  

Read More »

How to HACK Wifi Password?

Read More »

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 …

Read More »

Compare product button in header in magento.

Compare product button in header in magento. <?php $_helper = $this->helper(‘catalog/product_compare’); $_items = $_helper->getItemCount() > 0 ? $_helper->getItemCollection() : null; ?> <div class=”com”> <strong><span><?php echo $this->__(‘Compare Products’) ?> <?php if($_helper->getItemCount() > 0): ?> <small><?php echo $this->__(‘(%d)’, $_helper->getItemCount()) ?></small> <?php endif; ?> </span></strong> <?php if($_helper->getItemCount() > 0): ?> <script type=”text/javascript”>decorateList(‘compare-items’)</script> <div …

Read More »

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( …

Read More »

Error when reindexing Catalog URL Rewrites in magento admin

Error when reindexing Catalog URL Rewrites in magento admin. Follow the following steps for the reindexing Catalog URL Rewrites in magento. Open CMD or Xampp Shell Command window. see image given below[/accordion][accordion title=” Connect with database phpmyadmin MySQL.”] command is: mysql -u root -p pres enter after asked password then …

Read More »

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 …

Read More »

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

How to Secure Your Magento Admin to Restrict Access to Specific IP Address with HTACCESS? Copy the code and past in .htaccess file and change the ip with you. RewriteCond %{REQUEST_URI} ^/(index.php/)?admin/ [NC] RewriteCond %{REMOTE_ADDR} !^196.196.196.196 RewriteRule ^(.*)$ http://%{HTTP_HOST}/ [R=302,L] Example: RewriteCond %{REQUEST_URI} ^/(index.php/)?youradminname/ [NC] RewriteCond %{REMOTE_ADDR} !^ change here …

Read More »

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( …

Read More »

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] …

Read More »

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 ); …

Read More »

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 …

Read More »

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 …

Read More »

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 ) { …

Read More »

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. …

Read More »

How to hack wordpress website by linux?

WPScan.rb is a nifty bit of program that allows you to scan WordPress sites for information as well as do some fun stuff.Say for example you want to “hack” into your friends WordPress site :-)…or just get some information, whatever. I’m using BackTrack 5 r3 for this tutorial but you …

Read More »

Create swtch color on product list page in Magento

Copy and past the code . where you want to display color  below the name or above the name. follow the following steps: images updated in configurable simple product  acording to color . Change Visibility *: catalog search  List.phtml <? if($_product->getTypeId() == "configurable"): $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($_product); $simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions(); foreach($simple_collection …

Read More »

Magento 2 get custom category attribute

public function getCategoryCollection() { $collection = $this->_categoryCollection->create() ->addAttributeToSelect('*') ->addAttributeToFilter('is_home_category', '1'); return $collection; }

Read More »

Magento: How to check if current page is homepage?

1.) // Put your homepage-only code in here. 2.) if($this->getIsHomePage()) { echo 'You are in Homepage!'; } else { echo 'You are NOT in Homepage!'; } 3.) $routeName = Mage::app()->getRequest()->getRouteName(); $identifier = Mage::getSingleton('cms/page')->getIdentifier(); if($routeName == 'cms' && $identifier == 'home') { echo 'You are in Homepage!'; } else { echo …

Read More »

COMPARE MAGENTO 1 VS MAGENTO 2 TECHNOLOGY

Read More »

Magento 2 Overview – Features, Reviews, Tutorials and Demo

Magento leading online business solution exists for 5 years. It has been downloaded over 5 million times, and now Magento 2.0 is on the way, so get ready for the New Year present..

Read More »