Plugin Directory

Changeset 3324773


Ignore:
Timestamp:
07/09/2025 07:48:53 AM (9 months ago)
Author:
webimpian
Message:

Fix bug

Location:
bayarcash-wc
Files:
378 added
3 edited

Legend:

Unmodified
Added
Removed
  • bayarcash-wc/trunk/bayarcash-wc.php

    r3305853 r3324773  
    1313 * Plugin Name:         Bayarcash WC
    1414 * Plugin URI:          https://bayarcash.com/
    15  * Version:             4.3.9
     15 * Version:             4.3.10
    1616 * Description:         Accept payment from Malaysia. Bayarcash support FPX, Direct Debit, DuitNow OBW & DuitNow QR payment channels.
    1717 * Author:              Web Impian
  • bayarcash-wc/trunk/includes/src/CustomProductText.php

    r3202131 r3324773  
    5252    }
    5353
    54     public function modify_add_to_cart_button($add_to_cart_html, $product, $args): string
     54    public function modify_add_to_cart_button($add_to_cart_html, $product, $args = []): string
    5555    {
     56        $all_args = func_get_args();
     57        if (count($all_args) < 2) {
     58            return $add_to_cart_html;
     59        }
     60
    5661        $price = (float)$product->get_price();
    5762        return $this->get_payment_info_html($price) . $add_to_cart_html;
  • bayarcash-wc/trunk/readme.txt

    r3305853 r3324773  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 4.3.9
     7Stable tag: 4.3.10
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    8989== Changelog ==
    9090
     91
     92= 4.3.10 =
     93* Fixed compatibility issue with product page display
     94
    9195= 4.3.9 =
    9296* Fixed Direct Debit not detecting 2nd, 3rd, and subsequent deductions
Note: See TracChangeset for help on using the changeset viewer.