Explanation:
If the Clearpay product display disappears when selecting a variant, it is likely caused by one or more of the following issues:
1. Variant Pricing Not Updating Correctly
- Clearpay messaging is linked to the product price. When a variant with a different price is selected, the messaging may fail to update and therefore disappear.
- Action: Ensure that the Payment Info Display for Product Variant setting is enabled in the Clearpay settings to allow Clearpay messaging to update dynamically based on the selected variant.
2. JavaScript Conflicts
- JavaScript conflicts can prevent the Clearpay messaging from displaying when switching variants. Other plugins or custom themes may be interfering with the code that renders the Clearpay messaging.
- Action: Check the browser’s developer console for any JavaScript errors (right-click > Inspect > Console). If errors are present, they may need to be resolved by a developer.
3. Incorrect Hook or Template Configuration
- The Clearpay messaging relies on the correct hooks within your theme. If the hook used for displaying the messaging is not compatible with variant selections, the messaging may disappear.
- Action: Ensure you are using the correct hook, such as woocommerce_before_add_to_cart_form, for the product page template. Review the Clearpay settings to ensure the appropriate hook is in place.
Important Notes:
If the Clearpay product display still disappears after following the above steps, we recommend consulting a developer to ensure compatibility between your theme and the Clearpay messaging functionality.