PossiblyMaybe
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Uniting plugins to one userThanks for the quick and thoughtful reply! The site is intended to become a directory of sorts, and the key function I wanted from the locator was a filter for people to find the stores nearest to them.
The customer might look at what is near to them and browse what they sell.
or
Have a product they want and find the nearest store that sells it.My issue is integrating that functionality in to existing stores.
Thanks again!
Hi, thanks for the reply.
I actually got a solution from support on the woo website. It seems this plugin does send the line items of an order to Paypal which is shown as Description in the Paypal notification emails. However some of mine were appearing blank because I had checked the setting to hide these descriptions if there were discrepancies without realising it would happen quite so frequently.
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Remove the “-” from refundsHi, I have the order values showing in line_no_tax and line_tax and order_total columns.
I’ll try to get a screen shot later, but basically refunds in those columns show for example as -10.00, -2.00, -12.00. If they showed as positive values (i.e. 10.00, 2.00, 12.00) is what I’m hoping to achieve.
Hi @themehigh
I posted the above (working from home today). I managed to solve the issue by removing the State/Country field from being Required. Not sure why having it required caused the above issue, but hopefully having it as optional wont cause different issues!
Our website is https://www.essentiallyhops.co.uk/
Forum: Plugins
In reply to: [WooCommerce] Woocommerce dimensions – display suffixHi, thanks for this, I finally got a chance to try it on my staging site. Unfortunately it didn’t work. When I clicked to go in to a variable product the page displayed strangely and said there was a critical error. Inspecting the page in Chrome the message is coming from wp-die-message. I cant see any other information to give you. This is proving harder expected! Thanks for taking the time to help.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce dimensions – display suffixAlas! Although this code looked perfect I have just been through all my plugins and then all my code snippets to find out what was causing my variable products to stop working, and it seems to be this. Now I have turned it off my variable products are working again.
With this snippet activated, when in a variable product I get all my product variation in the dropdown but if I try to add one to cart it says “Please select some product options before adding this product to your basket.” Also the image doesnt change according to the attribute selected.
Doing Inspect Element in Chrome showed this error: https://ibb.co/C14BmJ8
Is there a way to tweak this code?
Thank you!
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Displaying on Product Admin PageThanks for your time Freddie!
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Displaying on Product Admin PageHi Freddie, yes I’m using the Pro plugin. At the moment it is set up like this:
I can find the field in the Custom Field > Fields dropdown.
However it doesnt automatically find fields for individual tabs, and I cant identify anything else to use there.
Thanks for your help!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce dimensions – display suffixThanks again, this is just what I needed!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce dimensions – display suffixI’ve found the following snippets, but both are not quite right.
This one is fine, but I want it display the full word ‘length’ ‘width’ ‘height’ and not just the initial
add_filter( 'woocommerce_format_dimensions', 'custom_formated_product_dimentions', 10, 2 ); function custom_formated_product_dimentions( $dimension_string, $dimensions ){ if ( empty( $dimension_string ) ) return __( 'N/A', 'woocommerce' ); $dimensions = array_filter( array_map( 'wc_format_localized_decimal', $dimensions ) ); $label_with_dimensions = []; // Initialising // Loop Though dimensions array foreach( $dimensions as $key => $dimention ) $label_with_dimensions[$key] = strtoupper( substr($key, 0, 1) ) . ' ' . $dimention; return implode( ' x ', $label_with_dimensions) . ' ' . get_option( 'woocommerce_dimension_unit' ); }
This one is displaying the full word, but it is displaying dimensions that have no value and should be hidden. I also like that the above code puts a X between each dimension.
add_filter( 'woocommerce_format_dimensions', 'woocommerce_format_dimensions', 10, 2 ); function woocommerce_format_dimensions( $dimension_string, $dimensions ) { if ( !empty( $dimension_string ) ) { $dimension_string = ''; $dimension_unit = ' ' . get_option( 'woocommerce_dimension_unit' ); foreach ( $dimensions as $dimension => $value ) { $dimension_string .= ucwords( $dimension ) . ": " . $value . $dimension_unit . " "; } } else { $dimension_string = __( 'N/A', 'woocommerce' ); } return $dimension_string; }
I’ve been trying to get the best of both but cant quite get it working.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce dimensions – display suffixHi, I just noticed this works perfect on products that only have the one ‘length’ dimension, which is most of our products. But we do have a small number of products which will include the other dimensions, how can I have it also show the other dimensions if they are also entered, but ignore the sides that are not entered (i.e. it will ignore the dimension if no value is entered on the product but display the other one or two).
I tried to extend your code, as below, but it will only show one of the dimensions.
add_filter('woocommerce_format_dimensions', 'my_custom_dimensions', 10, 2); function my_custom_dimensions( $dim_string, $dimensions ) { $dim_string = 'Length: ' . $dimensions['length'] . ' ' . get_option( 'woocommerce_dimension_unit' ); $dim_string = 'Width: ' . $dimensions['width'] . ' ' . get_option( 'woocommerce_dimension_unit' ); $dim_string = 'Height: ' . $dimensions['height'] . ' ' . get_option( 'woocommerce_dimension_unit' ); return $dim_string; }
- This reply was modified 4 years, 6 months ago by PossiblyMaybe.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce dimensions – display suffixThat’s perfect! Thanks so much
Thanks, that works great!
That’s got it, thank you!
Forum: Plugins
In reply to: [WooCommerce] My Account – Order updatesAh nevermind, sorry. Found it is coming from the Order Notes on the Order Edit admin screen.