Changeset 3260053
- Timestamp:
- 03/22/2025 12:51:02 PM (4 days ago)
- Location:
- woocommerce-pos
- Files:
-
- 14 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-pos/tags/1.7.4/readme.txt
r3259837 r3260053 4 4 Requires at least: 5.6 5 5 Tested up to: 6.7 6 Stable tag: 1.7. 36 Stable tag: 1.7.4 7 7 License: GPL-3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 88 88 89 89 == Changelog == 90 91 = 1.7.4 - 2025/03/22 = 92 * Revert: changes to the default receipt template 90 93 91 94 = 1.7.3 - 2025/03/21 = -
woocommerce-pos/tags/1.7.4/templates/receipt.php
r3259837 r3260053 217 217 </td> 218 218 <td><?php echo esc_html( $item->get_quantity() ); ?></td> 219 <td><?php 220 $tax_display = get_option( 'woocommerce_tax_display_cart' ); 221 if ( 'excl' === $tax_display ) { 222 echo wp_kses_post( wc_price( $item->get_subtotal() / $item->get_quantity() ) ); 223 } else { 224 echo wp_kses_post( wc_price( $item->get_subtotal_tax() / $item->get_quantity() + $item->get_subtotal() / $item->get_quantity() ) ); 225 } 226 ?></td> 227 <td><?php 228 $tax_display = get_option( 'woocommerce_tax_display_cart' ); 229 if ( 'excl' === $tax_display ) { 230 echo wp_kses_post( wc_price( $item->get_total() ) ); 231 } else { 232 echo wp_kses_post( wc_price( $item->get_total() + $item->get_total_tax() ) ); 233 } 234 ?></td> 219 <td><?php echo \is_object( $product ) && method_exists( $product, 'get_price' ) ? wp_kses_post( wc_price( $product->get_price() ) ) : ''; ?></td> 220 <td><?php echo wp_kses_post( wc_price( $item->get_total() ) ); ?></td> 235 221 </tr> 236 222 <?php } ?> … … 239 225 <tr> 240 226 <th colspan="3"><?php esc_html_e( 'Subtotal', 'woocommerce' ); ?></th> 241 <td><?php 242 $tax_display = get_option( 'woocommerce_tax_display_cart' ); 243 if ( 'excl' === $tax_display ) { 244 echo wp_kses_post( wc_price( $order->get_subtotal() ) ); 245 } else { 246 echo wp_kses_post( wc_price( $order->get_subtotal() + $order->get_subtotal_tax() ) ); 247 } 248 ?></td> 227 <td><?php echo wp_kses_post( wc_price( $order->get_subtotal() ) ); ?></td> 249 228 </tr> 250 229 <?php if ( $order->get_shipping_total() > 0 ) { ?> 251 230 <tr> 252 231 <th colspan="3"><?php esc_html_e( 'Shipping', 'woocommerce' ); ?></th> 253 <td><?php 254 if ( 'excl' === $tax_display ) { 255 echo wp_kses_post( wc_price( $order->get_shipping_total() ) ); 256 } else { 257 echo wp_kses_post( wc_price( $order->get_shipping_total() + $order->get_shipping_tax() ) ); 258 } 259 ?></td> 232 <td><?php echo wp_kses_post( wc_price( $order->get_shipping_total() ) ); ?></td> 260 233 </tr> 261 234 <?php } ?> … … 263 236 <tr> 264 237 <th colspan="3"><?php echo esc_html( $fee->get_name() ); ?></th> 265 <td><?php 266 if ( 'excl' === $tax_display ) { 267 echo wp_kses_post( wc_price( $fee->get_total() ) ); 268 } else { 269 echo wp_kses_post( wc_price( $fee->get_total() + $fee->get_total_tax() ) ); 270 } 271 ?></td> 238 <td><?php echo wp_kses_post( wc_price( $fee->get_total() ) ); ?></td> 272 239 </tr> 273 240 <?php } ?> … … 275 242 <tr> 276 243 <th colspan="3"><?php esc_html_e( 'Discount', 'woocommerce' ); ?></th> 277 <td><?php 278 // Discounts are always displayed as positive numbers 279 if ( 'excl' === $tax_display ) { 280 echo wp_kses_post( wc_price( $order->get_total_discount( false ) ) ); 281 } else { 282 echo wp_kses_post( wc_price( $order->get_total_discount( true ) ) ); 283 } 284 ?></td> 244 <td><?php echo wp_kses_post( wc_price( $order->get_total_discount() ) ); ?></td> 285 245 </tr> 286 246 <?php } ?> 287 <?php if ( wc_tax_enabled() ) :?>247 <?php if ( wc_tax_enabled() ) { ?> 288 248 <?php if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) { ?> 289 249 <?php foreach ( $order->get_tax_totals() as $code => $tax ) { ?> … … 299 259 </tr> 300 260 <?php } ?> 301 <?php endif;?>261 <?php } ?> 302 262 <tr> 303 263 <th colspan="3"><?php esc_html_e( 'Total', 'woocommerce' ); ?></th> -
woocommerce-pos/tags/1.7.4/vendor/autoload.php
r3259837 r3260053 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 04feddc87963de403a81a26604198e30::getLoader();25 return ComposerAutoloaderInit567d3b1e9dce383d3765584240a74bba::getLoader(); -
woocommerce-pos/tags/1.7.4/vendor/composer/autoload_real.php
r3259837 r3260053 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 04feddc87963de403a81a26604198e305 class ComposerAutoloaderInit567d3b1e9dce383d3765584240a74bba 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 04feddc87963de403a81a26604198e30', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit567d3b1e9dce383d3765584240a74bba', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 04feddc87963de403a81a26604198e30', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit567d3b1e9dce383d3765584240a74bba', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 04feddc87963de403a81a26604198e30::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit567d3b1e9dce383d3765584240a74bba::getInitializer($loader)); 31 31 32 32 $loader->register(true); 33 33 34 $filesToLoad = \Composer\Autoload\ComposerStaticInit 04feddc87963de403a81a26604198e30::$files;34 $filesToLoad = \Composer\Autoload\ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$files; 35 35 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 36 36 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
woocommerce-pos/tags/1.7.4/vendor/composer/autoload_static.php
r3259837 r3260053 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 04feddc87963de403a81a26604198e307 class ComposerStaticInit567d3b1e9dce383d3765584240a74bba 8 8 { 9 9 public static $files = array ( … … 305 305 { 306 306 return \Closure::bind(function () use ($loader) { 307 $loader->prefixLengthsPsr4 = ComposerStaticInit 04feddc87963de403a81a26604198e30::$prefixLengthsPsr4;308 $loader->prefixDirsPsr4 = ComposerStaticInit 04feddc87963de403a81a26604198e30::$prefixDirsPsr4;309 $loader->prefixesPsr0 = ComposerStaticInit 04feddc87963de403a81a26604198e30::$prefixesPsr0;310 $loader->classMap = ComposerStaticInit 04feddc87963de403a81a26604198e30::$classMap;307 $loader->prefixLengthsPsr4 = ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$prefixLengthsPsr4; 308 $loader->prefixDirsPsr4 = ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$prefixDirsPsr4; 309 $loader->prefixesPsr0 = ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$prefixesPsr0; 310 $loader->classMap = ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$classMap; 311 311 312 312 }, null, ClassLoader::class); -
woocommerce-pos/tags/1.7.4/vendor/composer/installed.php
r3259837 r3260053 2 2 'root' => array( 3 3 'name' => 'wcpos/woocommerce-pos', 4 'pretty_version' => 'v1.7. 3',5 'version' => '1.7. 3.0',6 'reference' => ' 314c9902eeb2244e0701df6b6249538d77ec858d',4 'pretty_version' => 'v1.7.4', 5 'version' => '1.7.4.0', 6 'reference' => '99d49f2a3d44aafdb75d53854d1ea9b521272104', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 81 81 ), 82 82 'wcpos/woocommerce-pos' => array( 83 'pretty_version' => 'v1.7. 3',84 'version' => '1.7. 3.0',85 'reference' => ' 314c9902eeb2244e0701df6b6249538d77ec858d',83 'pretty_version' => 'v1.7.4', 84 'version' => '1.7.4.0', 85 'reference' => '99d49f2a3d44aafdb75d53854d1ea9b521272104', 86 86 'type' => 'wordpress-plugin', 87 87 'install_path' => __DIR__ . '/../../', -
woocommerce-pos/tags/1.7.4/woocommerce-pos.php
r3259837 r3260053 4 4 * Plugin URI: https://wordpress.org/plugins/woocommerce-pos/ 5 5 * Description: A simple front-end for taking WooCommerce orders at the Point of Sale. Requires <a href="http://wordpress.org/plugins/woocommerce/">WooCommerce</a>. 6 * Version: 1.7. 36 * Version: 1.7.4 7 7 * Author: kilbot 8 8 * Author URI: http://wcpos.com … … 25 25 26 26 // Define plugin constants. 27 const VERSION = '1.7. 3';27 const VERSION = '1.7.4'; 28 28 const PLUGIN_NAME = 'woocommerce-pos'; 29 29 const SHORT_NAME = 'wcpos'; -
woocommerce-pos/trunk/readme.txt
r3259837 r3260053 4 4 Requires at least: 5.6 5 5 Tested up to: 6.7 6 Stable tag: 1.7. 36 Stable tag: 1.7.4 7 7 License: GPL-3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 88 88 89 89 == Changelog == 90 91 = 1.7.4 - 2025/03/22 = 92 * Revert: changes to the default receipt template 90 93 91 94 = 1.7.3 - 2025/03/21 = -
woocommerce-pos/trunk/templates/receipt.php
r3259837 r3260053 217 217 </td> 218 218 <td><?php echo esc_html( $item->get_quantity() ); ?></td> 219 <td><?php 220 $tax_display = get_option( 'woocommerce_tax_display_cart' ); 221 if ( 'excl' === $tax_display ) { 222 echo wp_kses_post( wc_price( $item->get_subtotal() / $item->get_quantity() ) ); 223 } else { 224 echo wp_kses_post( wc_price( $item->get_subtotal_tax() / $item->get_quantity() + $item->get_subtotal() / $item->get_quantity() ) ); 225 } 226 ?></td> 227 <td><?php 228 $tax_display = get_option( 'woocommerce_tax_display_cart' ); 229 if ( 'excl' === $tax_display ) { 230 echo wp_kses_post( wc_price( $item->get_total() ) ); 231 } else { 232 echo wp_kses_post( wc_price( $item->get_total() + $item->get_total_tax() ) ); 233 } 234 ?></td> 219 <td><?php echo \is_object( $product ) && method_exists( $product, 'get_price' ) ? wp_kses_post( wc_price( $product->get_price() ) ) : ''; ?></td> 220 <td><?php echo wp_kses_post( wc_price( $item->get_total() ) ); ?></td> 235 221 </tr> 236 222 <?php } ?> … … 239 225 <tr> 240 226 <th colspan="3"><?php esc_html_e( 'Subtotal', 'woocommerce' ); ?></th> 241 <td><?php 242 $tax_display = get_option( 'woocommerce_tax_display_cart' ); 243 if ( 'excl' === $tax_display ) { 244 echo wp_kses_post( wc_price( $order->get_subtotal() ) ); 245 } else { 246 echo wp_kses_post( wc_price( $order->get_subtotal() + $order->get_subtotal_tax() ) ); 247 } 248 ?></td> 227 <td><?php echo wp_kses_post( wc_price( $order->get_subtotal() ) ); ?></td> 249 228 </tr> 250 229 <?php if ( $order->get_shipping_total() > 0 ) { ?> 251 230 <tr> 252 231 <th colspan="3"><?php esc_html_e( 'Shipping', 'woocommerce' ); ?></th> 253 <td><?php 254 if ( 'excl' === $tax_display ) { 255 echo wp_kses_post( wc_price( $order->get_shipping_total() ) ); 256 } else { 257 echo wp_kses_post( wc_price( $order->get_shipping_total() + $order->get_shipping_tax() ) ); 258 } 259 ?></td> 232 <td><?php echo wp_kses_post( wc_price( $order->get_shipping_total() ) ); ?></td> 260 233 </tr> 261 234 <?php } ?> … … 263 236 <tr> 264 237 <th colspan="3"><?php echo esc_html( $fee->get_name() ); ?></th> 265 <td><?php 266 if ( 'excl' === $tax_display ) { 267 echo wp_kses_post( wc_price( $fee->get_total() ) ); 268 } else { 269 echo wp_kses_post( wc_price( $fee->get_total() + $fee->get_total_tax() ) ); 270 } 271 ?></td> 238 <td><?php echo wp_kses_post( wc_price( $fee->get_total() ) ); ?></td> 272 239 </tr> 273 240 <?php } ?> … … 275 242 <tr> 276 243 <th colspan="3"><?php esc_html_e( 'Discount', 'woocommerce' ); ?></th> 277 <td><?php 278 // Discounts are always displayed as positive numbers 279 if ( 'excl' === $tax_display ) { 280 echo wp_kses_post( wc_price( $order->get_total_discount( false ) ) ); 281 } else { 282 echo wp_kses_post( wc_price( $order->get_total_discount( true ) ) ); 283 } 284 ?></td> 244 <td><?php echo wp_kses_post( wc_price( $order->get_total_discount() ) ); ?></td> 285 245 </tr> 286 246 <?php } ?> 287 <?php if ( wc_tax_enabled() ) :?>247 <?php if ( wc_tax_enabled() ) { ?> 288 248 <?php if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) { ?> 289 249 <?php foreach ( $order->get_tax_totals() as $code => $tax ) { ?> … … 299 259 </tr> 300 260 <?php } ?> 301 <?php endif;?>261 <?php } ?> 302 262 <tr> 303 263 <th colspan="3"><?php esc_html_e( 'Total', 'woocommerce' ); ?></th> -
woocommerce-pos/trunk/vendor/autoload.php
r3259837 r3260053 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 04feddc87963de403a81a26604198e30::getLoader();25 return ComposerAutoloaderInit567d3b1e9dce383d3765584240a74bba::getLoader(); -
woocommerce-pos/trunk/vendor/composer/autoload_real.php
r3259837 r3260053 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 04feddc87963de403a81a26604198e305 class ComposerAutoloaderInit567d3b1e9dce383d3765584240a74bba 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 04feddc87963de403a81a26604198e30', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit567d3b1e9dce383d3765584240a74bba', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 04feddc87963de403a81a26604198e30', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit567d3b1e9dce383d3765584240a74bba', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 04feddc87963de403a81a26604198e30::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit567d3b1e9dce383d3765584240a74bba::getInitializer($loader)); 31 31 32 32 $loader->register(true); 33 33 34 $filesToLoad = \Composer\Autoload\ComposerStaticInit 04feddc87963de403a81a26604198e30::$files;34 $filesToLoad = \Composer\Autoload\ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$files; 35 35 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 36 36 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
woocommerce-pos/trunk/vendor/composer/autoload_static.php
r3259837 r3260053 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 04feddc87963de403a81a26604198e307 class ComposerStaticInit567d3b1e9dce383d3765584240a74bba 8 8 { 9 9 public static $files = array ( … … 305 305 { 306 306 return \Closure::bind(function () use ($loader) { 307 $loader->prefixLengthsPsr4 = ComposerStaticInit 04feddc87963de403a81a26604198e30::$prefixLengthsPsr4;308 $loader->prefixDirsPsr4 = ComposerStaticInit 04feddc87963de403a81a26604198e30::$prefixDirsPsr4;309 $loader->prefixesPsr0 = ComposerStaticInit 04feddc87963de403a81a26604198e30::$prefixesPsr0;310 $loader->classMap = ComposerStaticInit 04feddc87963de403a81a26604198e30::$classMap;307 $loader->prefixLengthsPsr4 = ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$prefixLengthsPsr4; 308 $loader->prefixDirsPsr4 = ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$prefixDirsPsr4; 309 $loader->prefixesPsr0 = ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$prefixesPsr0; 310 $loader->classMap = ComposerStaticInit567d3b1e9dce383d3765584240a74bba::$classMap; 311 311 312 312 }, null, ClassLoader::class); -
woocommerce-pos/trunk/vendor/composer/installed.php
r3259837 r3260053 2 2 'root' => array( 3 3 'name' => 'wcpos/woocommerce-pos', 4 'pretty_version' => 'v1.7. 3',5 'version' => '1.7. 3.0',6 'reference' => ' 314c9902eeb2244e0701df6b6249538d77ec858d',4 'pretty_version' => 'v1.7.4', 5 'version' => '1.7.4.0', 6 'reference' => '99d49f2a3d44aafdb75d53854d1ea9b521272104', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 81 81 ), 82 82 'wcpos/woocommerce-pos' => array( 83 'pretty_version' => 'v1.7. 3',84 'version' => '1.7. 3.0',85 'reference' => ' 314c9902eeb2244e0701df6b6249538d77ec858d',83 'pretty_version' => 'v1.7.4', 84 'version' => '1.7.4.0', 85 'reference' => '99d49f2a3d44aafdb75d53854d1ea9b521272104', 86 86 'type' => 'wordpress-plugin', 87 87 'install_path' => __DIR__ . '/../../', -
woocommerce-pos/trunk/woocommerce-pos.php
r3259837 r3260053 4 4 * Plugin URI: https://wordpress.org/plugins/woocommerce-pos/ 5 5 * Description: A simple front-end for taking WooCommerce orders at the Point of Sale. Requires <a href="http://wordpress.org/plugins/woocommerce/">WooCommerce</a>. 6 * Version: 1.7. 36 * Version: 1.7.4 7 7 * Author: kilbot 8 8 * Author URI: http://wcpos.com … … 25 25 26 26 // Define plugin constants. 27 const VERSION = '1.7. 3';27 const VERSION = '1.7.4'; 28 28 const PLUGIN_NAME = 'woocommerce-pos'; 29 29 const SHORT_NAME = 'wcpos';
Note: See TracChangeset
for help on using the changeset viewer.