khessmess
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Property Listings] Column offset, groups of 7?Thank you SO much! This got me in the right direction to not only fix the problem but also streamline the mobile dimensions as well. Thanks again!
Yes, works like a charm, thank you so much!! (And thanks for helping explain it all as well, that helps a ton and is super nice of you to take the time)
And for guest users I added this after the “if” section:
else {
echo ‘Guest
‘;
}Thank you again!
By the way, I tried looking up and combining a few things to get it to work (I’m still super new to php) – so here’s what I tried to put in the invoice.php, but it appears to be returning my “administrator” user role rather than the order user’s role…
<?php
global $woocommerce;
$order = new WC_Order($order_id);
$user_info = get_userdata(1);
echo ‘User roles: ‘ . implode(‘, ‘, $user_info->roles) . “\n”;
?>Thanks again!
Thanks! That works. It would be awesome if it could only count business days (no weekends, holidays, etc).
I tried changing this:
strtotime( $order_date . ‘ + 5 days’)
to this:
strtotime( $order_date . ‘ 5 weekdays ‘)
But for some reasons it’s not working right (it works if I change it to 4, but for some reason it doesn’t work if I do 5 – instead of returning Friday it returns the Sunday, etc) – and it doesn’t help any for holidays, etc.
I can keep looking…
Works like a charm, thank you!!!!