Changeset 1908674
- Timestamp:
- 07/13/2018 09:47:41 AM (8 years ago)
- Location:
- woo-pakettikauppa
- Files:
-
- 14 edited
-
tags/1.0.8/README.md (modified) (1 diff)
-
tags/1.0.8/includes/class-wc-pakettikauppa-shipment.php (modified) (1 diff)
-
tags/1.0.8/includes/class-wc-pakettikauppa-shipping-method.php (modified) (1 diff)
-
tags/1.0.8/languages/wc-pakettikauppa-fi.po (modified) (1 diff)
-
tags/1.0.8/languages/wc-pakettikauppa.pot (modified) (1 diff)
-
tags/1.0.8/readme.txt (modified) (1 diff)
-
tags/1.0.8/wc-pakettikauppa.php (modified) (2 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/includes/class-wc-pakettikauppa-shipment.php (modified) (1 diff)
-
trunk/includes/class-wc-pakettikauppa-shipping-method.php (modified) (1 diff)
-
trunk/languages/wc-pakettikauppa-fi.po (modified) (1 diff)
-
trunk/languages/wc-pakettikauppa.pot (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wc-pakettikauppa.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-pakettikauppa/tags/1.0.8/README.md
r1908665 r1908674 26 26 27 27 > *Note!* If you already have shipping contracts with Posti, Matkahuolto or DB Schenker with reduced prices, you can contact the customer support of Pakettikauppa to get those contracts via Pakettikauppa so you can use the WooCommerce Pakettikauppa plugin with your current shipping contracts. 28 29 > *Important!* Before you start using this plugin, please check with your hosting provider that you have directory listing disabled. For more information about directory listing, check the documentation for [Apache](https://wiki.apache.org/httpd/DirectoryListings) or [Nginx](https://nginx.org/en/docs/http/ngx_http_autoindex_module.html). 28 30 29 31 # Features -
woo-pakettikauppa/tags/1.0.8/includes/class-wc-pakettikauppa-shipment.php
r1908665 r1908674 357 357 $product = $order->get_product_from_item( $item ); 358 358 if ( ! $product->is_virtual() ) { 359 $weight += $product->get_weight() * $item['qty'];359 $weight += wc_get_weight($product->get_weight() * $item['qty'], 'kg'); 360 360 } 361 361 } -
woo-pakettikauppa/tags/1.0.8/includes/class-wc-pakettikauppa-shipping-method.php
r1908665 r1908674 46 46 47 47 $this->method_title = 'Pakettikauppa'; // Title shown in admin 48 $this->method_description = __( 'All shipping methods with one contract. For more information visit <a href="https:// pakettikauppa.fi/">Pakettikauppa</a>.', 'wc-pakettikauppa' ); // Description shown in admin48 $this->method_description = __( 'All shipping methods with one contract. For more information visit <a href="https://www.pakettikauppa.fi/">Pakettikauppa</a>.', 'wc-pakettikauppa' ); // Description shown in admin 49 49 50 50 $this->enabled = 'yes'; -
woo-pakettikauppa/tags/1.0.8/languages/wc-pakettikauppa-fi.po
r1908665 r1908674 223 223 msgid "" 224 224 "All shipping methods with one contract. For more information visit <a href=" 225 "\"https:// pakettikauppa.fi/\">Pakettikauppa</a>."225 "\"https://www.pakettikauppa.fi/\">Pakettikauppa</a>." 226 226 msgstr "" 227 227 "Kaikki olennaiset toimitustavat yhdellä sopimuksella. Lisätietoja " 228 "Pakettikaupan kotisivuilta <a href=\"https:// pakettikauppa.fi/\">www."228 "Pakettikaupan kotisivuilta <a href=\"https://www.pakettikauppa.fi/\">www." 229 229 "pakettikauppa.fi</a>." 230 230 -
woo-pakettikauppa/tags/1.0.8/languages/wc-pakettikauppa.pot
r1908665 r1908674 215 215 msgid "" 216 216 "All shipping methods with one contract. For more information visit <a href=" 217 "\"https:// pakettikauppa.fi/\">Pakettikauppa</a>."217 "\"https://www.pakettikauppa.fi/\">Pakettikauppa</a>." 218 218 msgstr "" 219 219 -
woo-pakettikauppa/tags/1.0.8/readme.txt
r1908665 r1908674 14 14 == Description == 15 15 16 [Pakettikauppa](https:// pakettikauppa.fi/) is a shipping service provider in Finland. This plugin integrates their service into WooCommerce. To start shipping, all your WooCommerce needs is this plugin and a merchant ID of your account registered with Pakettikauppa.16 [Pakettikauppa](https://www.pakettikauppa.fi/) is a shipping service provider in Finland. This plugin integrates their service into WooCommerce. To start shipping, all your WooCommerce needs is this plugin and a merchant ID of your account registered with Pakettikauppa. 17 17 18 18 > *Note!* If you already have shipping contracts with Posti, Matkahuolto or DB Schenker with reduced prices, you can contact the customer support of Pakettikauppa to get those contracts via Pakettikauppa so you can use the WooCommerce Pakettikauppa plugin with your current shipping contracts. -
woo-pakettikauppa/tags/1.0.8/wc-pakettikauppa.php
r1908665 r1908674 2 2 /** 3 3 * Plugin Name: WooCommerce Pakettikauppa 4 * Version: 1.0. 74 * Version: 1.0.8 5 5 * Plugin URI: https://github.com/Seravo/woocommerce-pakettikauppa 6 6 * Description: Pakettikauppa shipping service for WooCommerce. Integrates Prinetti, Matkahuolto, DB Schenker and others. … … 36 36 */ 37 37 function wc_pakettikauppa_prepare_directory() { 38 // Use private directory out of webroot, can be accessed via X-Sendfile 39 @wp_mkdir_p( WC_PAKETTIKAUPPA_PRIVATE_DIR ); 40 chmod( WC_PAKETTIKAUPPA_PRIVATE_DIR, 0755 ); 38 // Create directory for plugin documents if does not yet exist 39 if ( ! file_exists( WC_PAKETTIKAUPPA_PRIVATE_DIR ) ) { 40 @wp_mkdir_p( WC_PAKETTIKAUPPA_PRIVATE_DIR ); 41 chmod( WC_PAKETTIKAUPPA_PRIVATE_DIR, 0755 ); 42 } 43 44 // Create index.php to disallow directory listing in some incorrectly configured servers 45 $index_file = WC_PAKETTIKAUPPA_PRIVATE_DIR . '/index.php'; 46 if ( ! file_exists( $index_file ) ) { 47 touch( $index_file ); 48 } 41 49 } 42 register_activation_hook( __FILE__, 'wc_pakettikauppa_prepare_directory' );50 add_action( 'init', 'wc_pakettikauppa_prepare_directory' ); 43 51 44 52 /** -
woo-pakettikauppa/trunk/README.md
r1761726 r1908674 26 26 27 27 > *Note!* If you already have shipping contracts with Posti, Matkahuolto or DB Schenker with reduced prices, you can contact the customer support of Pakettikauppa to get those contracts via Pakettikauppa so you can use the WooCommerce Pakettikauppa plugin with your current shipping contracts. 28 29 > *Important!* Before you start using this plugin, please check with your hosting provider that you have directory listing disabled. For more information about directory listing, check the documentation for [Apache](https://wiki.apache.org/httpd/DirectoryListings) or [Nginx](https://nginx.org/en/docs/http/ngx_http_autoindex_module.html). 28 30 29 31 # Features -
woo-pakettikauppa/trunk/includes/class-wc-pakettikauppa-shipment.php
r1833640 r1908674 357 357 $product = $order->get_product_from_item( $item ); 358 358 if ( ! $product->is_virtual() ) { 359 $weight += $product->get_weight() * $item['qty'];359 $weight += wc_get_weight($product->get_weight() * $item['qty'], 'kg'); 360 360 } 361 361 } -
woo-pakettikauppa/trunk/includes/class-wc-pakettikauppa-shipping-method.php
r1833640 r1908674 46 46 47 47 $this->method_title = 'Pakettikauppa'; // Title shown in admin 48 $this->method_description = __( 'All shipping methods with one contract. For more information visit <a href="https:// pakettikauppa.fi/">Pakettikauppa</a>.', 'wc-pakettikauppa' ); // Description shown in admin48 $this->method_description = __( 'All shipping methods with one contract. For more information visit <a href="https://www.pakettikauppa.fi/">Pakettikauppa</a>.', 'wc-pakettikauppa' ); // Description shown in admin 49 49 50 50 $this->enabled = 'yes'; -
woo-pakettikauppa/trunk/languages/wc-pakettikauppa-fi.po
r1759098 r1908674 223 223 msgid "" 224 224 "All shipping methods with one contract. For more information visit <a href=" 225 "\"https:// pakettikauppa.fi/\">Pakettikauppa</a>."225 "\"https://www.pakettikauppa.fi/\">Pakettikauppa</a>." 226 226 msgstr "" 227 227 "Kaikki olennaiset toimitustavat yhdellä sopimuksella. Lisätietoja " 228 "Pakettikaupan kotisivuilta <a href=\"https:// pakettikauppa.fi/\">www."228 "Pakettikaupan kotisivuilta <a href=\"https://www.pakettikauppa.fi/\">www." 229 229 "pakettikauppa.fi</a>." 230 230 -
woo-pakettikauppa/trunk/languages/wc-pakettikauppa.pot
r1759098 r1908674 215 215 msgid "" 216 216 "All shipping methods with one contract. For more information visit <a href=" 217 "\"https:// pakettikauppa.fi/\">Pakettikauppa</a>."217 "\"https://www.pakettikauppa.fi/\">Pakettikauppa</a>." 218 218 msgstr "" 219 219 -
woo-pakettikauppa/trunk/readme.txt
r1908665 r1908674 14 14 == Description == 15 15 16 [Pakettikauppa](https:// pakettikauppa.fi/) is a shipping service provider in Finland. This plugin integrates their service into WooCommerce. To start shipping, all your WooCommerce needs is this plugin and a merchant ID of your account registered with Pakettikauppa.16 [Pakettikauppa](https://www.pakettikauppa.fi/) is a shipping service provider in Finland. This plugin integrates their service into WooCommerce. To start shipping, all your WooCommerce needs is this plugin and a merchant ID of your account registered with Pakettikauppa. 17 17 18 18 > *Note!* If you already have shipping contracts with Posti, Matkahuolto or DB Schenker with reduced prices, you can contact the customer support of Pakettikauppa to get those contracts via Pakettikauppa so you can use the WooCommerce Pakettikauppa plugin with your current shipping contracts. -
woo-pakettikauppa/trunk/wc-pakettikauppa.php
r1833640 r1908674 2 2 /** 3 3 * Plugin Name: WooCommerce Pakettikauppa 4 * Version: 1.0. 74 * Version: 1.0.8 5 5 * Plugin URI: https://github.com/Seravo/woocommerce-pakettikauppa 6 6 * Description: Pakettikauppa shipping service for WooCommerce. Integrates Prinetti, Matkahuolto, DB Schenker and others. … … 36 36 */ 37 37 function wc_pakettikauppa_prepare_directory() { 38 // Use private directory out of webroot, can be accessed via X-Sendfile 39 @wp_mkdir_p( WC_PAKETTIKAUPPA_PRIVATE_DIR ); 40 chmod( WC_PAKETTIKAUPPA_PRIVATE_DIR, 0755 ); 38 // Create directory for plugin documents if does not yet exist 39 if ( ! file_exists( WC_PAKETTIKAUPPA_PRIVATE_DIR ) ) { 40 @wp_mkdir_p( WC_PAKETTIKAUPPA_PRIVATE_DIR ); 41 chmod( WC_PAKETTIKAUPPA_PRIVATE_DIR, 0755 ); 42 } 43 44 // Create index.php to disallow directory listing in some incorrectly configured servers 45 $index_file = WC_PAKETTIKAUPPA_PRIVATE_DIR . '/index.php'; 46 if ( ! file_exists( $index_file ) ) { 47 touch( $index_file ); 48 } 41 49 } 42 register_activation_hook( __FILE__, 'wc_pakettikauppa_prepare_directory' );50 add_action( 'init', 'wc_pakettikauppa_prepare_directory' ); 43 51 44 52 /**
Note: See TracChangeset
for help on using the changeset viewer.