wbrubaker.a11n
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Analytics for WooCommerce] Paypal Transactions not passing to GAHowdy ??
My first guess would be a JavaScript error on the thank you page. Can you test with your browser’s developer console open and see if there are any JavaScript errors in the console when you are redirected to the thank you page? This test must be done as a non-admin user.
Kind regards
Forum: Plugins
In reply to: [Google Analytics for WooCommerce] Opt Out CookieHowdy ??
I had a look at the site and it appears that you are using this cookie notice plugin: https://www.ads-software.com/plugins/cookie-notice/
In their documentation, they state:
If you’d like to code a functionality depending on the cookie notice value use the function below:
if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) { // Your third-party non functional code here }
The current version of the Google Analytics plugin provides a filter named
woocommerce_ga_disable_tracking
– if a callback function to that filter returns true then the WooCommerce Google Analytics code will not be loaded. So, with that in mind, a code snippet like this would do the trick: https://gist.github.com/WillBrubaker/77bcc2c1ab8fd47c4b948f64a854021cHope that helps. Kind regards.
Forum: Plugins
In reply to: [Google Analytics for WooCommerce] Conversions no longer trackingHowdy ??
This sounds to me like a JavaScript error on checkout. Can you check your browser’s JavaScript console for errors?
Forum: Plugins
In reply to: [WooCommerce] PayPal IPN/PDT before thank you page problemHowdy ??
No. Despite the I in IPN standing for “instant” it is not instant. And, since you say you are testing, in sandbox mode there are even further delays.
If you must use PayPal in this scenario then I would suggest you use the PayPal powered by Braintree gateway as an alternative to PayPal Standard. https://www.ads-software.com/plugins/woocommerce-gateway-paypal-powered-by-braintree/
Forum: Plugins
In reply to: [WooCommerce] Grab variation sku with wc_add_to_cart_message_html filterHowdy ??
If you wanted to add an extra argument, you would need to submit a pull request with your desired changes to the WooCommerce repo here: https://github.com/woocommerce/woocommerce
That said, you can access the request which would have the variation id – so something like this in your callback function:
`
if ( isset( $_REQUEST[‘variation_id’] ) ) {
$product = wc_get_product( $_REQUEST[‘variation_id’] );
$sku = $product->get_sku();
}
`
would give you access to the variation sku.
Forum: Plugins
In reply to: [WooCommerce] Changing default filter”Relevance “in search pageGot it – thanks for the clarification.
This is relevant https://github.com/woocommerce/woocommerce/issues/16565
If you are viewing search results, this condition https://github.com/woocommerce/woocommerce/blob/master/includes/wc-template-functions.php#L1306 will be met and the results will always be sorted by relevance.
That is a pluggable function so you could completely overwrite it and change the results to be ordered however you would like.
Forum: Plugins
In reply to: [WooCommerce] Lightbox not working despite added codeIf you copied and pasted that code snippet as it is, it has typographer’s quotes rather than straight quotes so I would encourage you to take a look and ensure that the quote marks are all straight quotes rather than typographer’s quotes.
Forum: Plugins
In reply to: [WooCommerce] $woocommerce->post(…) not workingIt would be possible, however, to use a WordPress function the receiving URL would need to be within your WordPress installation.
Forum: Plugins
In reply to: [WooCommerce] how ordering by ID not randomize related product of WoocommerceHowdy ??
I think you’re misunderstanding what the “orderby” there does – that just randomizes how the products are output when they are returned by the query. Changing it to orderby=ID does order the related products by id but won’t prevent random products from being returned by the query.
You may be better off using a plugin like this https://www.ads-software.com/plugins/custom-related-products-for-woocommerce/ rather than trying to customize this yourself.
Forum: Plugins
In reply to: [WooCommerce] Changing default filter”Relevance “in search pageWeren’t you asking about the search page?
Forum: Plugins
In reply to: [WooCommerce] Hide Product Price from Google Search “Product”It’s usually recommended that these types of snippets be placed in your theme’s functions.php file, but I personally don’t think that’s a good idea since depending on how the theme update works you may lose these custom changes when updating your theme. Some people use the Functionality (https://www.ads-software.com/plugins/functionality/) plugin or something similar for this purpose.
If you choose to place this snippet in your theme’s functions.php file please proceed with **extreme caution**. Make a backup of the file before editing it and ensure that you have access to your site’s file system via FTP or your hosting account’s cpanel just in case something goes wrong.
Forum: Plugins
In reply to: [WooCommerce] Used for variants set to default (admin)That code is JavaScript and would somehow need to be included when viewing a product edit screen. The approach that I would recommend would be to create a plugin for this purpose. If you’re unfamiliar with how that is done, here is a good starting point: https://developer.www.ads-software.com/plugins/
And a useful function for enqueueing JavaScript in WordPress: https://developer.www.ads-software.com/reference/functions/wp_enqueue_script/
Forum: Plugins
In reply to: [WooCommerce] Disable State when US Terrorities selected as a countryHowdy ??
I noticed in the log for 3.4.2 that the state was disabled for a couple of countries. Would it be possible to do this to the U.S. territories as well or would this cause problems?
The best place for that would be the WooCommerce issue tracker. You would need to make a good case for WooCommerce removing the state fields for those countries.
That said, you certainly could do it yourself. WooCommerce provides a dynamically named filter that you can see in the code here: https://github.com/woocommerce/woocommerce/blob/master/includes/class-wc-countries.php#L1258 – the dynamic portion of the filter name would be one of either
billing_
orshipping_
which are hopefully self-explanatory.Here is an example of how that could be implemented to achieve what I understand you are trying to achieve https://gist.github.com/WillBrubaker/12aa3af4249dfcb330e60890338b5482
Forum: Plugins
In reply to: [WooCommerce] Need 2 searches for 2 user groups on 1 public siteI hadn’t ever heard of anything like this before but I did a google search and wasn’t able to come up with anything. This will likely need to be custom developed.
Forum: Plugins
In reply to: [WooCommerce] removing “proceed to checkout” button from cart pagesomething like this will do the trick
a.checkout-button.button.alt.wc-forward { display: none; }