Plugin Directory

Changeset 3489275


Ignore:
Timestamp:
03/23/2026 05:17:19 PM (9 days ago)
Author:
evcode
Message:

Update to version 1.6.4 from GitHub

Location:
myd-delivery
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • myd-delivery/tags/1.6.4/README.txt

    r3488500 r3489275  
    55Requires at least: 5.5
    66Tested up to: 6.9
    7 Stable tag: 1.6.3
     7Stable tag: 1.6.4
    88Requires PHP: 7.4
    99License: GPL-3.0+
     
    7575
    7676== 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.
    7782
    7883= 1.6.3 =
  • myd-delivery/tags/1.6.4/includes/myd-manage-cpt-columns.php

    r3478512 r3489275  
    6161function myd_products_custom_columns( $columns ) {
    6262    $columns["price"] = '' . __( 'Price', 'myd-delivery' ) . '';
     63    $columns["product_available"] = '' . __( 'Available', 'myd-delivery' ) . '';
    6364    $columns["product_description"] = '' . __( 'Product Description', 'myd-delivery' ) . '';
    6465
     
    7879function myd_products_custom_column_content( $colname, $cptid ) {
    7980    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 ] ?? '' );
    8193    }
    8294
     
    113125function myd_extra_option_custom_column_content( $colname, $cptid ) {
    114126    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 ) );
    116129    }
    117130
  • myd-delivery/tags/1.6.4/myd-delivery.php

    r3488500 r3489275  
    66 * Author: EduardoVillao.me
    77 * Author URI: https://eduardovillao.me/
    8  * Version: 1.6.3
     8 * Version: 1.6.4
    99 * Requires PHP: 7.4
    1010 * Requires at least: 5.5
     
    2626define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) );
    2727define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) );
    28 define( 'MYDDELIVERY_VERSION', '1.6.3' );
     28define( 'MYDDELIVERY_VERSION', '1.6.4' );
    2929define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' );
    3030define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' );
  • myd-delivery/tags/1.6.4/templates/products/product-extra.php

    r3478512 r3489275  
    4848                    <?php if ( ! empty( $min_to_select ) ) : ?>
    4949                        <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 ); ?>
    5151                        </span>
    5252                    <?php endif; ?>
    5353                    <?php if ( ! empty( $max_to_select ) ) : ?>
    5454                        <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 ); ?>
    5656                        </span>
    5757                    <?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; ?>
    5961                </div>
    6062
  • myd-delivery/tags/1.6.4/vendor/composer/installed.php

    r3488500 r3489275  
    22    'root' => array(
    33        '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',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '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',
    1717            'type' => 'project',
    1818            'install_path' => __DIR__ . '/../../',
  • myd-delivery/trunk/README.txt

    r3488500 r3489275  
    55Requires at least: 5.5
    66Tested up to: 6.9
    7 Stable tag: 1.6.3
     7Stable tag: 1.6.4
    88Requires PHP: 7.4
    99License: GPL-3.0+
     
    7575
    7676== 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.
    7782
    7883= 1.6.3 =
  • myd-delivery/trunk/includes/myd-manage-cpt-columns.php

    r3478512 r3489275  
    6161function myd_products_custom_columns( $columns ) {
    6262    $columns["price"] = '' . __( 'Price', 'myd-delivery' ) . '';
     63    $columns["product_available"] = '' . __( 'Available', 'myd-delivery' ) . '';
    6364    $columns["product_description"] = '' . __( 'Product Description', 'myd-delivery' ) . '';
    6465
     
    7879function myd_products_custom_column_content( $colname, $cptid ) {
    7980    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 ] ?? '' );
    8193    }
    8294
     
    113125function myd_extra_option_custom_column_content( $colname, $cptid ) {
    114126    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 ) );
    116129    }
    117130
  • myd-delivery/trunk/myd-delivery.php

    r3488500 r3489275  
    66 * Author: EduardoVillao.me
    77 * Author URI: https://eduardovillao.me/
    8  * Version: 1.6.3
     8 * Version: 1.6.4
    99 * Requires PHP: 7.4
    1010 * Requires at least: 5.5
     
    2626define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) );
    2727define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) );
    28 define( 'MYDDELIVERY_VERSION', '1.6.3' );
     28define( 'MYDDELIVERY_VERSION', '1.6.4' );
    2929define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' );
    3030define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' );
  • myd-delivery/trunk/templates/products/product-extra.php

    r3478512 r3489275  
    4848                    <?php if ( ! empty( $min_to_select ) ) : ?>
    4949                        <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 ); ?>
    5151                        </span>
    5252                    <?php endif; ?>
    5353                    <?php if ( ! empty( $max_to_select ) ) : ?>
    5454                        <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 ); ?>
    5656                        </span>
    5757                    <?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; ?>
    5961                </div>
    6062
  • myd-delivery/trunk/vendor/composer/installed.php

    r3488500 r3489275  
    22    'root' => array(
    33        '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',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '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',
    1717            'type' => 'project',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.