Changeset 3436161
- Timestamp:
- 01/09/2026 05:18:04 PM (2 months ago)
- Location:
- stockadaptix-pricing/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
changelog.txt (modified) (1 diff)
-
includes/Services/PricingService.php (modified) (1 diff)
-
stockadaptix-pricing.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
stockadaptix-pricing/trunk/README.txt
r3435222 r3436161 7 7 WC requires at least: 5.0 8 8 WC tested up to: 10.4.3 9 Stable tag: 1.0. 09 Stable tag: 1.0.1 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 70 70 = 1.0.0 = 71 71 * Initial public release 72 = 1.0.1 = 73 - Fixed bug -
stockadaptix-pricing/trunk/changelog.txt
r3435222 r3436161 15 15 * Made translation-ready with POT file included 16 16 * Implemented proper WordPress and WooCommerce coding standards 17 18 = 1.0.1 = 19 - Fixed bug -
stockadaptix-pricing/trunk/includes/Services/PricingService.php
r3435222 r3436161 231 231 */ 232 232 public function adjust_cart_product_price_html( $price_html, $cart_item ) { 233 $product = $cart_item['data']; 233 // Check if $cart_item is an array (expected) or a product object (WooCommerce quirk) 234 if ( is_object( $cart_item ) && $cart_item instanceof WC_Product ) { 235 $product = $cart_item; 236 } elseif ( is_array( $cart_item ) && isset( $cart_item['data'] ) ) { 237 $product = $cart_item['data']; 238 } else { 239 return $price_html; 240 } 234 241 235 242 // Only apply adjustments if plugin is enabled and product exists -
stockadaptix-pricing/trunk/stockadaptix-pricing.php
r3435222 r3436161 3 3 * Plugin Name: StockAdaptix – Inventory-Driven Dynamic Pricing for WooCommerce 4 4 * Description: Dynamically adjust product prices based on current stock quantity to reflect supply and demand in real-time. 5 * Version: 1.0. 05 * Version: 1.0.1 6 6 * Author: Naymul Hasan Tanvir 7 7 * License: GPL v2 or later
Note: See TracChangeset
for help on using the changeset viewer.