nathan12343
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Square] Credit card field won’t allow inputHaving been through everything, the issue that I have comes down to having a global shipping option. I have zomes for local (free delivery), UK (flat rate) and Global (flat rate). Disabling Global brought back the ability to enter the credit card details.
I don’t understand why.
- This reply was modified 5 years, 2 months ago by nathan12343.
Forum: Plugins
In reply to: [WooCommerce Square] Credit card field won’t allow inputI’m having exactly the same issue. A customer has told me that they can’t add payment details. My site is http://www.thestudybuddy.com
I’ve deactivated the plugin. Disconnected from Square. All the usual things but still nothing.
I had the same problem of goals not being tracked in analytics and just figured out why.
In Site Kit > Analytics > Settings the option to “Exclude logged-in users” was enabled. Because customers create accounts on purchase the goal URL wasn’t being tracked. Appreciate that you have a different plugin for GA, but it might be worth taking a look, just to make sure it’s not active in Site Kit too.
Forum: Plugins
In reply to: [Web Stories] Including Web Stories on the homepageHi @swissspidy thanks for the speedy and comprehensive reply. I get that this is new and looking forward to the tweaks and enhancements you’re all going to be making. If you need/want use cases for any future feature planning, or beta testers for the new functionality I’ll happily add my name to the list!
No. That didn’t work. Just had the message again!
You trigger a thought! I had a look through the database and found that the wp_options for site and home URL are the server IP. I’ll change those manually and see what that does.
They are both: https://thestudybuddy.com. I have a feeling that’s forced through wp-config
The only thing that I can see is that when I hover over the links “is thestudybuddy.com the new home of thestudybuddy.com” the first shows in the status bar asr “https://thestudybuddy.com” while the second only as “thestudybuddy.com”.
This is always the case so I’m not sure why fixing the connection doesn’t stick.
No, there’s no staging version. When I try to diagnose via debug I get “Debug
– Unknown error”. Not sure if that’s meaningful.I’ve tried deleting and reinstalling too. I’m not too worried about keeping the stats, just need it stable!
Forum: Plugins
In reply to: [WooCommerce] Showing the variation in the added to basket messageFor those who are interested… this is the solution:
add_filter( 'wc_add_to_cart_message_html', 'change_add_to_cart_message', 10, 2 ); function change_add_to_cart_message( $message, $products ) { $titles = array(); $count = 0; foreach ( $products as $product_id => $qty ) { // Get the WC_Product object instance $product = wc_get_product( $product_id ); if( $product->get_type() === 'variable' ) { $variation_attributes = array(); foreach( $product->get_variation_attributes() as $taxonomy => $terms_slugs ) { $wc_attribute_name = wc_variation_attribute_name( $taxonomy ); if( isset( $_REQUEST[$wc_attribute_name] ) ) { if( in_array( $_REQUEST[$wc_attribute_name], $terms_slugs ) ) { $term_name = get_term_by( 'slug', $_REQUEST[$wc_attribute_name], $taxonomy )->name; $variation_attributes[] = wc_attribute_label( $taxonomy ) . ': ' . $term_name; } } } $variation_attributes = implode(', ', $variation_attributes); } $titles[] = ( $qty > 1 ? absint( $qty ) . ' × ' : '' ) . sprintf( _x( '“%s”', 'Item name in quotes', 'woocommerce' ), strip_tags( get_the_title( $product_id ) ) . ( ! empty( $variation_attributes ) ? ' - ' . $variation_attributes : '' ) ) ; $count += $qty; } $titles = array_filter( $titles ); $added_text = sprintf( _n( '%s has been added to your cart.', '%s have been added to your cart.', $count, 'woocommerce' ), wc_format_list_of_items( $titles ) ); if ( 'yes' === get_option( 'woocommerce_cart_redirect_after_add' ) ) { $return_to = apply_filters( 'woocommerce_continue_shopping_redirect', wc_get_raw_referer() ? wp_validate_redirect( wc_get_raw_referer(), false ) : wc_get_page_permalink( 'shop' ) ); $message = sprintf( '<a href="%s" class="button wc-forward">%s</a> %s', esc_url( $return_to ), esc_html__( 'Continue shopping', 'woocommerce' ), esc_html( $added_text ) ); } else { $message = sprintf( '<a href="%s" class="button wc-forward">%s</a> %s', esc_url( wc_get_page_permalink( 'cart' ) ), esc_html__( 'View cart', 'woocommerce' ), esc_html( $added_text ) ); } return $message; }The original code was only meant to handle size variable. The new set is dynamic and shows all variables in the product when it’s added to the basket.
The export was strange. It only had two products in it…
What I have done to get around the issue is to create a CSV and then import that using WP All Import.
WooCommerce is an amazing plugin, I’m confident that whatever issues I had were isolated to me. I have a gift of breaking code!
Thanks for your help @lorro
Hi
Thanks for the speedy reponse. I hadn’t cleared the transients, but I have done both now. Still no joy.
There is something more mysterious going on. When I select a variation I notice that the image degrades substantially. In itself not the end of the world. But suggests a broader issue.
Forum: Plugins
In reply to: [WooCommerce] 2nd AttributeLooks like it’s working now.
Forum: Plugins
In reply to: [WooCommerce] Pricing won’t display on variable productsIt looks like you fixed this. Is that right? If so, what did you do?
I have been having trouble with pricing on variations. I have a product with 440 variations, and I think that the system doesn’t like that many. It took me a couple of runs to get it to work (using the automated create variation feature). I’m now having a problem getting 5 of the variants to have a different price.
Forum: Plugins
In reply to: [WooCommerce] Problem with disabling stock managementUpdate: The issue is that “regular price” hadn’t cascaded it’s way through to all the variations. It would be great if there was an option to inherit the weights and prices of the parent product before creating the variants. But happy to accept that might just suit me!
Great plugin.