Fixed typos
This commit is contained in:
parent
46c0f6827e
commit
ae7899c67b
|
@ -985,7 +985,7 @@ class WC_Product {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the crosssell product ids.
|
* Returns the cross sell product ids.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return array
|
* @return array
|
||||||
|
|
|
@ -130,7 +130,7 @@ abstract class WC_Settings_API {
|
||||||
/**
|
/**
|
||||||
* get_option function.
|
* get_option function.
|
||||||
*
|
*
|
||||||
* Gets and option from the settings API, using defaults if neccessary to prevent undefined notices.
|
* Gets and option from the settings API, using defaults if necessary to prevent undefined notices.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
|
|
|
@ -88,7 +88,7 @@ abstract class WC_Shipping_Method extends WC_Settings_API {
|
||||||
$total_cost = ( is_array( $cost ) ) ? array_sum( $cost ) : $cost;
|
$total_cost = ( is_array( $cost ) ) ? array_sum( $cost ) : $cost;
|
||||||
|
|
||||||
// Taxes - if not an array and not set to false, calc tax based on cost and passed calc_tax variable
|
// Taxes - if not an array and not set to false, calc tax based on cost and passed calc_tax variable
|
||||||
// This saves shipping methods having to do compelex tax calculations
|
// This saves shipping methods having to do complex tax calculations
|
||||||
if ( ! is_array( $taxes ) && $taxes !== false && $total_cost > 0 && get_option( 'woocommerce_calc_taxes' ) == 'yes' && $this->tax_status == 'taxable' ) {
|
if ( ! is_array( $taxes ) && $taxes !== false && $total_cost > 0 && get_option( 'woocommerce_calc_taxes' ) == 'yes' && $this->tax_status == 'taxable' ) {
|
||||||
|
|
||||||
$_tax = new WC_Tax();
|
$_tax = new WC_Tax();
|
||||||
|
|
|
@ -58,7 +58,7 @@ class WC_Cart {
|
||||||
/** @var float Discounts after tax. */
|
/** @var float Discounts after tax. */
|
||||||
public $discount_total;
|
public $discount_total;
|
||||||
|
|
||||||
/** @var float Total for additonal fees. */
|
/** @var float Total for additional fees. */
|
||||||
public $fee_total;
|
public $fee_total;
|
||||||
|
|
||||||
/** @var float Shipping cost. */
|
/** @var float Shipping cost. */
|
||||||
|
@ -1355,7 +1355,7 @@ class WC_Cart {
|
||||||
*/
|
*/
|
||||||
$_product = $values['data'];
|
$_product = $values['data'];
|
||||||
|
|
||||||
// Base Price (inlusive of tax for now)
|
// Base Price (inclusive of tax for now)
|
||||||
$base_price = $_product->get_price();
|
$base_price = $_product->get_price();
|
||||||
|
|
||||||
// Base Price Adjustment
|
// Base Price Adjustment
|
||||||
|
@ -1620,7 +1620,7 @@ class WC_Cart {
|
||||||
*
|
*
|
||||||
* This lets us calculate costs for carts that are shipped to multiple locations.
|
* This lets us calculate costs for carts that are shipped to multiple locations.
|
||||||
*
|
*
|
||||||
* Shipping methods are responsble for looping through these packages.
|
* Shipping methods are responsible for looping through these packages.
|
||||||
*
|
*
|
||||||
* By default we pass the cart itself as a package - plugins can change this
|
* By default we pass the cart itself as a package - plugins can change this
|
||||||
* through the filter and break it up.
|
* through the filter and break it up.
|
||||||
|
|
|
@ -37,7 +37,7 @@ class WC_Checkout {
|
||||||
private $customer_id;
|
private $customer_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for the checkout class. Hooks in methods and defines eheckout fields.
|
* Constructor for the checkout class. Hooks in methods and defines checkout fields.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return void
|
* @return void
|
||||||
|
|
|
@ -53,7 +53,7 @@ class WC_Coupon {
|
||||||
/** @public int Coupon usage count. */
|
/** @public int Coupon usage count. */
|
||||||
public $usage_count;
|
public $usage_count;
|
||||||
|
|
||||||
/** @public string Expirey date. */
|
/** @public string Expiry date. */
|
||||||
public $expiry_date;
|
public $expiry_date;
|
||||||
|
|
||||||
/** @public string "yes" if applied before tax. */
|
/** @public string "yes" if applied before tax. */
|
||||||
|
@ -244,7 +244,7 @@ class WC_Coupon {
|
||||||
/**
|
/**
|
||||||
* is_valid function.
|
* is_valid function.
|
||||||
*
|
*
|
||||||
* Check if a coupon is valid. Return a reason code if invaid. Reason codes:
|
* Check if a coupon is valid. Return a reason code if invalid. Reason codes:
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return bool|WP_Error validity or a WP_Error if not valid
|
* @return bool|WP_Error validity or a WP_Error if not valid
|
||||||
|
|
|
@ -76,7 +76,7 @@ class WC_Logger {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear entrys from chosen file.
|
* Clear entries from chosen file.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param mixed $handle
|
* @param mixed $handle
|
||||||
|
|
|
@ -44,7 +44,7 @@ class WC_Product_Simple extends WC_Product {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sync grouped products with the childs lowest price (so they can be sorted by price accurately).
|
* Sync grouped products with the children lowest price (so they can be sorted by price accurately).
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return void
|
* @return void
|
||||||
|
|
|
@ -437,7 +437,7 @@ class WC_Product_Variable extends WC_Product {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sync variable product prices with the childs lowest/highest prices.
|
* Sync variable product prices with the children lowest/highest prices.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return void
|
* @return void
|
||||||
|
|
|
@ -166,7 +166,7 @@ class WC_Query {
|
||||||
public function the_posts( $posts, $query = false ) {
|
public function the_posts( $posts, $query = false ) {
|
||||||
global $woocommerce;
|
global $woocommerce;
|
||||||
|
|
||||||
// Abort if theres no query
|
// Abort if there's no query
|
||||||
if ( ! $query )
|
if ( ! $query )
|
||||||
return $posts;
|
return $posts;
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ class WC_Shipping {
|
||||||
* Calculate shipping for (multiple) packages of cart items.
|
* Calculate shipping for (multiple) packages of cart items.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param array $packages multi-dimentional array of cart items to calc shipping for
|
* @param array $packages multi-dimensional array of cart items to calc shipping for
|
||||||
*/
|
*/
|
||||||
function calculate_shipping( $packages = array() ) {
|
function calculate_shipping( $packages = array() ) {
|
||||||
global $woocommerce;
|
global $woocommerce;
|
||||||
|
@ -319,7 +319,7 @@ class WC_Shipping {
|
||||||
* Gets all available shipping methods which have rates.
|
* Gets all available shipping methods which have rates.
|
||||||
*
|
*
|
||||||
* @todo Currently we support 1 shipping method per order so this function merges rates - in the future we should offer
|
* @todo Currently we support 1 shipping method per order so this function merges rates - in the future we should offer
|
||||||
* 1 rate per package and list them accordinly for user selection
|
* 1 rate per package and list them accordingly for user selection
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return array
|
* @return array
|
||||||
|
|
|
@ -450,7 +450,7 @@ class WC_Shortcodes {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a single prodcut
|
* Display a single product
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param array $atts
|
* @param array $atts
|
||||||
|
@ -510,7 +510,7 @@ class WC_Shortcodes {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a single prodcut price + cart button
|
* Display a single product price + cart button
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param array $atts
|
* @param array $atts
|
||||||
|
|
|
@ -216,7 +216,7 @@ class WC_Tax {
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Prices which include tax should always use the base rate if we don't know where the user is located
|
// Prices which include tax should always use the base rate if we don't know where the user is located
|
||||||
// Prices exlcuding tax however should just not add any taxes, as they will be added during checkout
|
// Prices excluding tax however should just not add any taxes, as they will be added during checkout
|
||||||
if ( $woocommerce->cart->prices_include_tax || get_option( 'woocommerce_default_customer_address' ) == 'base' ) {
|
if ( $woocommerce->cart->prices_include_tax || get_option( 'woocommerce_default_customer_address' ) == 'base' ) {
|
||||||
$country = $woocommerce->countries->get_base_country();
|
$country = $woocommerce->countries->get_base_country();
|
||||||
$state = $woocommerce->countries->get_base_state();
|
$state = $woocommerce->countries->get_base_state();
|
||||||
|
@ -346,7 +346,7 @@ class WC_Tax {
|
||||||
* @param bool passed price includes tax
|
* @param bool passed price includes tax
|
||||||
* @return array array of rates/amounts
|
* @return array array of rates/amounts
|
||||||
*/
|
*/
|
||||||
public function calc_tax( $price, $rates, $price_includes_tax = true, $supress_rounding = false ) {
|
public function calc_tax( $price, $rates, $price_includes_tax = true, $suppress_rounding = false ) {
|
||||||
|
|
||||||
$price = $price * 100; // To avoid float rounding errors, work with integers (pence)
|
$price = $price * 100; // To avoid float rounding errors, work with integers (pence)
|
||||||
|
|
||||||
|
@ -378,14 +378,14 @@ class WC_Tax {
|
||||||
else
|
else
|
||||||
$tax_amount = ( $the_rate / $regular_tax_rate ) * $non_compound_price;
|
$tax_amount = ( $the_rate / $regular_tax_rate ) * $non_compound_price;
|
||||||
|
|
||||||
// ADVANCED: Allow third parties to modifiy this rate
|
// ADVANCED: Allow third parties to modify this rate
|
||||||
$tax_amount = apply_filters( 'woocommerce_price_inc_tax_amount', $tax_amount, $key, $rate, $price, $non_compound_price );
|
$tax_amount = apply_filters( 'woocommerce_price_inc_tax_amount', $tax_amount, $key, $rate, $price, $non_compound_price );
|
||||||
|
|
||||||
// Back to pounds
|
// Back to pounds
|
||||||
$tax_amount = ( $tax_amount / 100 );
|
$tax_amount = ( $tax_amount / 100 );
|
||||||
|
|
||||||
// Rounding
|
// Rounding
|
||||||
if ( get_option( 'woocommerce_tax_round_at_subtotal' ) == 'no' && ! $supress_rounding ) {
|
if ( get_option( 'woocommerce_tax_round_at_subtotal' ) == 'no' && ! $suppress_rounding ) {
|
||||||
$tax_amount = $this->round( $tax_amount );
|
$tax_amount = $this->round( $tax_amount );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -408,14 +408,14 @@ class WC_Tax {
|
||||||
|
|
||||||
$tax_amount = $price * ( $rate['rate'] / 100 );
|
$tax_amount = $price * ( $rate['rate'] / 100 );
|
||||||
|
|
||||||
// ADVANCED: Allow third parties to modifiy this rate
|
// ADVANCED: Allow third parties to modify this rate
|
||||||
$tax_amount = apply_filters( 'woocommerce_price_ex_tax_amount', $tax_amount, $key, $rate, $price );
|
$tax_amount = apply_filters( 'woocommerce_price_ex_tax_amount', $tax_amount, $key, $rate, $price );
|
||||||
|
|
||||||
// Back to pounds
|
// Back to pounds
|
||||||
$tax_amount = ( $tax_amount / 100 );
|
$tax_amount = ( $tax_amount / 100 );
|
||||||
|
|
||||||
// Rounding
|
// Rounding
|
||||||
if ( get_option( 'woocommerce_tax_round_at_subtotal' ) == 'no' && ! $supress_rounding ) {
|
if ( get_option( 'woocommerce_tax_round_at_subtotal' ) == 'no' && ! $suppress_rounding ) {
|
||||||
$tax_amount = $this->round( $tax_amount );
|
$tax_amount = $this->round( $tax_amount );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -447,7 +447,7 @@ class WC_Tax {
|
||||||
$tax_amount = ( $tax_amount / 100 );
|
$tax_amount = ( $tax_amount / 100 );
|
||||||
|
|
||||||
// Rounding
|
// Rounding
|
||||||
if ( get_option( 'woocommerce_tax_round_at_subtotal' ) == 'no' && ! $supress_rounding ) {
|
if ( get_option( 'woocommerce_tax_round_at_subtotal' ) == 'no' && ! $suppress_rounding ) {
|
||||||
$tax_amount = $this->round( $tax_amount );
|
$tax_amount = $this->round( $tax_amount );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -461,7 +461,7 @@ class WC_Tax {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return apply_filters( 'woocommerce_calc_tax', $taxes, $price, $rates, $price_includes_tax, $supress_rounding );
|
return apply_filters( 'woocommerce_calc_tax', $taxes, $price, $rates, $price_includes_tax, $suppress_rounding );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -36,7 +36,7 @@ class WC_Email_Customer_Invoice extends WC_Email {
|
||||||
$this->subject_paid = __( 'Your {blogname} order from {order_date}', 'woocommerce');
|
$this->subject_paid = __( 'Your {blogname} order from {order_date}', 'woocommerce');
|
||||||
$this->heading_paid = __( 'Order {order_number} details', 'woocommerce');
|
$this->heading_paid = __( 'Order {order_number} details', 'woocommerce');
|
||||||
|
|
||||||
// Call parent constuctor
|
// Call parent constructor
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class WC_Email_Customer_Note extends WC_Email {
|
||||||
// Triggers
|
// Triggers
|
||||||
add_action( 'woocommerce_new_customer_note_notification', array( $this, 'trigger' ) );
|
add_action( 'woocommerce_new_customer_note_notification', array( $this, 'trigger' ) );
|
||||||
|
|
||||||
// Call parent constuctor
|
// Call parent constructor
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ class WC_Email_Customer_Processing_Order extends WC_Email {
|
||||||
add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'trigger' ) );
|
add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'trigger' ) );
|
||||||
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ) );
|
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ) );
|
||||||
|
|
||||||
// Call parent constuctor
|
// Call parent constructor
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ class WC_Email_Customer_Reset_Password extends WC_Email {
|
||||||
// Trigger
|
// Trigger
|
||||||
add_action( 'woocommerce_reset_password_notification', array( $this, 'trigger' ), 10, 2 );
|
add_action( 'woocommerce_reset_password_notification', array( $this, 'trigger' ), 10, 2 );
|
||||||
|
|
||||||
// Call parent constuctor
|
// Call parent constructor
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class WC_Email_New_Order extends WC_Email {
|
||||||
add_action( 'woocommerce_order_status_failed_to_completed_notification', array( $this, 'trigger' ) );
|
add_action( 'woocommerce_order_status_failed_to_completed_notification', array( $this, 'trigger' ) );
|
||||||
add_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $this, 'trigger' ) );
|
add_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $this, 'trigger' ) );
|
||||||
|
|
||||||
// Call parent constuctor
|
// Call parent constructor
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
// Other settings
|
// Other settings
|
||||||
|
|
|
@ -14,7 +14,7 @@ class Mijireh_Rest {
|
||||||
public $curl_opts = array(
|
public $curl_opts = array(
|
||||||
CURLOPT_RETURNTRANSFER => true, // return result instead of echoing
|
CURLOPT_RETURNTRANSFER => true, // return result instead of echoing
|
||||||
CURLOPT_SSL_VERIFYPEER => false, // stop cURL from verifying the peer's certificate
|
CURLOPT_SSL_VERIFYPEER => false, // stop cURL from verifying the peer's certificate
|
||||||
CURLOPT_MAXREDIRS => 10 // but dont redirect more than 10 times
|
CURLOPT_MAXREDIRS => 10 // but don't redirect more than 10 times
|
||||||
);
|
);
|
||||||
|
|
||||||
public $base_url;
|
public $base_url;
|
||||||
|
|
|
@ -145,7 +145,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
|
||||||
'invoice_prefix' => array(
|
'invoice_prefix' => array(
|
||||||
'title' => __( 'Invoice Prefix', 'woocommerce' ),
|
'title' => __( 'Invoice Prefix', 'woocommerce' ),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'description' => __( 'Please enter a prefix for your invoice numbers. If you use your PayPal account for multiple stores ensure this prefix is unqiue as PayPal will not allow orders with the same invoice number.', 'woocommerce' ),
|
'description' => __( 'Please enter a prefix for your invoice numbers. If you use your PayPal account for multiple stores ensure this prefix is unique as PayPal will not allow orders with the same invoice number.', 'woocommerce' ),
|
||||||
'default' => 'WC-',
|
'default' => 'WC-',
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
),
|
),
|
||||||
|
@ -317,7 +317,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
|
||||||
// Shipping Cost
|
// Shipping Cost
|
||||||
// No longer using shipping_1 because
|
// No longer using shipping_1 because
|
||||||
// a) paypal ignore it if *any* shipping rules are within paypal
|
// a) paypal ignore it if *any* shipping rules are within paypal
|
||||||
// b) paypal ignore anyhing over 5 digits, so 999.99 is the max
|
// b) paypal ignore anything over 5 digits, so 999.99 is the max
|
||||||
// $paypal_args['shipping_1'] = number_format( $order->get_shipping() + $order->get_shipping_tax() , 2, '.', '' );
|
// $paypal_args['shipping_1'] = number_format( $order->get_shipping() + $order->get_shipping_tax() , 2, '.', '' );
|
||||||
if ( ( $order->get_shipping() + $order->get_shipping_tax() ) > 0 ) {
|
if ( ( $order->get_shipping() + $order->get_shipping_tax() ) > 0 ) {
|
||||||
$paypal_args['item_name_2'] = __( 'Shipping via', 'woocommerce' ) . ' ' . ucwords( $order->shipping_method_title );
|
$paypal_args['item_name_2'] = __( 'Shipping via', 'woocommerce' ) . ' ' . ucwords( $order->shipping_method_title );
|
||||||
|
|
|
@ -27,7 +27,7 @@ class ShareYourCartWooCommerceEx extends ShareYourCartWooCommerce {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function showAdminMenu() {
|
public function showAdminMenu() {
|
||||||
//since we have allready integrated this in our own settings page,
|
//since we have already integrated this in our own settings page,
|
||||||
//leave this function empty
|
//leave this function empty
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,8 +46,8 @@ class ShareYourCartWooCommerceEx extends ShareYourCartWooCommerce {
|
||||||
$this->settings['enabled'] = ( $value == 'active' ? 'yes' : 'no' );
|
$this->settings['enabled'] = ( $value == 'active' ? 'yes' : 'no' );
|
||||||
break;
|
break;
|
||||||
case "plugin_current_version":
|
case "plugin_current_version":
|
||||||
//this setting needs to be set globaly as well, in order to be recognized by other ShareYourCart integrations,
|
//this setting needs to be set globally as well, in order to be recognized by other ShareYourCart integrations,
|
||||||
//and to not interfear with one-another
|
//and to not interfere with one-another
|
||||||
parent::setConfigValue($field, $value);
|
parent::setConfigValue($field, $value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,7 +202,7 @@ class ShareYourCartWooCommerce extends ShareYourCartWordpressPlugin{
|
||||||
|
|
||||||
//WooCommerce actually echoes the image
|
//WooCommerce actually echoes the image
|
||||||
ob_start();
|
ob_start();
|
||||||
echo $product->get_image(); //older WooCommerce versions might allready echo, but newer versions don't, so force it anyway
|
echo $product->get_image(); //older WooCommerce versions might already echo, but newer versions don't, so force it anyway
|
||||||
$image = ob_get_clean();
|
$image = ob_get_clean();
|
||||||
|
|
||||||
//check is image actually a HTML img entity
|
//check is image actually a HTML img entity
|
||||||
|
|
|
@ -90,7 +90,7 @@ class ShareYourCartAPI {
|
||||||
$httpCode = curl_getinfo($session, CURLINFO_HTTP_CODE);
|
$httpCode = curl_getinfo($session, CURLINFO_HTTP_CODE);
|
||||||
curl_close($session);
|
curl_close($session);
|
||||||
|
|
||||||
// If the operation was not succesfull, print the error
|
// If the operation was not successful, print the error
|
||||||
if($httpCode != 200)
|
if($httpCode != 200)
|
||||||
throw new Exception($response);
|
throw new Exception($response);
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ class ShareYourCartAPI {
|
||||||
$httpCode = curl_getinfo($session, CURLINFO_HTTP_CODE);
|
$httpCode = curl_getinfo($session, CURLINFO_HTTP_CODE);
|
||||||
curl_close($session);
|
curl_close($session);
|
||||||
|
|
||||||
//if the operation was not succesfull, print the error
|
//if the operation was not successful, print the error
|
||||||
if($httpCode != 200)
|
if($httpCode != 200)
|
||||||
throw new Exception(SyC::t('sdk',"Coupon Invalid: {coupon}", array('{coupon}' => $response)));
|
throw new Exception(SyC::t('sdk',"Coupon Invalid: {coupon}", array('{coupon}' => $response)));
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ class ShareYourCartAPI {
|
||||||
$httpCode = curl_getinfo($session, CURLINFO_HTTP_CODE);
|
$httpCode = curl_getinfo($session, CURLINFO_HTTP_CODE);
|
||||||
curl_close($session);
|
curl_close($session);
|
||||||
|
|
||||||
// If the operation was not succesfull, return FALSE
|
// If the operation was not successful, return FALSE
|
||||||
if($httpCode != 200) {
|
if($httpCode != 200) {
|
||||||
if(isset($message)) $message = $response;
|
if(isset($message)) $message = $response;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI {
|
||||||
|
|
||||||
//set exception handler
|
//set exception handler
|
||||||
if(set_exception_handler(array(&$this,'UncaughtExceptionHandler')) !== null)
|
if(set_exception_handler(array(&$this,'UncaughtExceptionHandler')) !== null)
|
||||||
restore_exception_handler(); //if there allready was an exception handler, revert back to it
|
restore_exception_handler(); //if there already was an exception handler, revert back to it
|
||||||
|
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Return FALSE if the curent single product is out of stock, or not
|
* Return FALSE if the current single product is out of stock, or not
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function isOutOfStock(){
|
public function isOutOfStock(){
|
||||||
|
@ -225,7 +225,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Check if this instance can load, or not!
|
* Check if this instance can load, or not!
|
||||||
* This is ment so that at ALL times, only the latest plugin version will work
|
* This is meant so that at ALL times, only the latest plugin version will work
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
protected function canLoad()
|
protected function canLoad()
|
||||||
|
@ -698,7 +698,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI {
|
||||||
//since we might have changed the status, REFRESH
|
//since we might have changed the status, REFRESH
|
||||||
$refresh = true;
|
$refresh = true;
|
||||||
}
|
}
|
||||||
//check if the user want's to recover his account
|
//check if the user wants to recover his account
|
||||||
else if (@$_REQUEST['syc-account'] === 'recover'){
|
else if (@$_REQUEST['syc-account'] === 'recover'){
|
||||||
|
|
||||||
//by default, show the form if we are here
|
//by default, show the form if we are here
|
||||||
|
@ -1071,7 +1071,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI {
|
||||||
|
|
||||||
$this->executeNonQuery($sql);
|
$this->executeNonQuery($sql);
|
||||||
|
|
||||||
//we can't relly on the fact that the table has been properly created, so check it!
|
//we can't rely on the fact that the table has been properly created, so check it!
|
||||||
if(!$this->existsTable($tableName))
|
if(!$this->existsTable($tableName))
|
||||||
throw new Exception(SyC::t('sdk','Cannot create table "{table_name}". Check your database permissions or manually run the following SQL command and try again:<br /><strong>{sql}</strong>', array('{table_name}' => $tableName,'{sql}' => nl2br($sql))));
|
throw new Exception(SyC::t('sdk','Cannot create table "{table_name}". Check your database permissions or manually run the following SQL command and try again:<br /><strong>{sql}</strong>', array('{table_name}' => $tableName,'{sql}' => nl2br($sql))));
|
||||||
}
|
}
|
||||||
|
@ -1099,7 +1099,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI {
|
||||||
$sql = "DROP TABLE $tableName";
|
$sql = "DROP TABLE $tableName";
|
||||||
$this->executeNonQuery($sql);
|
$this->executeNonQuery($sql);
|
||||||
|
|
||||||
//we can't relly on the fact that the table has been properly droped, so check it!
|
//we can't rely on the fact that the table has been properly dropped, so check it!
|
||||||
if($this->existsTable($tableName))
|
if($this->existsTable($tableName))
|
||||||
throw new Exception(SyC::t('sdk','Cannot drop table "{table_name}". Check your database permissions or manually run the following SQL command and try again:<br /><strong>{sql}</strong>', array('{table_name}' => $tableName, '{sql}' => nl2br($sql))));
|
throw new Exception(SyC::t('sdk','Cannot drop table "{table_name}". Check your database permissions or manually run the following SQL command and try again:<br /><strong>{sql}</strong>', array('{table_name}' => $tableName, '{sql}' => nl2br($sql))));
|
||||||
}
|
}
|
||||||
|
@ -1118,7 +1118,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI {
|
||||||
//check if there is a file in the specified location
|
//check if there is a file in the specified location
|
||||||
if(!file_exists($_viewFile_)){
|
if(!file_exists($_viewFile_)){
|
||||||
|
|
||||||
//the view has not been overrided, so use the SDK one
|
//the view has not been overridden, so use the SDK one
|
||||||
$_viewFile_ = dirname(__FILE__) . "/views/$_viewName_.php";
|
$_viewFile_ = dirname(__FILE__) . "/views/$_viewName_.php";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1266,7 +1266,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* User to catch any unhandled exceptions and print them nicelly
|
* User to catch any unhandled exceptions and print them nicely
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function UncaughtExceptionHandler(Exception $e) {
|
public function UncaughtExceptionHandler(Exception $e) {
|
||||||
|
|
|
@ -71,7 +71,7 @@ return array (
|
||||||
'Save' => '',
|
'Save' => '',
|
||||||
'Show button by default on: ' => '',
|
'Show button by default on: ' => '',
|
||||||
'Standard Button' => '',
|
'Standard Button' => '',
|
||||||
'This plugin allows you to easilly set the above meta properties directly in the post or page edit form' => '',
|
'This plugin allows you to easily set the above meta properties directly in the post or page edit form' => '',
|
||||||
'To position the {brand} button, you need to override the following CSS classes' => '',
|
'To position the {brand} button, you need to override the following CSS classes' => '',
|
||||||
'Use Image Button' => '',
|
'Use Image Button' => '',
|
||||||
'Use Standard Button' => '',
|
'Use Standard Button' => '',
|
||||||
|
|
|
@ -71,7 +71,7 @@ return array (
|
||||||
'Save' => '',
|
'Save' => '',
|
||||||
'Show button by default on: ' => '',
|
'Show button by default on: ' => '',
|
||||||
'Standard Button' => '',
|
'Standard Button' => '',
|
||||||
'This plugin allows you to easilly set the above meta properties directly in the post or page edit form' => '',
|
'This plugin allows you to easily set the above meta properties directly in the post or page edit form' => '',
|
||||||
'To position the {brand} button, you need to override the following CSS classes' => '',
|
'To position the {brand} button, you need to override the following CSS classes' => '',
|
||||||
'Use Image Button' => '',
|
'Use Image Button' => '',
|
||||||
'Use Standard Button' => '',
|
'Use Standard Button' => '',
|
||||||
|
@ -79,6 +79,6 @@ return array (
|
||||||
'You can choose how much of a discount to give (in fixed amount, percentage, or free shipping) and to which social media channels it should it be applied. You can also define what the advertisement should say, so that it fully benefits your sales.' => '',
|
'You can choose how much of a discount to give (in fixed amount, percentage, or free shipping) and to which social media channels it should it be applied. You can also define what the advertisement should say, so that it fully benefits your sales.' => '',
|
||||||
'or' => '',
|
'or' => '',
|
||||||
'{brand} helps you get more customers by motivating satisfied customers to talk with their friends about your products. Each customer that promotes your products, via social media, will receive a coupon that they can apply to their shopping cart in order to get a small discount.' => '',
|
'{brand} helps you get more customers by motivating satisfied customers to talk with their friends about your products. Each customer that promotes your products, via social media, will receive a coupon that they can apply to their shopping cart in order to get a small discount.' => '',
|
||||||
'{css_class} for the horrizontal button' => '',
|
'{css_class} for the horizontal button' => '',
|
||||||
'{css_class} for the vertical button' => '',
|
'{css_class} for the vertical button' => '',
|
||||||
);
|
);
|
||||||
|
|
|
@ -71,7 +71,7 @@ return array (
|
||||||
'Save' => '',
|
'Save' => '',
|
||||||
'Show button by default on: ' => '',
|
'Show button by default on: ' => '',
|
||||||
'Standard Button' => '',
|
'Standard Button' => '',
|
||||||
'This plugin allows you to easilly set the above meta properties directly in the post or page edit form' => '',
|
'This plugin allows you to easily set the above meta properties directly in the post or page edit form' => '',
|
||||||
'To position the {brand} button, you need to override the following CSS classes' => '',
|
'To position the {brand} button, you need to override the following CSS classes' => '',
|
||||||
'Use Image Button' => '',
|
'Use Image Button' => '',
|
||||||
'Use Standard Button' => '',
|
'Use Standard Button' => '',
|
||||||
|
|
|
@ -45,12 +45,12 @@
|
||||||
</head>
|
</head>
|
||||||
...
|
...
|
||||||
</html>'))); ?></code></pre></li>
|
</html>'))); ?></code></pre></li>
|
||||||
<li><?php echo SyC::t('sdk','This plugin allows you to easilly set the above meta properties directly in the post or page edit form'); ?></li>
|
<li><?php echo SyC::t('sdk','This plugin allows you to easily set the above meta properties directly in the post or page edit form'); ?></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<li><p><?php echo SyC::t('sdk','To position the {brand} button, you need to override the following CSS classes', array('{brand}' => '<a href="http://www.shareyourcart.com" target="_blank" title="Shareyourcart™" onclick=" if(_gaq) _gaq.push([\'_trackPageview\', \'/admin/documentation/logo-click\']);">ShareYourCart™</a>')); ?></p>
|
<li><p><?php echo SyC::t('sdk','To position the {brand} button, you need to override the following CSS classes', array('{brand}' => '<a href="http://www.shareyourcart.com" target="_blank" title="Shareyourcart™" onclick=" if(_gaq) _gaq.push([\'_trackPageview\', \'/admin/documentation/logo-click\']);">ShareYourCart™</a>')); ?></p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><?php echo SyC::t('sdk','{css_class} for the horrizontal button', array('{css_class}' => '<code>button_iframe-normal</code>')); ?></li>
|
<li><?php echo SyC::t('sdk','{css_class} for the horizontal button', array('{css_class}' => '<code>button_iframe-normal</code>')); ?></li>
|
||||||
<li><?php echo SyC::t('sdk','{css_class} for the vertical button', array('{css_class}' => '<code>button_iframe</code>')); ?></li>
|
<li><?php echo SyC::t('sdk','{css_class} for the vertical button', array('{css_class}' => '<code>button_iframe</code>')); ?></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -222,7 +222,7 @@ class WC_Shipping_Local_Delivery extends WC_Shipping_Method {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Either post codes not setup, or post codes are in array... so lefts check countries for backwards compatability.
|
// Either post codes not setup, or post codes are in array... so lefts check countries for backwards compatibility.
|
||||||
$ship_to_countries = '';
|
$ship_to_countries = '';
|
||||||
if ($this->availability == 'specific') :
|
if ($this->availability == 'specific') :
|
||||||
$ship_to_countries = $this->countries;
|
$ship_to_countries = $this->countries;
|
||||||
|
|
|
@ -126,7 +126,7 @@ class WC_Product_Cat_List_Walker extends Walker {
|
||||||
|
|
||||||
$id = $element->$id_field;
|
$id = $element->$id_field;
|
||||||
|
|
||||||
// descend only when the depth is right and there are childrens for this element
|
// descend only when the depth is right and there are children for this element
|
||||||
if ( ($max_depth == 0 || $max_depth > $depth+1 ) && isset( $children_elements[$id]) ) {
|
if ( ($max_depth == 0 || $max_depth > $depth+1 ) && isset( $children_elements[$id]) ) {
|
||||||
|
|
||||||
foreach( $children_elements[ $id ] as $child ){
|
foreach( $children_elements[ $id ] as $child ){
|
||||||
|
|
14
readme.txt
14
readme.txt
|
@ -29,7 +29,7 @@ Your business is unique, your online store should be too. Choose one of our [eCo
|
||||||
|
|
||||||
WooCommerce works with any theme, including the default WordPress themes Twenty Ten, Twenty Eleven and Twenty Twelve. If you need help getting your theme working nicely with WooCommerce please read our [theming docs](http://docs.woothemes.com/document/third-party-custom-theme-compatibility/) to discover your options.
|
WooCommerce works with any theme, including the default WordPress themes Twenty Ten, Twenty Eleven and Twenty Twelve. If you need help getting your theme working nicely with WooCommerce please read our [theming docs](http://docs.woothemes.com/document/third-party-custom-theme-compatibility/) to discover your options.
|
||||||
|
|
||||||
If you're ooking for a tailored WordPress eCommmerce theme designed specifically to be used with WooCommerce be sure to browse the official [WooCommerce Themes](http://www.woothemes.com/product-category/themes/woocommerce/). Also check out our free themes, [Mystile](http://www.woothemes.com/products/mystile/), [Artificer](http://www.woothemes.com/products/artificer/) and [Wootique](http://www.woothemes.com/products/wootique/).
|
If you're looking for a tailored WordPress eCommerce theme designed specifically to be used with WooCommerce be sure to browse the official [WooCommerce Themes](http://www.woothemes.com/product-category/themes/woocommerce/). Also check out our free themes, [Mystile](http://www.woothemes.com/products/mystile/), [Artificer](http://www.woothemes.com/products/artificer/) and [Wootique](http://www.woothemes.com/products/wootique/).
|
||||||
|
|
||||||
= FEATURES =
|
= FEATURES =
|
||||||
Whether you're operating a superstore selling thousands of products, or a just a sole trader selling hand made arts and crafts WooCommerce has you covered. You can read all about WooCommerce' features on the [WooCommerce website](http://www.woothemes.com/woocommerce/ "WooCommerce: An open-source eCommerce plugin for WordPress").
|
Whether you're operating a superstore selling thousands of products, or a just a sole trader selling hand made arts and crafts WooCommerce has you covered. You can read all about WooCommerce' features on the [WooCommerce website](http://www.woothemes.com/woocommerce/ "WooCommerce: An open-source eCommerce plugin for WordPress").
|
||||||
|
@ -221,7 +221,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
||||||
* Templating - CSS classes standardised. Instances of '.woocommerce_' & '.wc-' replaced with '.woocommerce-'
|
* Templating - CSS classes standardised. Instances of '.woocommerce_' & '.wc-' replaced with '.woocommerce-'
|
||||||
* Templating - Ratings added to loop. Remove with [this snippet](https://gist.github.com/4518617).
|
* Templating - Ratings added to loop. Remove with [this snippet](https://gist.github.com/4518617).
|
||||||
* Templating - Replaced Fancybox with prettyPhoto
|
* Templating - Replaced Fancybox with prettyPhoto
|
||||||
* Templating - loop-shop which was depricated is now gone for good.
|
* Templating - loop-shop which was deprecated is now gone for good.
|
||||||
* Templating - Renamed empty.php to cart-empty.php to make clearer.
|
* Templating - Renamed empty.php to cart-empty.php to make clearer.
|
||||||
* Templating - Renamed sorting.php to orderby.php to better reflect contained hooks and code.
|
* Templating - Renamed sorting.php to orderby.php to better reflect contained hooks and code.
|
||||||
* Templating - Product tabs rewritten - new filter to define tab titles, priorities, and display callbacks.
|
* Templating - Product tabs rewritten - new filter to define tab titles, priorities, and display callbacks.
|
||||||
|
@ -382,7 +382,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
||||||
* Tweak - Formatted addresses in emails in a table to maintain appearance when printing
|
* Tweak - Formatted addresses in emails in a table to maintain appearance when printing
|
||||||
* Tweak - Better support for supercache - detect late_init or don't cache
|
* Tweak - Better support for supercache - detect late_init or don't cache
|
||||||
* Tweak - Added generate_title_html() to settings API
|
* Tweak - Added generate_title_html() to settings API
|
||||||
* Tweak - PayPal standard: No longer using shipping_1 because a) paypal ignore it if *any* shipping rules are within paypal, b) paypal ignore anyhing over 5 digits, so 999.99 is the max
|
* Tweak - PayPal standard: No longer using shipping_1 because a) paypal ignore it if *any* shipping rules are within paypal, b) paypal ignore anything over 5 digits, so 999.99 is the max
|
||||||
* Tweak - Optimised dashboard icons for retina displays
|
* Tweak - Optimised dashboard icons for retina displays
|
||||||
* Tweak - added is_purchasable class method for products
|
* Tweak - added is_purchasable class method for products
|
||||||
* Fix - Removed session_name from 1.6 to prevent issues when other plugins start a session first. Instead, added a KB article on how to do it manually (if needed, this is an edge case)
|
* Fix - Removed session_name from 1.6 to prevent issues when other plugins start a session first. Instead, added a KB article on how to do it manually (if needed, this is an edge case)
|
||||||
|
@ -514,7 +514,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
||||||
* Localization - Updated localisations
|
* Localization - Updated localisations
|
||||||
* Localization - Updated currency symbols
|
* Localization - Updated currency symbols
|
||||||
* Localization - translations for admin menu names
|
* Localization - translations for admin menu names
|
||||||
* Localization - Updated french translaction by Arnaud Cheminand
|
* Localization - Updated french translation by Arnaud Cheminand
|
||||||
|
|
||||||
= 1.5.6 - 17/05/2012 =
|
= 1.5.6 - 17/05/2012 =
|
||||||
* Feature - Default display for shipping methods is radio buttons. Before, when methods were enabled/disabled based on coupons or customer, changed methods could go unnoticed. Radio options are always visible.
|
* Feature - Default display for shipping methods is radio buttons. Before, when methods were enabled/disabled based on coupons or customer, changed methods could go unnoticed. Radio options are always visible.
|
||||||
|
@ -815,7 +815,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
||||||
* Fixed a bug allowing checkout when items are out of stock
|
* Fixed a bug allowing checkout when items are out of stock
|
||||||
* Added a cart item error page for checkout, if the items are invalid
|
* Added a cart item error page for checkout, if the items are invalid
|
||||||
* Hidden shipping text when calculator is hidden
|
* Hidden shipping text when calculator is hidden
|
||||||
* If theres 1 shipping method, don't show a select box (thanks GeertDD)
|
* If there's 1 shipping method, don't show a select box (thanks GeertDD)
|
||||||
* Don't repeat weight units after each measurement (GeertDD is on a role)
|
* Don't repeat weight units after each measurement (GeertDD is on a role)
|
||||||
* CZ fix
|
* CZ fix
|
||||||
* SKU system changes - old system was confusing and could conflict with post IDs thus the following changes have been made; 1) SKU no longer defaults to post ID automatically, 2) Unique SKU check looks for SKUs only - not post IDs 3) get_sku() will return _sku not post ID
|
* SKU system changes - old system was confusing and could conflict with post IDs thus the following changes have been made; 1) SKU no longer defaults to post ID automatically, 2) Unique SKU check looks for SKUs only - not post IDs 3) get_sku() will return _sku not post ID
|
||||||
|
@ -1120,14 +1120,14 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
||||||
* Moved discount above shipping calc
|
* Moved discount above shipping calc
|
||||||
* Fixed enter key on product edit page
|
* Fixed enter key on product edit page
|
||||||
* Typos
|
* Typos
|
||||||
* Made custom attributes display 'nicely' in cart widgets, instead of santized
|
* Made custom attributes display 'nicely' in cart widgets, instead of sanitized
|
||||||
|
|
||||||
= 1.1 - 12/10/2011 =
|
= 1.1 - 12/10/2011 =
|
||||||
* Tested and working with WordPress 3.3 beta-1
|
* Tested and working with WordPress 3.3 beta-1
|
||||||
* Added a hook for payment complete order status
|
* Added a hook for payment complete order status
|
||||||
* Added woocommerce term meta api
|
* Added woocommerce term meta api
|
||||||
* Added ability to upload category thumbnails
|
* Added ability to upload category thumbnails
|
||||||
* Added option to show sub-categories when browing categories/the shop page
|
* Added option to show sub-categories when browsing categories/the shop page
|
||||||
* Zero tax rate fix
|
* Zero tax rate fix
|
||||||
* Filters for tax rates
|
* Filters for tax rates
|
||||||
* Fixes to find rate function
|
* Fixes to find rate function
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Additonal Information tab
|
* Additional Information tab
|
||||||
*
|
*
|
||||||
* @author WooThemes
|
* @author WooThemes
|
||||||
* @package WooCommerce/Templates
|
* @package WooCommerce/Templates
|
||||||
|
|
|
@ -1486,7 +1486,7 @@ function woocommerce_get_product_terms( $object_id, $taxonomy, $fields = 'all' )
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param int $show_counts (default: 1)
|
* @param int $show_counts (default: 1)
|
||||||
* @param int $hierarchal (default: 1)
|
* @param int $hierarchical (default: 1)
|
||||||
* @param int $show_uncategorized (default: 1)
|
* @param int $show_uncategorized (default: 1)
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
@ -1631,7 +1631,7 @@ function get_woocommerce_term_meta( $term_id, $key, $single = true ) {
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param int $the_term
|
* @param int $the_term
|
||||||
* @param int $next_id the id of the next slibling element in save hierachy level
|
* @param int $next_id the id of the next sibling element in save hierarchy level
|
||||||
* @param string $taxonomy
|
* @param string $taxonomy
|
||||||
* @param int $index (default: 0)
|
* @param int $index (default: 0)
|
||||||
* @param mixed $terms (default: null)
|
* @param mixed $terms (default: null)
|
||||||
|
@ -2380,7 +2380,7 @@ function woocommerce_scheduled_sales() {
|
||||||
|
|
||||||
// Sync parent
|
// Sync parent
|
||||||
if ( $parent ) {
|
if ( $parent ) {
|
||||||
// We can force varaible product price to sync up by removing their min price meta
|
// We can force variable product price to sync up by removing their min price meta
|
||||||
delete_post_meta( $parent, 'min_variation_price' );
|
delete_post_meta( $parent, 'min_variation_price' );
|
||||||
|
|
||||||
// Grouped products need syncing via a function
|
// Grouped products need syncing via a function
|
||||||
|
|
|
@ -750,7 +750,7 @@ if ( ! function_exists( 'woocommerce_default_product_tabs' ) ) {
|
||||||
'callback' => 'woocommerce_product_description_tab'
|
'callback' => 'woocommerce_product_description_tab'
|
||||||
);
|
);
|
||||||
|
|
||||||
// Additonal information tab - shows attributes
|
// Additional information tab - shows attributes
|
||||||
if ( $product->has_attributes() || ( get_option( 'woocommerce_enable_dimension_product_attributes' ) == 'yes' && ( $product->has_dimensions() || $product->has_weight() ) ) )
|
if ( $product->has_attributes() || ( get_option( 'woocommerce_enable_dimension_product_attributes' ) == 'yes' && ( $product->has_dimensions() || $product->has_weight() ) ) )
|
||||||
$tabs['additional_information'] = array(
|
$tabs['additional_information'] = array(
|
||||||
'title' => __( 'Additional Information', 'woocommerce' ),
|
'title' => __( 'Additional Information', 'woocommerce' ),
|
||||||
|
|
|
@ -553,7 +553,7 @@ class Woocommerce {
|
||||||
* Handles template usage so that we can use our own templates instead of the themes.
|
* Handles template usage so that we can use our own templates instead of the themes.
|
||||||
*
|
*
|
||||||
* Templates are in the 'templates' folder. woocommerce looks for theme
|
* Templates are in the 'templates' folder. woocommerce looks for theme
|
||||||
* overides in /theme/woocommerce/ by default
|
* overrides in /theme/woocommerce/ by default
|
||||||
*
|
*
|
||||||
* For beginners, it also looks for a woocommerce.php template first. If the user adds
|
* For beginners, it also looks for a woocommerce.php template first. If the user adds
|
||||||
* this to the theme (containing a woocommerce() inside) this will be used for all
|
* this to the theme (containing a woocommerce() inside) this will be used for all
|
||||||
|
@ -967,7 +967,7 @@ class Woocommerce {
|
||||||
'map_meta_cap' => true,
|
'map_meta_cap' => true,
|
||||||
'publicly_queryable' => true,
|
'publicly_queryable' => true,
|
||||||
'exclude_from_search' => false,
|
'exclude_from_search' => false,
|
||||||
'hierarchical' => false, // Hierarcal causes memory issues - WP loads all records!
|
'hierarchical' => false, // Hierarchical causes memory issues - WP loads all records!
|
||||||
'rewrite' => $rewrite,
|
'rewrite' => $rewrite,
|
||||||
'query_var' => true,
|
'query_var' => true,
|
||||||
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'custom-fields', 'page-attributes' ),
|
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'custom-fields', 'page-attributes' ),
|
||||||
|
@ -1124,7 +1124,7 @@ class Woocommerce {
|
||||||
$ajax_cart_en = get_option( 'woocommerce_enable_ajax_add_to_cart' ) == 'yes' ? true : false;
|
$ajax_cart_en = get_option( 'woocommerce_enable_ajax_add_to_cart' ) == 'yes' ? true : false;
|
||||||
$frontend_script_path = $this->plugin_url() . '/assets/js/frontend/';
|
$frontend_script_path = $this->plugin_url() . '/assets/js/frontend/';
|
||||||
|
|
||||||
// Register any scipts for later use, or used as dependencies
|
// Register any scripts for later use, or used as dependencies
|
||||||
wp_register_script( 'chosen', $this->plugin_url() . '/assets/js/chosen/chosen.jquery' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
wp_register_script( 'chosen', $this->plugin_url() . '/assets/js/chosen/chosen.jquery' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
||||||
wp_register_script( 'jquery-blockui', $this->plugin_url() . '/assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
wp_register_script( 'jquery-blockui', $this->plugin_url() . '/assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
||||||
wp_register_script( 'jquery-placeholder', $this->plugin_url() . '/assets/js/jquery-placeholder/jquery.placeholder' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
wp_register_script( 'jquery-placeholder', $this->plugin_url() . '/assets/js/jquery-placeholder/jquery.placeholder' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
||||||
|
|
Loading…
Reference in New Issue