ryan.odwyer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Query String appended to my site after upgrade to WP 4.3.1It is the WooCommerce “Default Customer Address” with “Geolocate (with page caching support)” option ticked.
once that was changed back to either GeoLocate or Shop Base Address problem URL went away.
Forum: Fixing WordPress
In reply to: Query String appended to my site after upgrade to WP 4.3.1Its WooCommerce.
I was able to pull down my site and disable each plugin to find the cause.
Knowing that is there a setting in WooCommerce that would cause this?
Forum: Fixing WordPress
In reply to: Query String appended to my site after upgrade to WP 4.3.1I’m at a loss, I’ve scanned through each PHP file trying to find that string.
I’ve been through the entire mySQL db trying to find that string.
Nowhere can I find how that is coming up.
Open to any ideas,
Cheers,
RyanForum: Fixing WordPress
In reply to: Query String appended to my site after upgrade to WP 4.3.1I have the same problem.
Only appeared since the 4.3.1 update as well.
No other results in Google except this post.
Reinstalling WordPress doesn’t help.
Every single link and menu item has that on the end of it.
Forum: Plugins
In reply to: [WooCommerce] Redirect to Checkout only for certain itemsActually, after some fiddling I changed the $product_id line and this worked for me, don’t know why though, I copied from the base woocommerce functions.
add_filter ('add_to_cart_redirect', 'redirect_to_checkout'); function redirect_to_checkout() { global $woocommerce; //Get product ID $product_id = apply_filters( 'woocommerce_add_to_cart_product_id', absint( $_REQUEST['add-to-cart'] ) ); //Check if product ID is in a certain taxonomy if( has_term( 'Philanthropy', 'product_cat', $product_id ) ){ //Get cart URL $checkout_url = get_permalink(get_option('woocommerce_checkout_page_id')); //Return the new URL return $checkout_url; }; }
Forum: Plugins
In reply to: [WooCommerce] Redirect to Checkout only for certain itemsHi Geet,
I also am looking at this for donations, but it doesn’t appear to be working for me.
I have a category called “philanthropy” and I have added this code to my functions.php, but it doesn’t seem to fire(I did change your code to match my category, even tried it using ID)
Did I require some extra code somewhere else?
Thanks,
Ryan