andykoska
Forum Replies Created
-
Following the findings in the System Report regarding the outdated
single-product.php, my developer has completely refactored the template to ensure full compatibility with the current WooCommerce version.Technical Update: We have restored the standard WooCommerce lifecycle and ensured all required hooks are present. Here is the full changelog of the work done by my developer:
- Restored the standard WooCommerce single product lifecycle:
- Added
woocommerce_before_single_product - Added
woocommerce_after_single_product - Re-enabled the required
woocommerce_single_product_summary
- Added
- WooCommerce core and payment plugins (PayPal / Apple Pay) now correctly detect the product. Price, variations, stock status, and quantity are properly initialized.
- Added the required WooCommerce product wrapper:
<div id="product-ID" class="product type-product …">. This is required for schema markup, WooCommerce JS, and payment SDKs. - Fixed PayPal / Apple Pay initialization on the product page. The SDK no longer fails due to missing WooCommerce hooks. The page is correctly recognized as a single-product.
- Synced custom variation logic with WooCommerce:
variation_idis set programmatically.- Variations work without the default select-based UI.
- Preserved the custom layout: No changes to HTML, CSS, or UI. All fixes were hook- and logic-level only.
- Prepared the template for strict CSP environments: Logic moved away from inline JavaScript.
Current Situation: Despite these extensive fixes and clearing all caches (server/browser), the specific console error persists on the Product Page:
[applepay | mini-cart] No API configuration - missing configure() call? [applepay | product] No API configuration - missing configure() call?Since the template now includes all standard hooks and wrappers, the theme structure should no longer be the issue.
Could you please advise what else could be blocking the configuration object from loading on the Product Page specifically?
Best regards, Andrii
Thanks for explanation
Here is the link to my System Status Report via PrivateBin as requested: https://privatebin.syde.com/?2ba31d49a744f27f#As6KVAoNu43B51LA9Ni42FbH4ZPD8uDpFEBpxNRRTJTU
Please review it and let me know the next steps.
Best regards, Andrii
[ SNIP! ]
Hi Jamie,
Thank you for the update.
Here is the link to my System Status Report via PrivateBin as requested: https://privatebin.syde.com/?2ba31d49a744f27f#As6KVAoNu43B51LA9Ni42FbH4ZPD8uDpFEBpxNRRTJTU
Please review it and let me know the next steps.
Best regards, Andrii
- Restored the standard WooCommerce single product lifecycle: