Changeset 3489275
- Timestamp:
- 03/23/2026 05:17:19 PM (9 days ago)
- Location:
- myd-delivery
- Files:
-
- 10 edited
- 1 copied
-
tags/1.6.4 (copied) (copied from myd-delivery/trunk)
-
tags/1.6.4/README.txt (modified) (2 diffs)
-
tags/1.6.4/includes/myd-manage-cpt-columns.php (modified) (3 diffs)
-
tags/1.6.4/myd-delivery.php (modified) (2 diffs)
-
tags/1.6.4/templates/products/product-extra.php (modified) (1 diff)
-
tags/1.6.4/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/myd-manage-cpt-columns.php (modified) (3 diffs)
-
trunk/myd-delivery.php (modified) (2 diffs)
-
trunk/templates/products/product-extra.php (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
myd-delivery/tags/1.6.4/README.txt
r3488500 r3489275 5 5 Requires at least: 5.5 6 6 Tested up to: 6.9 7 Stable tag: 1.6. 37 Stable tag: 1.6.4 8 8 Requires PHP: 7.4 9 9 License: GPL-3.0+ … … 75 75 76 76 == Changelog == 77 78 = 1.6.4 = 79 * Changed: small UI improvements in required and min and max tags. 80 * Changed: add price formatting in the table list of products and extra options. 81 * Changed: code improvements. 77 82 78 83 = 1.6.3 = -
myd-delivery/tags/1.6.4/includes/myd-manage-cpt-columns.php
r3478512 r3489275 61 61 function myd_products_custom_columns( $columns ) { 62 62 $columns["price"] = '' . __( 'Price', 'myd-delivery' ) . ''; 63 $columns["product_available"] = '' . __( 'Available', 'myd-delivery' ) . ''; 63 64 $columns["product_description"] = '' . __( 'Product Description', 'myd-delivery' ) . ''; 64 65 … … 78 79 function myd_products_custom_column_content( $colname, $cptid ) { 79 80 if ( $colname == 'price') { 80 echo esc_html( get_post_meta( $cptid, 'product_price', true ) ); 81 $price = get_post_meta( $cptid, 'product_price', true ); 82 echo esc_html( Myd_Store_Formatting::format_price( $price ) ); 83 } 84 85 if ( $colname == 'product_available') { 86 $available = get_post_meta( $cptid, 'product_available', true ); 87 $labels = [ 88 'show' => __( 'Yes, show the product', 'myd-delivery' ), 89 'hide' => __( 'No, hide the product', 'myd-delivery' ), 90 'not-available' => __( 'Show as not available', 'myd-delivery' ), 91 ]; 92 echo esc_html( $labels[ $available ] ?? '' ); 81 93 } 82 94 … … 113 125 function myd_extra_option_custom_column_content( $colname, $cptid ) { 114 126 if ( $colname === 'option_price' ) { 115 echo esc_html( get_post_meta( $cptid, 'option_price', true ) ); 127 $price = get_post_meta( $cptid, 'option_price', true ); 128 echo esc_html( Myd_Store_Formatting::format_price( $price ) ); 116 129 } 117 130 -
myd-delivery/tags/1.6.4/myd-delivery.php
r3488500 r3489275 6 6 * Author: EduardoVillao.me 7 7 * Author URI: https://eduardovillao.me/ 8 * Version: 1.6. 38 * Version: 1.6.4 9 9 * Requires PHP: 7.4 10 10 * Requires at least: 5.5 … … 26 26 define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) ); 27 27 define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) ); 28 define( 'MYDDELIVERY_VERSION', '1.6. 3' );28 define( 'MYDDELIVERY_VERSION', '1.6.4' ); 29 29 define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' ); 30 30 define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' ); -
myd-delivery/tags/1.6.4/templates/products/product-extra.php
r3478512 r3489275 48 48 <?php if ( ! empty( $min_to_select ) ) : ?> 49 49 <span class="fdm-extra-option-limit-desc"> 50 (Min: <?php echo \esc_html( $min_to_select ); ?>)50 Min: <?php echo \esc_html( $min_to_select ); ?> 51 51 </span> 52 52 <?php endif; ?> 53 53 <?php if ( ! empty( $max_to_select ) ) : ?> 54 54 <span class="fdm-extra-option-limit-desc"> 55 (Max: <?php echo \esc_html( $max_to_select ); ?>)55 Max: <?php echo \esc_html( $max_to_select ); ?> 56 56 </span> 57 57 <?php endif; ?> 58 <span class="fdm-extra-option-required"><?php echo \esc_html( $required_tag ); ?></span> 58 <?php if ( isset( $required_tag ) && ! empty( $required_tag ) ) : ?> 59 <span class="fdm-extra-option-required"><?php echo \esc_html( $required_tag ); ?></span> 60 <?php endif; ?> 59 61 </div> 60 62 -
myd-delivery/tags/1.6.4/vendor/composer/installed.php
r3488500 r3489275 2 2 'root' => array( 3 3 'name' => 'eduardovillao/myd-delivery', 4 'pretty_version' => 'v1.6. 3',5 'version' => '1.6. 3.0',6 'reference' => ' 6a6c3a107b97f0f2c77d612c887c3710933dffa4',4 'pretty_version' => 'v1.6.4', 5 'version' => '1.6.4.0', 6 'reference' => '1946d244525c6feaca25a89e8c2565e6e457eb0f', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'eduardovillao/myd-delivery' => array( 14 'pretty_version' => 'v1.6. 3',15 'version' => '1.6. 3.0',16 'reference' => ' 6a6c3a107b97f0f2c77d612c887c3710933dffa4',14 'pretty_version' => 'v1.6.4', 15 'version' => '1.6.4.0', 16 'reference' => '1946d244525c6feaca25a89e8c2565e6e457eb0f', 17 17 'type' => 'project', 18 18 'install_path' => __DIR__ . '/../../', -
myd-delivery/trunk/README.txt
r3488500 r3489275 5 5 Requires at least: 5.5 6 6 Tested up to: 6.9 7 Stable tag: 1.6. 37 Stable tag: 1.6.4 8 8 Requires PHP: 7.4 9 9 License: GPL-3.0+ … … 75 75 76 76 == Changelog == 77 78 = 1.6.4 = 79 * Changed: small UI improvements in required and min and max tags. 80 * Changed: add price formatting in the table list of products and extra options. 81 * Changed: code improvements. 77 82 78 83 = 1.6.3 = -
myd-delivery/trunk/includes/myd-manage-cpt-columns.php
r3478512 r3489275 61 61 function myd_products_custom_columns( $columns ) { 62 62 $columns["price"] = '' . __( 'Price', 'myd-delivery' ) . ''; 63 $columns["product_available"] = '' . __( 'Available', 'myd-delivery' ) . ''; 63 64 $columns["product_description"] = '' . __( 'Product Description', 'myd-delivery' ) . ''; 64 65 … … 78 79 function myd_products_custom_column_content( $colname, $cptid ) { 79 80 if ( $colname == 'price') { 80 echo esc_html( get_post_meta( $cptid, 'product_price', true ) ); 81 $price = get_post_meta( $cptid, 'product_price', true ); 82 echo esc_html( Myd_Store_Formatting::format_price( $price ) ); 83 } 84 85 if ( $colname == 'product_available') { 86 $available = get_post_meta( $cptid, 'product_available', true ); 87 $labels = [ 88 'show' => __( 'Yes, show the product', 'myd-delivery' ), 89 'hide' => __( 'No, hide the product', 'myd-delivery' ), 90 'not-available' => __( 'Show as not available', 'myd-delivery' ), 91 ]; 92 echo esc_html( $labels[ $available ] ?? '' ); 81 93 } 82 94 … … 113 125 function myd_extra_option_custom_column_content( $colname, $cptid ) { 114 126 if ( $colname === 'option_price' ) { 115 echo esc_html( get_post_meta( $cptid, 'option_price', true ) ); 127 $price = get_post_meta( $cptid, 'option_price', true ); 128 echo esc_html( Myd_Store_Formatting::format_price( $price ) ); 116 129 } 117 130 -
myd-delivery/trunk/myd-delivery.php
r3488500 r3489275 6 6 * Author: EduardoVillao.me 7 7 * Author URI: https://eduardovillao.me/ 8 * Version: 1.6. 38 * Version: 1.6.4 9 9 * Requires PHP: 7.4 10 10 * Requires at least: 5.5 … … 26 26 define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) ); 27 27 define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) ); 28 define( 'MYDDELIVERY_VERSION', '1.6. 3' );28 define( 'MYDDELIVERY_VERSION', '1.6.4' ); 29 29 define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' ); 30 30 define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' ); -
myd-delivery/trunk/templates/products/product-extra.php
r3478512 r3489275 48 48 <?php if ( ! empty( $min_to_select ) ) : ?> 49 49 <span class="fdm-extra-option-limit-desc"> 50 (Min: <?php echo \esc_html( $min_to_select ); ?>)50 Min: <?php echo \esc_html( $min_to_select ); ?> 51 51 </span> 52 52 <?php endif; ?> 53 53 <?php if ( ! empty( $max_to_select ) ) : ?> 54 54 <span class="fdm-extra-option-limit-desc"> 55 (Max: <?php echo \esc_html( $max_to_select ); ?>)55 Max: <?php echo \esc_html( $max_to_select ); ?> 56 56 </span> 57 57 <?php endif; ?> 58 <span class="fdm-extra-option-required"><?php echo \esc_html( $required_tag ); ?></span> 58 <?php if ( isset( $required_tag ) && ! empty( $required_tag ) ) : ?> 59 <span class="fdm-extra-option-required"><?php echo \esc_html( $required_tag ); ?></span> 60 <?php endif; ?> 59 61 </div> 60 62 -
myd-delivery/trunk/vendor/composer/installed.php
r3488500 r3489275 2 2 'root' => array( 3 3 'name' => 'eduardovillao/myd-delivery', 4 'pretty_version' => 'v1.6. 3',5 'version' => '1.6. 3.0',6 'reference' => ' 6a6c3a107b97f0f2c77d612c887c3710933dffa4',4 'pretty_version' => 'v1.6.4', 5 'version' => '1.6.4.0', 6 'reference' => '1946d244525c6feaca25a89e8c2565e6e457eb0f', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'eduardovillao/myd-delivery' => array( 14 'pretty_version' => 'v1.6. 3',15 'version' => '1.6. 3.0',16 'reference' => ' 6a6c3a107b97f0f2c77d612c887c3710933dffa4',14 'pretty_version' => 'v1.6.4', 15 'version' => '1.6.4.0', 16 'reference' => '1946d244525c6feaca25a89e8c2565e6e457eb0f', 17 17 'type' => 'project', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.