somewherewarm / woocommerce-product-recommendations-custom-locations

Use WordPress shortcodes to display product recommendations at any page or location of your WooCommerce store. Feature plugin for the official Product Recommendations extension.
2 stars 1 forks source link

Custom Locations not working with Product Recommendations 4.0+ #8

Closed thomasjvu closed 3 weeks ago

thomasjvu commented 1 month ago

Issue

The custom locations add-on isn't working with Product Recommendations 4.0+. When attempting to add a new custom location, the changes will not save properly.

Replication Steps

  1. Install Custom Locations 2.0.0 && Product Recommendations 4.0+
  2. Try to create a new custom location. Changes will not save properly.
  3. Revert back to Custom Locations 1.0.3 && Product Recommendations 3.0.11.
  4. See that the issue no longer exists.

Video: https://d.pr/v/5FY1vs

System Status Report ``` ### WordPress Environment ### WordPress address (URL): [Redacted] Site address (URL): [Redacted] WC Version: 9.1.4 Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site. Action Scheduler Version: ✔ 3.7.4 Log Directory Writable: ✔ WP Version: 6.6.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: ✔ ### Server Environment ### Server Info: nginx PHP Version: 8.1.29 PHP Post Max Size: 2 GB PHP Time Limit: 1200 PHP Max Input Vars: 6144 cURL Version: 8.7.1 OpenSSL/1.1.1w SUHOSIN Installed: – MySQL Version: 10.6.15-MariaDB-log Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### [REDACTED] ### Post Type Counts ### attachment: 3 aw_workflow: 16 efw_fees: 1 global_product_addon: 1 mailpoet_page: 1 page: 16 post: 1 prl_engine: 1 prl_hook: 3 product: 78 product_variation: 64 revision: 15 shop_coupon: 421 shop_order: 12 shop_subscription: 2 wc-donation: 1 wc_membership_plan: 1 wp_global_styles: 1 wp_navigation: 1 wp_template: 3 wp_template_part: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (4) ### Pressable OnePress Login: by Pressable – 1.3.2 Product Recommendations - Custom Locations: by SomewhereWarm – 2.0.0 Woo Product Recommendations: by Woo – 4.0.1 WooCommerce: by Automattic – 9.1.4 ### Inactive Plugins (49) ### Advanced Database Cleaner: by Younes JFR. – 3.1.4 Affiliate For WooCommerce: by StoreApps – 7.12.0 (update to version 8.0.4 is available) Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3 AutomateWoo: by WooCommerce – 6.0.9 (update to version 6.0.30 is available) AutomateWoo - Birthdays Add-on: by WooCommerce – 1.3.29 (update to version 1.3.39 is available) AutomateWoo - Refer A Friend Add-on: by WooCommerce – 2.7.13 (update to version 2.7.22 is available) Braintree for WooCommerce Payment Gateway: by WooCommerce – 3.1.5 (update to version 3.1.7 is available) Bulk Edit Products, Prices & Attributes for Woocommerce: by ELEXtensions – 2.1.0 (update to version 2.1.3 is available) Code Snippets: by Code Snippets Pro – 3.6.4 Customize My Account Page For Woocommerce: by WPEverest – 0.4.8 Database Management tool - Adminer: by Pexle Chris – 2.2.2 Donation For Woocommerce: by wpexpertsio – 3.5.1 Extra Fees for WooCommerce: by Flintop – 5.3.0 Jetpack: by Automattic – 13.7-a.7 Jetpack Protect: by Automattic - Jetpack Security team – 2.2.0 Loco Translate: by Tim Whitlock – 2.6.7 Mailchimp for WooCommerce: by Mailchimp – 4.0.1 MailPoet: by MailPoet – 4.49.1 Product Recommendations - Custom Locations: by SomewhereWarm – 1.0.3 (update to version 2.0.0 is available) User Switching for WooCommerce: by Krokedil – 2.1.0 WooCommerce All Products For Subscriptions: by WooCommerce – 4.1.3 (update to version 6.0.1 is available) WooCommerce Authorize.Net Gateway: by SkyVerge – 3.9.5 (update to version 3.10.6 is available) WooCommerce Box Office: by WooCommerce – 1.2.4 (update to version 1.2.6 is available) WooCommerce Composite Products: by WooCommerce – 8.10.4 (update to version 10.0.1 is available) WooCommerce EU VAT Number: by WooCommerce – 2.9.1 (update to version 2.9.6 is available) WooCommerce Gift Cards: by WooCommerce – 1.16.6 (update to version 2.0.1 is available) WooCommerce Memberships: by SkyVerge – 1.25.1 (update to version 1.26.8 is available) WooCommerce Multilingual & Multicurrency: by OnTheGoSystems – 5.3.6 WooCommerce Payments Dev Tools: by Automattic – WooCommerce Print Invoices/Packing Lists: by SkyVerge – 3.13.3 (update to version 3.13.5 is available) WooCommerce Product Add-ons: by WooCommerce – 6.5.1 (update to version 7.0.1 is available) WooCommerce Product Bundles: by WooCommerce – 6.22.4 (update to version 8.0.1 is available) WooCommerce Product Table: by Codup – 1.2.7.52 WooCommerce Product Vendors: by WooCommerce – 2.2.6 (update to version 2.2.9 is available) WooCommerce Shipping & Tax: by WooCommerce – 2.5.5 (update to version 2.7.0 is available) WooCommerce Smart Coupons: by StoreApps – 8.9.0 (update to version 9.7.0 is available) WooCommerce Square: by WooCommerce – 4.6.1 (update to version 4.7.2 is available) WooCommerce Stripe Gateway: by WooCommerce – 8.5.2 WooCommerce Subscription Downloads: by WooCommerce – 1.4.1 WooCommerce Subscriptions: by WooCommerce – 6.3.2 (update to version 6.5.0 is available) WooCommerce Subscriptions - Custom Price String: by WooCommerce – 1.0.6 WooCommerce Subscriptions Gifting: by WooCommerce – 2.7.0 WooCommerce Table Rate Shipping: by WooCommerce – 3.1.6 (update to version 3.3.0 is available) WooCommerce UPS Shipping: by WooCommerce – 3.5.8 (update to version 3.7.0 is available) WooCommerce USPS Shipping: by WooCommerce – 4.8.2 (update to version 5.0.0 is available) Woo Conditional Shipping and Payments: by Woo – 1.15.8 (update to version 2.0.1 is available) WooPayments: by Automattic – 7.7.0 (update to version 8.0.1 is available) WordPress Importer: by wordpressdotorg – 0.8.2 WP Mail Logging: by WP Mail Logging Team – 1.12.0 ### Dropin Plugins () ### advanced-cache.php: advanced-cache.php object-cache.php: Memcached ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: bundle (bundle) composite (composite) external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ✔ Enforce Approved Product Download Directories: ✔ HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: ✔ ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 days Level threshold: – Log directory size: 93 KB ### WC Pages ### Shop base: #5 - /shop/ Cart: #6 - /cart/ - This page's content is overridden by custom template content Checkout: #7 - /checkout/ - This page's content is overridden by custom template content My account: #8 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Twenty Twenty-Three Version: 1.4 (update to version 1.5 is available) Author URL: https://wordpress.org Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: /wordpress/plugins/woocommerce/9.1.4/templates/block-notices/error.php /wordpress/plugins/woocommerce/9.1.4/templates/block-notices/notice.php /wordpress/plugins/woocommerce/9.1.4/templates/block-notices/success.php ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-custom-fields remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page launch-your-store Disabled Features: experimental-blocks minified-js pattern-toolkit-full-composability product-pre-publish-modal printful settings async-product-editor-category-field product-editor-template-system Daily Cron: ✔ Next scheduled: 2024-08-04 13:31:41 +00:00 Options: ✔ Notes: 106 Onboarding: skipped ### Action Scheduler ### Complete: 213 Oldest: 2024-07-03 20:55:05 +0000 Newest: 2024-08-01 14:35:23 +0000 Failed: 84 Oldest: 2023-11-03 14:54:45 +0000 Newest: 2024-08-03 19:57:48 +0000 Pending: 5 Oldest: 2024-08-03 20:03:19 +0000 Newest: 2024-09-01 14:34:07 +0000 ### Product Recommendations ### Database Version: 4.0.1 Loopback Test: – Task Queueing Test: ✔ Page Cache Test: – ### Status report information ### Generated at: 2024-08-03 20:03:39 +00:00 ```

Note I understand that support for this product may be limited and have conveyed that accordingly but I see that the extension was recently updated so hopefully the issue can be easily fixed.

thomasjvu commented 3 weeks ago

It looks like updating to Product Recommendations v4.0.2 resolves this issue.

Fix - Resolved issue that prevented deployed engines from showing up in the Locations tab.

So closing with comment here.