Plugin Directory

Changeset 3436161


Ignore:
Timestamp:
01/09/2026 05:18:04 PM (2 months ago)
Author:
tanvir26
Message:

Update to version 1.0.1

Location:
stockadaptix-pricing/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • stockadaptix-pricing/trunk/README.txt

    r3435222 r3436161  
    77WC requires at least: 5.0
    88WC tested up to: 10.4.3
    9 Stable tag: 1.0.0
     9Stable tag: 1.0.1
    1010License: GPLv2 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7070= 1.0.0 =
    7171* Initial public release
     72= 1.0.1 =
     73- Fixed bug
  • stockadaptix-pricing/trunk/changelog.txt

    r3435222 r3436161  
    1515* Made translation-ready with POT file included
    1616* Implemented proper WordPress and WooCommerce coding standards
     17
     18= 1.0.1 =
     19- Fixed bug
  • stockadaptix-pricing/trunk/includes/Services/PricingService.php

    r3435222 r3436161  
    231231     */
    232232    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        }
    234241       
    235242        // Only apply adjustments if plugin is enabled and product exists
  • stockadaptix-pricing/trunk/stockadaptix-pricing.php

    r3435222 r3436161  
    33 * Plugin Name: StockAdaptix – Inventory-Driven Dynamic Pricing for WooCommerce
    44 * Description: Dynamically adjust product prices based on current stock quantity to reflect supply and demand in real-time.
    5  * Version: 1.0.0
     5 * Version: 1.0.1
    66 * Author: Naymul Hasan Tanvir
    77 * License: GPL v2 or later
Note: See TracChangeset for help on using the changeset viewer.