|
|
@@ -3,7 +3,7 @@
|
|
|
* Plugin Name: QDR - Studiou WC Free Photo Product
|
|
|
* Plugin URI: https://www.quadarax.com/plugins/studiou-wc-free-photo-product
|
|
|
* Description: Allows publishing special WooCommerce products with variants and custom raw image upload for photo printing
|
|
|
- * Version: 1.5.9
|
|
|
+ * Version: 1.5.10
|
|
|
* Requires at least: 6.9.4
|
|
|
* Requires PHP: 8.2
|
|
|
* Requires Plugins: woocommerce, product-variant-table-for-woocommerce
|
|
|
@@ -22,7 +22,7 @@ if (!defined('WPINC')) {
|
|
|
die;
|
|
|
}
|
|
|
|
|
|
-if (!defined('STUDIOU_WCFPP_VERSION')) define('STUDIOU_WCFPP_VERSION', '1.5.9');
|
|
|
+if (!defined('STUDIOU_WCFPP_VERSION')) define('STUDIOU_WCFPP_VERSION', '1.5.10');
|
|
|
if (!defined('STUDIOU_WCFPP_PLUGIN_DIR')) define('STUDIOU_WCFPP_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
|
|
if (!defined('STUDIOU_WCFPP_PLUGIN_URL')) define('STUDIOU_WCFPP_PLUGIN_URL', plugin_dir_url(__FILE__));
|
|
|
if (!defined('STUDIOU_WCFPP_PLUGIN_BASENAME')) define('STUDIOU_WCFPP_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
|
|
@@ -251,8 +251,11 @@ class Studiou_WC_Free_Photo_Product {
|
|
|
'chunkSize' => STUDIOU_WCFPP_CHUNK_SIZE,
|
|
|
'cartUrl' => wc_get_cart_url(),
|
|
|
'currency' => array(
|
|
|
- 'symbol' => function_exists('get_woocommerce_currency_symbol') ? get_woocommerce_currency_symbol() : '',
|
|
|
- 'priceFormat' => function_exists('get_woocommerce_price_format') ? get_woocommerce_price_format() : '%1$s%2$s',
|
|
|
+ // WooCommerce returns these with HTML entities (Kč for Kč,
|
|
|
+ // embedded in priceFormat). Decoded here so the plain-text price formatter
|
|
|
+ // that fills <option> labels renders real characters instead of entities.
|
|
|
+ 'symbol' => function_exists('get_woocommerce_currency_symbol') ? html_entity_decode(get_woocommerce_currency_symbol(), ENT_QUOTES | ENT_HTML5, 'UTF-8') : '',
|
|
|
+ 'priceFormat' => function_exists('get_woocommerce_price_format') ? html_entity_decode(get_woocommerce_price_format(), ENT_QUOTES | ENT_HTML5, 'UTF-8') : '%1$s%2$s',
|
|
|
'decimalSeparator' => function_exists('wc_get_price_decimal_separator') ? wc_get_price_decimal_separator() : '.',
|
|
|
'thousandSeparator' => function_exists('wc_get_price_thousand_separator') ? wc_get_price_thousand_separator() : ',',
|
|
|
'decimals' => function_exists('wc_get_price_decimals') ? wc_get_price_decimals() : 2,
|