Changeset 1485883
- Timestamp:
- 08/29/2016 07:45:15 PM (10 years ago)
- Location:
- connect-shopify-and-woocommerce
- Files:
-
- 13 added
- 4 edited
-
tags/1.2 (added)
-
tags/1.2/LICENSE (added)
-
tags/1.2/assets (added)
-
tags/1.2/assets/shopify-wc-connect-admin.css (added)
-
tags/1.2/inc (added)
-
tags/1.2/inc/front-end.php (added)
-
tags/1.2/inc/product-type.php (added)
-
tags/1.2/inc/wc-hooks.php (added)
-
tags/1.2/readme.txt (added)
-
tags/1.2/scripts (added)
-
tags/1.2/scripts/shopify-wc-connect-admin.js (added)
-
tags/1.2/scripts/shopify-wc-connect.js (added)
-
tags/1.2/shopify-connect.php (added)
-
trunk/inc/wc-hooks.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/scripts/shopify-wc-connect-admin.js (modified) (1 diff)
-
trunk/shopify-connect.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
connect-shopify-and-woocommerce/trunk/inc/wc-hooks.php
r1480144 r1485883 139 139 // if we have a site we can use, then redirect (in shopify-connect.php) will kick in instead of adding these tabs 140 140 $shopify_site = get_option( 'secp_shop', false ); 141 if ( ! $shopify_site || false !== strpos( $shopify_site, 'embeds.shopify.com' ) ) {141 if ( ! $shopify_site || false !== strpos( $shopify_site, 'embeds.shopify.com' ) || false !== strpos( $shopify_site, 'embeds.myshopify.com' ) ) { 142 142 $setting_classes_to_remove['shipping'] = 'WC_Settings_Shipping'; 143 143 $setting_classes_to_remove['checkout'] = 'WC_Settings_Payment_Gateways'; … … 166 166 // if we have a site we can use, then redirect (in shopify-connect.php) will kick in instead 167 167 $shopify_site = get_option( 'secp_shop', false ); 168 if ( $shopify_site && false === strpos( $shopify_site, 'embeds.shopify.com' ) ) {168 if ( $shopify_site && false === strpos( $shopify_site, 'embeds.shopify.com' ) || false !== strpos( $shopify_site, 'embeds.myshopify.com' ) ) { 169 169 return; 170 170 } … … 204 204 // if we have a site we can use, then redirect (in shopify-connect.php) will kick in instead of adding these tabs 205 205 $shopify_site = get_option( 'secp_shop', false ); 206 if ( ! $shopify_site || false !== strpos( $shopify_site, 'embeds.shopify.com' ) ) {206 if ( ! $shopify_site || false !== strpos( $shopify_site, 'embeds.shopify.com' ) || false !== strpos( $shopify_site, 'embeds.myshopify.com' ) ) { 207 207 unset( $sections['inventory'] ); 208 208 } -
connect-shopify-and-woocommerce/trunk/readme.txt
r1480159 r1485883 4 4 Requires at least: 4.2 5 5 Tested up to: 4.6 6 Stable tag: 1. 16 Stable tag: 1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 43 43 == Changelog == 44 44 45 = 1.2 = 46 * Bug fix: prevent duplicate hidden price fields from creating false error on sale price 47 * Bug fix: don't redirect to embeds.myshopify.com if that's the shop URL that gets set by the Shopify plugin 48 45 49 = 1.1 = 46 50 * Significant re-write and feature improvement -
connect-shopify-and-woocommerce/trunk/scripts/shopify-wc-connect-admin.js
r1480144 r1485883 49 49 }); 50 50 51 // remove duplicate fields 52 var $general_product_data_tab = $( '#general_product_data' ); 53 54 $general_product_data_tab.find( '._regular_price_field' ).remove(); 55 $general_product_data_tab.find( '._sale_price_field' ).remove(); 56 51 57 // remove some quick edit buttons 52 58 $( '#wpbody-content' ).on( 'click', '.editinline', function(){ -
connect-shopify-and-woocommerce/trunk/shopify-connect.php
r1480166 r1485883 4 4 * Plugin URI: https://secretpizza.party 5 5 * Description: WooCommerce and Shopify go together like peanut butter and jelly. Let us help you connect them together. 6 * Version: 1. 16 * Version: 1.2 7 7 * Author: secret pizza party, jkudish 8 8 * Author URI: https://secretpizza.party … … 30 30 */ 31 31 32 define( 'SHOPIFY_WC_CONNECT_VERSION', 1. 1);32 define( 'SHOPIFY_WC_CONNECT_VERSION', 1.2 ); 33 33 34 34 function shopify_wc_connect_init() { … … 111 111 // if we don't have a site we can use, then hide menus (in inc/wc-hooks.php) instead 112 112 $shopify_site = get_option( 'secp_shop', false ); 113 if ( ! $shopify_site || false !== strpos( $shopify_site, 'embeds.shopify.com' ) ) {113 if ( ! $shopify_site || false !== strpos( $shopify_site, 'embeds.shopify.com' ) || false !== strpos( $shopify_site, 'embeds.myshopify.com' ) ) { 114 114 return; 115 115 }
Note: See TracChangeset
for help on using the changeset viewer.