Changeset 3036277
- Timestamp:
- 02/15/2024 12:37:10 PM (2 years ago)
- Location:
- hertwill
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.2 (copied) (copied from hertwill/trunk)
-
tags/1.0.2/README.md (modified) (1 diff)
-
tags/1.0.2/hertwill.php (modified) (1 diff)
-
tags/1.0.2/options.php (modified) (2 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/hertwill.php (modified) (1 diff)
-
trunk/options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hertwill/tags/1.0.2/README.md
r3035743 r3036277 6 6 Tested up to: 6.4 7 7 Requires PHP: 7.4 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
hertwill/tags/1.0.2/hertwill.php
r3035743 r3036277 4 4 * Plugin URI: https://hertwill.com/ 5 5 * Description: Hertwill companion plugin for managing your products 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Hertwill 8 8 * Author URI: https://hertwill.com -
hertwill/tags/1.0.2/options.php
r3035736 r3036277 12 12 add_action('admin_enqueue_scripts', array( $this, 'enqueue_styles' )); 13 13 // 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')); 15 15 // Show notice if WooCommerce is not activated 16 16 if (!$this->is_woocommerce_activated()) { … … 65 65 66 66 // 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); 68 68 69 69 // 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 : ''; 71 71 72 72 // Display cost price field only if 'cost_price' exists in 'hw' metadata -
hertwill/trunk/README.md
r3035743 r3036277 6 6 Tested up to: 6.4 7 7 Requires PHP: 7.4 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
hertwill/trunk/hertwill.php
r3035743 r3036277 4 4 * Plugin URI: https://hertwill.com/ 5 5 * Description: Hertwill companion plugin for managing your products 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Hertwill 8 8 * Author URI: https://hertwill.com -
hertwill/trunk/options.php
r3035736 r3036277 12 12 add_action('admin_enqueue_scripts', array( $this, 'enqueue_styles' )); 13 13 // 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')); 15 15 // Show notice if WooCommerce is not activated 16 16 if (!$this->is_woocommerce_activated()) { … … 65 65 66 66 // 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); 68 68 69 69 // 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 : ''; 71 71 72 72 // Display cost price field only if 'cost_price' exists in 'hw' metadata
Note: See TracChangeset
for help on using the changeset viewer.