CubicInfinity
Forum Replies Created
-
Thanks. I’m sure this will help others interested in picking up this plugin.
Ok. It looks like we can make rules for each product. These aren’t rule we can see on the product page. There doesn’t not appear to be support for variation prices. This plugin adds text to the product referring to VAT tax: “VAT excl.” or “VAT incl.” Is there a way to remove that?
Forum: Plugins
In reply to: [WooCommerce] Duplicate IDs from select elements of related productsYeah, this thread can probably be closed. I don’t like the support thread model of WordPress plugins. It would be much better to track issues like they are on Github.
Forum: Plugins
In reply to: [WooCommerce] Duplicate IDs from select elements of related productsI have not used the product IDs. As a possibly better solution, I included this in my page:
// ARIA labels for related products var related_products = document.querySelectorAll("li.product"); related_products.forEach(product => { var title = product.querySelector(".woocommerce-loop-product__title > a").innerHTML; // Replace in future with a forEach for different variation attributes var attribute_select = product.querySelector("ul.variations select"); var attribute_name = ""; if (new RegExp("^pa_").test(attribute_select.id)) { attribute_name = attribute_select.id.replace("pa_", ""); } else { attribute_name = attribute_select.id; } var aria_label = attribute_name + " for " + title; attribute_select.outerHTML = attribute_select.outerHTML.replace("<select ", "<select aria-label=\"" + aria_label + "\" "); });
Note that this is not a solution to this thread as it doesn’t fix the problem in WooCommerce, but it fixes part of accessibility for product pages on my site.
Update: Lighthouse does not actually consider this fixed: ARIA labels are not enough to replace IDs.
- This reply was modified 3 years, 5 months ago by CubicInfinity.
- This reply was modified 3 years, 5 months ago by CubicInfinity.
- This reply was modified 3 years, 5 months ago by CubicInfinity.
Forum: Plugins
In reply to: [WooCommerce] Duplicate IDs from select elements of related productsOn this matter, how can I get the product ID for each product listed in a .products.columns-n type element (backend php or javascript)?
Forum: Reviews
In reply to: [Asset CleanUp: Page Speed Booster] Really niceI have paid for the pro version because of it’s extended controls and regex filters for pages.
Forum: Plugins
In reply to: [AdRoll for WooCommerce Stores] Error when editing widgetsAbout experiencing the errors: I confirmed that when interacting with a widget customization the error is produced.
- This reply was modified 3 years, 5 months ago by CubicInfinity.
Forum: Plugins
In reply to: [AdRoll for WooCommerce Stores] Error when editing widgetsI’m experiencing the same. 300 is this line within the declaration of
get_products_added_to_cart()
and it occurs in relation to widgets:
$products_added_to_cart = array_merge($products_added_to_cart, WC()->session->get(self::PRODUCTS_ADDED_TO_CART_SESSION_KEY, array()));
I’ve never experienced the errors while interacting with the site, but have gotten multiple instances of the error reported to my email. This is an example taken from the most recent error (Note, it is not always the same widget):
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, AdRoll for WooCommerce Stores.
First, visit your website (https://…) and check for any visible issues. Next, visit the page where the error was caught (https://…/wp-admin/widgets.php?legacy-widget-preview%5BidBase%5D=nav_menu&legacy-widget-preview%5Binstance%5D%5Bencoded%5D=YToxOntzOjg6Im5hdl9tZW51IjtpOjEwNDt9&legacy-widget-preview%5Binstance%5D%5Bhash%5D=542ee33e5ee5a8203ae2efbde9ac019d&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bnav_menu%5D=104&legacy-widget-preview%5Binstance%5D%5Btitle%5D=&legacy-widget-preview%5Binstance%5D%5Bis_widget_customizer_js_value%5D=true) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.8.1
Current theme: … – Shoptimizer Child (version 1.2.1)
Current plugin: AdRoll for WooCommerce Stores (version 2.2.13)
PHP version 7.4.13Error Details
=============
An error of type E_ERROR was caused in line 300 of the file /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/adroll-for-woocommerce-stores-dev/adroll-for-woocommerce.php. Error message: Uncaught Error: Call to a member function get() on null in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/adroll-for-woocommerce-stores-dev/adroll-for-woocommerce.php:300
Stack trace:
#0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/adroll-for-woocommerce-stores-dev/adroll-for-woocommerce.php(406): AdRoll_For_WooCommerce->get_products_added_to_cart()
#1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/adroll-for-woocommerce-stores-dev/pixel.php(8): AdRoll_For_WooCommerce->get_global_vars()
#2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/adroll-for-woocommerce-stores-dev/adroll-for-woocommerce.php(46): include_once(‘/opt/bitnami/ap…’)
#3 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(303): AdRoll_For_WooCommerce->wp_footer_action_callback()
#4 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#5 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
#6 /opt/bitnami/apps/wordpress/htdocs/Forum: Plugins
In reply to: [Redirection] Where are redirection rules saved to on the server?Thanks; https://redirection.me/support/disable-redirection/ solves the issue pretty efficiently.
From what I’ve seen, manually editing the database is a bit trickier. But I like knowing this is where it’s found.
I come from GitHub culture, so I treat “issues” differently.