Explanation:
To add Clearpay messaging to both the product pages and checkout, follow the steps outlined below:
1. Add Clearpay Messaging to Product Pages
- Clearpay messaging can be added to product pages using the Clearpay On-site Messaging App or manually by modifying your theme files.
-
Action:
- Go to your WordPress Admin Dashboard.
- Navigate to Plugins > Installed Plugins, and click Settings next to the Clearpay Gateway for WooCommerce.
- In the Payment Info on Individual Product Pages section, ensure the checkbox is enabled to display Clearpay messaging on your product pages.
- Choose the appropriate hook (e.g., woocommerce_before_add_to_cart_form) to position the messaging below or near the product price.
- Save your changes. The Clearpay messaging will now display on your product pages.
2. Add Clearpay Messaging to Checkout Page
- You can add Clearpay messaging to your checkout page by enabling the checkout messaging option in the Clearpay plugin settings.
-
Action:
- In your WordPress Admin Dashboard, go to Plugins > Installed Plugins and click Settings next to the Clearpay Gateway for WooCommerce.
- Scroll down to the Payment Info on Checkout Page section and ensure the checkbox is enabled to display the Clearpay messaging at checkout.
- Save the changes, and Clearpay messaging will now be visible to customers at checkout, showing the available payment options.
3. Adjust Messaging Position
- Clearpay messaging relies on hooks to position the messaging in the correct location on both the product pages and checkout.
-
Action:
- For product pages, use the hook woocommerce_before_add_to_cart_form to position the messaging directly under the product price.
- For checkout, Clearpay messaging is typically displayed below the payment method selection. Ensure the correct hook is used for the desired placement.
Important Notes:
If you’re manually editing code or using custom themes, make sure the hooks are placed correctly and that the CSS doesn’t conflict with your site’s design. In case you face any difficulties, it’s recommended to consult with a developer.