Tag: wordpress development

  • YITH Role Based Pricing bug fixed with a reset

    Somewhere along the way with the YITH Role Based Prices plugin, a client of ours had a sudden complete loss of all their specialized discounts. An update of the YITH Role Based Prices caused all the settingss for the dicount rules to completely dissapear. Specifcally, the discount rules were created for specific product categories based on user role. Both the applied user roles and the product categories were missing after the plugin update.

    Contacting the YITH support team did bring somewhat of a resolution to the problem. The support agent was able to the restore the data using a custom script. However, the pricing rules still were not applying any discounts on the front end of the website. Several rounds of troubleshooting eventually lead to discovering a solution: disabling and enabling each rule.

    The simple yet effective restart restored the display of the rules on the front of the site and everything worked as normal. This whole scenario points toward a poorly coded database table migration along with a lack of a communication from YITH on a major plugin update.

  • Gravity Forms filer to disable CSS only works with Orbital theme

    When using the Gravity Forms 2.5 Theme, the action filter to disable the default CSS doesn’t work. Luckily, the filter does work when using the recommended Orbital theme:

    add_filter( 'gform_disable_css', '__return_true' );

    I discovered this while working on a legacy WordPress site that uses the Classic Editor and troubleshooting why my styling wasn’t applying correctly.

    My current version of Gravity Forms (2.9) includes a setting to called Output Default CSS which can be toggled on and off. Depending on the state of the Gravity Forms Plugin, this setting may have no effect. Unfortunately, there’s no indication or notification of this setting not working although it is mentioned in the docmentation.