mowlman
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Admin] How To Disable in ver 5.6.0?The Actual plugin I was referring to was where we could not just put the following code within our functions.php code, but to put it within our plugin:
<?php /** * Plugin Name: Disable WooCommerce Admin * Description: This plugin disables the new WooCommerce Admin package in WooCommerce. * Version: 1.0 */ add_filter( 'woocommerce_admin_disabled', '__return_true' );
The following plugin: Disable WooCommerce Bloat
https://www.ads-software.com/plugins/disable-dashboard-for-woocommerce/
does seem to work, and works with ver 5.6.0. of woocommerce.I think you are going to have to contact the s2member plugin support to see how they recommend pulling in the role? They must be saving it within their own method metadata and not the standard user. Maybe look within wp_usermeta table for s2member maybe it will help?
Not sure why yours is displaying the role id, mine displays the actual role name such as customer or contractor1.
For only displaying for a specific role, you should be able to modify your code to check for that specific code, then only echo it when it matches:
$cust_role = implode(', ', $user_info->roles); if( $cust_role == 'whateveryourspecificroleis' ){ echo 'Shopper Role : ' .ucwords($cust_role)."\n"; }
Hello bigsavagepapa, I may have misunderstood your original question, sorry, and was thinking you wanted to display the Order Date with the time; however, now I am thinking you want the order “Completion” Date with time?
I do not have a ready answer, but it looks like you need to pull in and display _completed_date from the wp_postmeta for the given order id? The value for _completed_date on one of my completed orders looks like: 2019-10-28 09:23:56
Might be able to change the above code to include $order->completed_date; instead of $order->order_date; ??
You also might be able to use something like: $order->get_date_completed();
Perhaps plugin support can shed more light for a solution
Yes, you can override Print-content.php and modify the date format there, or what I did is add the following to my Child functions.php file:
add_filter ( 'wcdn_order_info_fields', 'update_wcdn_order_date_value', 10 , 2 ) ; function update_wcdn_order_date_value ( $values, $order ) { $wdn_order_id = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_id() : $order->id; $order_post = get_post( $wdn_order_id ); $wdn_order_order_date = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order_post->post_date : $order->order_date; $values['order_date'] = array( 'label' => __( 'Order Date', 'woocommerce-delivery-notes' ), 'value' => date_i18n( __( 'l m/d/Y, h:ia', 'woocommerce' ), strtotime( $wdn_order_order_date ) ) ); return $values; }
Results looks like:
Order Date Thursday 09/05/2019, 03:56pmThere might be a better way of doing it, I am always open for making improvements.
Forum: Plugins
In reply to: [WooCommerce] automatically generate an account username Changed to nameHi Joey,
Will this snippet override and force the username which is created during checkout to be the email? Or is this just allowing the user to log in with their email instead of username?
I am looking to force the username to be the email as the account is created like it was done back in previous versions of woocommerce. I found function wc_create_new_customer, maybe I need to override this somehow?Storfront Support explained that after 2.4.3, the options are dependent on the page template being used. For example, if it is a post, and there’s a widgets in the sidebar, then blocks cannot go wide. If there’s no widgets in the sidebar then it should work. Also, if it is a page, and it is full width (no sidebar, or using the Full Width template), then the options should also available.
I first Changed my one and only page the was being displayed within the sidebar to Full Width;however, that did not allow the WideWidth and FullWidth options to display.I then removed all the widgets from the sidebar on my website with Storefront 2.4.6 activated and now I can see those options.
I’m having Storefront theme support look into the issue. I did find this within the changlog: * Feature – Replicate Storefront’s layout logic in the block editor. Wide and Full-width options are made available only if supported.
Ah. using storefront. (dev site)storefront 2.4.2 it is present, where (live site) storefront 2.4.5 it is not. Your plugin makes way more sense than the gutenburg crap, now I have to figure out what storefront did with the wide width button.
thanks for your help.
Thank you very much for your support.
On Desktop everything is good, when I change to mobile I have those 6 images breaking 2 by 2
in a 2-column grid and I’m trying to reduce the spacing between those 2 by 2 imagesSo for desktop I have Column Gutter set to wider 60px and on the mobile setting I was trying to reduce the column setting to 10px or something.
When I am using Chrome Developer tools and view the site(https://www.devclosetbay.com/) for mobile , such as 480. You will see the 1st set of 6 images 2 by 2 which is being displayed using the gutenberg columns, and when you keep scholling down you will see the second set of 6 images where I am using Kadence and you will see there is a bigger space between them. I’m trying to duplicate the spacing like the 1st set has. Here is a screen capture: https://snag.gy/baSi2s.jpg
Ok, thanks! Column Gutter I see on Desktop option , where I see it labeled Column Collapse Vertical Gutter when I select mobile. It seems like the column gutter when on Desktop does seem to widen the spacing.
I’ve been trying to identify so I could add to my custom css
I found this:
.kt-mobile-layout-two-grid.kt-gutter-wider > .wp-block-kadence-column {
-ms-flex: 0 0 calc( 50% – 30px);
flex: 0 0 calc( 50% – 30px);
}But still cannot seem to reduce the space and therefore allow the images to be a little bit bigger. My media screen I am dealing with is 480.
Verified this is fixed for version 1.14.0.1. Thank you.
My Dev Site is at https://www.devclosetbay.com/
I’m using storefront theme.
The 1st row of images are using gutenberg columns which I am trying to replace with yours.
The 2nd row is using 6-col wide width for desktop and for mobile I changed it to 2 col and changed the gutter to no gutter. I’d actually prefer a small gap. On mobile I like how the gutenberg columns are, less space between images and therefore the images are a little bit bigger. I would like to dump the gutenberg columns since I prefer yours, I just need to figure out the spacing.Sorry noobe question, I just found the controls to specify mobile and changed the columns from 6 to 2. I also changed the gutter to zero, but it doesn’t seem to change. I have the 6-columns set to wide, so maybe that is overriding the gutter?