This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN Cache_Assistance | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_METHOD} !POST | |
RewriteCond %{QUERY_STRING} !.*=.* | |
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$ | |
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC] | |
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] | |
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); | |
function custom_override_checkout_fields( $fields ) { | |
unset($fields['billing']['billing_company']); | |
unset($fields['billing']['billing_address_1']); | |
unset($fields['billing']['billing_address_2']); | |
unset($fields['billing']['billing_city']); | |
unset($fields['billing']['billing_postcode']); | |
unset($fields['billing']['billing_country']); | |
unset($fields['billing']['billing_state']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); | |
function custom_override_checkout_fields( $fields ) { | |
unset($fields['billing']['billing_company']); | |
unset($fields['billing']['billing_address_1']); | |
unset($fields['billing']['billing_address_2']); | |
unset($fields['billing']['billing_city']); | |
unset($fields['billing']['billing_postcode']); | |
unset($fields['billing']['billing_country']); | |
unset($fields['billing']['billing_state']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Product quantity input | |
* | |
* Extends the WooCommerce quantity input template to include the add_to_cart data attribute. | |
* | |
* @package WooCommerce-One-Page-Checkout/Templates | |
* @version 1.0 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div itemscope itemtype="http://schema.org/Product"> | |
<span itemprop="name">Kenmore White 17" Microwave</span> | |
<img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' /> | |
<div itemprop="aggregateRating" | |
itemscope itemtype="http://schema.org/AggregateRating"> | |
Rated <span itemprop="ratingValue">3.5</span>/5 | |
based on <span itemprop="reviewCount">11</span> customer reviews | |
</div> | |
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> | |
<!--price is 1000, a number, with locale-specific thousands separator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Admin new order email | |
* | |
* @author WooThemes | |
* @package WooCommerce/Templates/Emails/HTML | |
* @version 2.0.0 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BLOCK COUNTRY BY IP RANGE | |
# IncrediBILL's HTACCESS Tools | |
# http://incredibill.me | |
<Limit GET POST HEAD> | |
order allow,deny | |
# | |
# Block from AFGHANISTAN (AF) | |
# | |
deny from 27.116.56.0/22 | |
deny from 43.231.131.0/24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo apply_filters( 'woocommerce_demo_store', '<p class="demo_store">' . '<a href ="https://www.facebook.com/groups/advanced.woocommerce/permalink/1087929507888134/">' . $notice .'</a>' . '</p>' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Our hooked in function - $fields is passed via the filter! | |
function dropdown( $fields ) { | |
$fields['billing']['dropdown'] = array( | |
'label' => __('Howdy Manja. Would You Like Your Order Gift Wrapped for Free?', 'woocommerce'), | |
'placeholder' => _x('dropdown', 'placeholder', 'woocommerce'), | |
'required' => false, | |
'class' => array('form-row-wide'), | |
'clear' => true, | |
'type' => 'select', | |
'options' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function woo_custom_wp_mail_from() { | |
global $woocommerce; | |
return html_entity_decode( '[email protected]' ); | |
} | |
add_filter( 'wp_mail_from', 'woo_custom_wp_mail_from', 99 ); |
OlderNewer