Plugin Directory

Changeset 3036277


Ignore:
Timestamp:
02/15/2024 12:37:10 PM (2 years ago)
Author:
hertwill
Message:

Update to version 1.0.2 from GitHub

Location:
hertwill
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • hertwill/tags/1.0.2/README.md

    r3035743 r3036277  
    66Tested up to: 6.4
    77Requires PHP: 7.4
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • hertwill/tags/1.0.2/hertwill.php

    r3035743 r3036277  
    44 * Plugin URI: https://hertwill.com/
    55 * Description: Hertwill companion plugin for managing your products
    6  * Version: 1.0.1
     6 * Version: 1.0.2
    77 * Author: Hertwill
    88 * Author URI: https://hertwill.com
  • hertwill/tags/1.0.2/options.php

    r3035736 r3036277  
    1212        add_action('admin_enqueue_scripts', array( $this, 'enqueue_styles' ));
    1313        // Add action to display cost price on product options pricing
    14         add_action('woocommerce_product_options_pricing', array($this, 'add_woo_cost_price_field'));
     14        add_action('woocommerce_product_options_inventory_product_data', array($this, 'add_woo_cost_price_field'));
    1515        // Show notice if WooCommerce is not activated
    1616        if (!$this->is_woocommerce_activated()) {
     
    6565
    6666        // Check if 'hw' metadata exists for the product
    67         $hw_metadata = get_post_meta($post->ID, 'hw', true);
     67        $hw_metadata = get_post_meta($post->ID, '_hw_product_cost', true);
    6868
    6969        // Check if 'cost_price' field exists within 'hw' metadata
    70         $cost_price_value = isset($hw_metadata['cost_price']) ? $hw_metadata['cost_price'] : '';
     70        $cost_price_value = isset($hw_metadata) ? $hw_metadata : '';
    7171
    7272        // Display cost price field only if 'cost_price' exists in 'hw' metadata
  • hertwill/trunk/README.md

    r3035743 r3036277  
    66Tested up to: 6.4
    77Requires PHP: 7.4
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • hertwill/trunk/hertwill.php

    r3035743 r3036277  
    44 * Plugin URI: https://hertwill.com/
    55 * Description: Hertwill companion plugin for managing your products
    6  * Version: 1.0.1
     6 * Version: 1.0.2
    77 * Author: Hertwill
    88 * Author URI: https://hertwill.com
  • hertwill/trunk/options.php

    r3035736 r3036277  
    1212        add_action('admin_enqueue_scripts', array( $this, 'enqueue_styles' ));
    1313        // Add action to display cost price on product options pricing
    14         add_action('woocommerce_product_options_pricing', array($this, 'add_woo_cost_price_field'));
     14        add_action('woocommerce_product_options_inventory_product_data', array($this, 'add_woo_cost_price_field'));
    1515        // Show notice if WooCommerce is not activated
    1616        if (!$this->is_woocommerce_activated()) {
     
    6565
    6666        // Check if 'hw' metadata exists for the product
    67         $hw_metadata = get_post_meta($post->ID, 'hw', true);
     67        $hw_metadata = get_post_meta($post->ID, '_hw_product_cost', true);
    6868
    6969        // Check if 'cost_price' field exists within 'hw' metadata
    70         $cost_price_value = isset($hw_metadata['cost_price']) ? $hw_metadata['cost_price'] : '';
     70        $cost_price_value = isset($hw_metadata) ? $hw_metadata : '';
    7171
    7272        // Display cost price field only if 'cost_price' exists in 'hw' metadata
Note: See TracChangeset for help on using the changeset viewer.