SomewhatMedia
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Sitewide Fatal Error – “Declaration of Dhii”That seems to have done the job – all appears to be working fine now, thanks!
Any additional assistance I can provide? Do you know when this fix will be rolled out to the main branch?
Best,
MattForum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] Ver 2014 broke my website!Go to the Spectra settings in the dashboard and you can rollback.
From the plugins page you can disable auto-update.
Forum: Plugins
In reply to: [WooCommerce] Override “Prices entered with tax” option for user roleHi @babylon1999
I’m not looking for someone to do this for me – I’m just sure there’ll be a filter for this somewhere that I can’t seem to find after pouring through the documentation.
Best,
MattForum: Plugins
In reply to: [WooCommerce] Override “Prices entered with tax” option for user roleThanks @babylon1999
Unfortunately, it looks like that plugin simply shows/hides taxes.
All I really need is a way to programmatically override the setting above (Prices displayed in shop include/exclude taxes) for a user role – is there no filter for that?
Best,
MattForum: Plugins
In reply to: [WooCommerce] Override “Prices entered with tax” option for user roleHi Igor,
I’ve removed the site URLs before – is there a way I can provide this to you privately if needed?
### WordPress Environment ### WordPress address (URL): REMOVED Site address (URL): REMOVED WC Version: 7.0.1 REST API Version: ? 7.0.1 WC Blocks Version: ? 8.5.2 Action Scheduler Version: ? 3.5.2 Log Directory Writable: ? WP Version: 6.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.0.15 PHP Post Max Size: 128 MB PHP Time Limit: 300 PHP Max Input Vars: 2500 cURL Version: 7.79.1 OpenSSL/1.1.1g-fips SUHOSIN Installed: – MySQL Version: 5.5.5-10.4.24-MariaDB-log Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.0.1 WC Database Prefix: 48_ Total Database Size: 452.24MB Database Data Size: 260.20MB Database Index Size: 192.04MB 48_woocommerce_sessions: Data: 0.09MB + Index: 0.02MB + Engine InnoDB 48_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 48_woocommerce_order_items: Data: 2.52MB + Index: 0.36MB + Engine InnoDB 48_woocommerce_order_itemmeta: Data: 11.52MB + Index: 14.97MB + Engine InnoDB 48_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 48_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_woocommerce_shipping_zone_locations: Data: 0.06MB + Index: 0.06MB + Engine InnoDB 48_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_actionscheduler_actions: Data: 9.02MB + Index: 12.27MB + Engine InnoDB 48_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_actionscheduler_logs: Data: 10.02MB + Index: 8.03MB + Engine InnoDB 48_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_comments: Data: 1.03MB + Index: 0.09MB + Engine InnoDB 48_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 48_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_options: Data: 7.02MB + Index: 2.11MB + Engine InnoDB 48_postmeta: Data: 63.55MB + Index: 36.05MB + Engine InnoDB 48_posts: Data: 32.45MB + Index: 7.84MB + Engine InnoDB 48_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_rank_math_analytics_gsc: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 48_rank_math_analytics_objects: Data: 3.52MB + Index: 2.52MB + Engine InnoDB 48_rank_math_internal_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_rank_math_internal_meta: Data: 1.52MB + Index: 0.00MB + Engine InnoDB 48_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_relevanssi: Data: 75.67MB + Index: 73.95MB + Engine InnoDB 48_relevanssi_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_relevanssi_stopwords: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_sbi_feeds: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_sbi_feed_caches: Data: 0.14MB + Index: 0.02MB + Engine InnoDB 48_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_sbi_instagram_posts: Data: 0.09MB + Index: 0.00MB + Engine InnoDB 48_sbi_sources: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_termmeta: Data: 0.23MB + Index: 0.34MB + Engine InnoDB 48_terms: Data: 0.19MB + Index: 0.25MB + Engine InnoDB 48_term_relationships: Data: 4.13MB + Index: 2.36MB + Engine InnoDB 48_term_taxonomy: Data: 0.16MB + Index: 0.19MB + Engine InnoDB 48_tinvwl_analytics: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_tinvwl_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_tinvwl_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_usermeta: Data: 3.52MB + Index: 5.03MB + Engine InnoDB 48_users: Data: 0.30MB + Index: 0.33MB + Engine InnoDB 48_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB 48_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_wc_category_lookup: Data: 0.45MB + Index: 0.00MB + Engine InnoDB 48_wc_customer_lookup: Data: 0.17MB + Index: 0.13MB + Engine InnoDB 48_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 48_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 48_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 48_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_wc_product_meta_lookup: Data: 1.48MB + Index: 2.72MB + Engine InnoDB 48_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 48_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_wdr_order_item_discounts: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 48_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 48_wlr_earn_campaign: Data: 0.02MB + Index: 0.09MB + Engine InnoDB 48_wlr_earn_campaign_transaction: Data: 0.09MB + Index: 0.19MB + Engine InnoDB 48_wlr_levels: Data: 0.02MB + Index: 0.08MB + Engine InnoDB 48_wlr_logs: Data: 0.16MB + Index: 0.06MB + Engine InnoDB 48_wlr_points_ledger: Data: 0.11MB + Index: 0.16MB + Engine InnoDB 48_wlr_referral: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 48_wlr_rewards: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 48_wlr_reward_transactions: Data: 0.02MB + Index: 0.08MB + Engine InnoDB 48_wlr_users: Data: 0.02MB + Index: 0.08MB + Engine InnoDB 48_wlr_user_rewards: Data: 0.02MB + Index: 0.11MB + Engine InnoDB INEXCEPTION: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ivnotify: Data: 0.00MB + Index: 0.00MB + Engine MyISAM IVPRICES: Data: 0.02MB + Index: 0.02MB + Engine InnoDB IVRETAIL: Data: 29.58MB + Index: 20.09MB + Engine InnoDB SYPARAM: Data: 0.14MB + Index: 0.06MB + Engine InnoDB v_category: Data: 0.00MB + Index: 0.00MB + Engine v_cat_exceptions: Data: 0.00MB + Index: 0.00MB + Engine v_customer: Data: 0.00MB + Index: 0.00MB + Engine v_details: Data: 0.00MB + Index: 0.00MB + Engine v_ivretail_wp: Data: 0.00MB + Index: 0.00MB + Engine v_order: Data: 0.00MB + Index: 0.00MB + Engine ### Post Type Counts ### astra_adv_header: 3 astra-advanced-hook: 11 attachment: 20173 custom_css: 1 customize_changeset: 65 nav_menu_item: 25 oembed_cache: 1 page: 19 post: 139 product: 12436 revision: 111 shop_coupon: 4 shop_order: 35 shop_order_refund: 1 sp_wps_shortcodes: 1 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (22) ### Gravity Forms: by Gravity Forms – 2.6.7 Astra Pro: by Brainstorm Force – 3.9.2 REMOVED Add-on: by REMOVED – 1.0.0 Disable Emails: by WebAware – 1.8.1 Font Awesome: by Font Awesome – 4.3.1 Google Language Translator: by Translate AI Multilingual Solutions – 6.0.15 Smash Balloon Instagram Feed: by Smash Balloon – 6.1 Points and Rewards for WooCommerce: by WP Swings – 1.2.12 Relevanssi: by Mikko Saari – 4.17.1 Rank Math SEO: by Rank Math – 1.0.101 TI WooCommerce Wishlist: by TemplateInvaders – 2.0.9 Spectra: by Brainstorm Force – 2.0.13 Points and Rewards For WooCommerce Pro: by WP Swings – 2.0.2 User Menus: by Code Atlantic – 1.3.0 User Switching: by John Blackbourn & contributors – 1.7.0 Woo Discount Rules PRO 2.0: by Flybasket – 2.5.1 Woo Discount Rules: by Flybasket – 2.5.0 Product Slider for WooCommerce: by ShapedPlugin – 2.6.2 WooCommerce Opayo Payment Suite: by Andrew Benbow – 5.8.1 WooCommerce PayPal Payments: by WooCommerce – 1.9.5 WooCommerce: by Automattic – 7.0.1 WP Encryption - One Click SSL & Force HTTPS: by WP Encryption SSL – 5.8.0 ### Inactive Plugins (2) ### WordPress Importer: by wordpressdotorg – 0.8 WPLoyalty - WooCommerce Loyalty Points, Rewards and Referral: by Wployalty – 1.1.6 ### Must Use Plugins (1) ### StackCache: by Stack CP – ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) 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: ? ### WC Pages ### Shop base: #10 - /shop/ Basket: #11 - /basket/ Checkout: #12 - /checkout/ My account: #13 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: REMOVED Version: 1.0.0 Author URL: REMOVED Child Theme: ? Parent Theme Name: Astra Parent Theme Version: 3.9.2 – 3.9.3 is available Parent Theme Author URL: REMOVED WooCommerce Support: ? ### Templates ### Overrides: – ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: GB WooCommerce currency supported: ? Advanced Card Processing available in country: ? Pay Later messaging available in country: ? Webhook status: – Vault enabled: ? Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – Tracking enabled: ? ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks 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 Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-11-04 08:26:45 +00:00 Options: ? Notes: 60 Onboarding: completed ### TI WooCommerce Wishlist Templates ### Overrides: – ### Action Scheduler ### Complete: 27,380 Oldest: 2022-10-20 01:02:08 +0100 Newest: 2022-11-03 21:53:14 +0000 Failed: 8 Oldest: 2022-09-16 10:25:49 +0100 Newest: 2022-11-02 08:50:08 +0000 Pending: 4 Oldest: 2022-11-04 08:57:08 +0000 Newest: 2022-11-14 20:55:57 +0000 ### Opayo ### Opayo Plugin Version: ? 5.8.1 Opayo Form Enabled?: ? Opayo Direct Enabled?: ? Opayo Direct using Protocol 4.00?: ? Opayo Server Enabled?: ? Opayo Pi Enabled?: ? Simple XML Available?: ? Opayo Reporting (Test): ? Opayo Reporting (Live): ? MCrypt: ? No OpenSSL: ? Yes OpenSSL Methods: ? Yes PHP Max_Input_Vars: ? 2500 ### Status report information ### Generated at: 2022-11-03 23:30:42 +00:00
With the prices – it does a lookup to a custom database table by comparing the user’s price book (set against user meta) then runs the following in a function:
$results = array(); // Init return values. $price = $res["price"]; // Before discount. $price_net = $res["price"]; // After discount. $discount = 0; $results["price_net"] = $price_net; $results["price"] = $price; $results["discount"] = $discount; return $results;
This function is then returned in a number of filters such as:
add_filter('woocommerce_product_get_price', 'usltd_custom_price', 10, 2); function usltd_custom_price ( $price, $product ) { if ( !is_user_logged_in() ) : // Standard Retail Pricing return $price; endif; $prices = usltd_get_price ( $product->get_id() ); $trade_price = $prices["price_net"]; if ($trade_price > 0) { return $trade_price; } else { return $price; } }
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Sitewide Fatal Error – “Declaration of Dhii”Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] Spectra Backwards CompatibilityForum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] Spectra Backwards Compatibility@stelat Those comments were made back in April so it’s possible things have changed. I have the same problem – no way to “convert” from UAGB Sections / Advanced Columns into the new Container type – only either to leave it as it is or convert to HTML which is very irritating.
Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] Spectra Backwards CompatibilityI asked in the Spectra Beta group back in April if it would be backwards compatible and had confirmation that it would be.
From one of the co-owners of BSF:
“1. Since the current Spectra version is beta,? there are a few known backwards compatibility issues with legacy blocks. They will be resolved in the next beta version.
2. You can continue using legacy blocks on existing website. On new websites, legacy blocks won’t show up.
3. There’s an easy upgrade path available. Gutenberg offers “covert block” feature, which can be used ??”Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] Spectra Backwards Compatibility@stelat & @blazeconcepts – for now, you can rollback in the Spectra settings to the last version of UAGB as a quick, short-term fix but this could turn into a massive issue for us as we’ve been using Astra & UAGB exclusively for years now and have some immensely complex sites.
Forum: Plugins
In reply to: [WooCommerce] 404 Error for endpointsHi @rynald0s
I’ve just tested via Postman and I can access both endpoints completely fine. 200 Status with full data. Whereas they appear to be hitting 404 errors.
Is there any reason an external service might be seeing a 404 error?
Best,
MattForum: Plugins
In reply to: [WooCommerce] 404 Error for endpointsHi @rynald0s
I unfortunately don’t know the specifics of the requests being made as it’s an external system that has very limited visibility as to what’s going on. How would be best to obtain this data?
I had to go through their support extensively for several days just to get the information about how they’re hitting 404 errors on the endpoints.
Best,
MattForum: Plugins
In reply to: [WooCommerce] 404 Error for endpointsHi @margaretwporg,
There are no error logs in WooCommerce – just an empty testing log and an image regeneration log.
Best,
MattForum: Plugins
In reply to: [WooCommerce] 404 Error for endpointsThanks for coming back to me.
I’ve tested fully with a default theme and all plugins except WooCommerce enabled and the issue still persists. Everything is fully up-to-date.
In terms of server environment, everything is marked as green, but specifics:
PHP – 8.0.19
MySQL – Maria DB 10.4.24
PHP / WP Memory Limit – 256M
Secure Connection: ActivatedThe HTACCESS file is completely vanilla WordPress – no adjustments made at all.
Best,
MattForum: Plugins
In reply to: [AMP] Analytics not tracking bounces?Hi @jamesosborne – thanks for getting back to me.
1) No – I built this site from the ground with the AMP plugin installed.
2) Yes – live traffic in the Real-time report works fine.Best,
Matt