petebm
Forum Replies Created
-
Nope – still no joy, I’m afraid.
I probably should be posting this in the WooCommerce forum . . .
Thanks – & if you think of anything else, feel free to say!
Pete
Yup – it’s set to ‘visible’
The product link is https://test.therileyrmcentre.co.uk/shop/bearings/6205-rma-early-torque-tube-trunnion-bearing-h12-61/
However, when I did as you suggested & deactivated your plugin and went to the categories page – there were only 9, as your plugin had showed. Yet looking at the Categories page in WooCommerce/Products, as my screenshot above, I’m seeing 30, as in the export.
I realise this means this is presumably not your problem, but I’d appreciate any thoughts you might have on how there can be this discrepancy!
Thanks again
Hi there
Many thanks for your reply. My problem is that there aren’t only 9 products – there are 30, as in this screenshot, or an exported spreadsheet (https://imgur.com/O4sSN2d). If you use the SKU search for the example I gave of a missing one, 6205, you can see that the category is shown as Bearings – yet it doesn’t show up in the category search.
Thanks
PeteForum: Plugins
In reply to: [WooCommerce] Add billing details to existing Woocommerce usersOK – thank you for that.
Part of the problem that I’m trying to get around is that WooCommerce doesn’t seem to recognise the Billing details shown for a WP user. Looking at that user’s details, First name and Last name are already shown (from when the user registered), and I can manually add address details and save them . . . BUT when I look at the order that’s been placed, there are no details shown under ‘Billing’. Is there a setting somewhere that’s stopping the user’s Billing details being transferred to orders?
There’s not going to be any point importing user details if they don’t then show up on orders!
OK – scrap the above. I had set the billing details to not be shown on the checkout page as they weren’t necessary, and didn’t realise that also meant they wouldn’t get passed to the order – I assumed they’d just be filled in in the background.
Thanks again for your help
- This reply was modified 5 years, 3 months ago by petebm. Reason: Sorry - replied before I'd tried all solutions at my end!
Forum: Plugins
In reply to: [WooCommerce] Add billing details to existing Woocommerce usersHi
Many thanks for your response, & apologies for not making myself clear. I’d like to update the customer information for existing users, (but not existing orders); when I look at wp-admin > Users I can see that the First name and Last name are filled in under the heading Customer billing address, but not the address details. This is not surprising, as we don’t ask for them when customers (Club members whose address details we already have) register on the site. However, I would now like to retrospectively fill those address fields in.
I hope that clarifies things.
- This reply was modified 5 years, 3 months ago by petebm.
Forum: Plugins
In reply to: [WooCommerce] Add billing details to existing Woocommerce usersUpdate – the Billing First name & Last name fields are in fact already populated in the user’s profile, but they don’t seem to get transferred automatically to the order details, which is where we need them . . .
Forum: Plugins
In reply to: [Easy Username Updater] Option not under Users for new roleOK – many thanks for your reply.
I’ve decided to use a different plugin (Controlled Admin Access) to restrict admin access to just the User menu group for that particluar role; she can now see & use your plugin.
Thanks again for very useful tool
Many thanks for your response. In the meantime I’ve set up a workaround; users are auto-approved, so they are taken straight to their profile page, where they can check the details they’ve given. Their UM-generated welcome email, though, has been edited to tell them to wait while their application is approved (details checked by us, subscription payment taken etc); it’s only once that’s happened that their role is changed from the default Subscriber to our Club_member, which triggers an email (via Better Notifications plugin) welcoming them to the Club.
This seems to work; the login page & menu link are only viewable by Club_member users. When I’ve time, however, I’ll explore your suggestion – thanks again for it.
Regards
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Email attachment errorThank you as always. I did wonder if the code button did that, but not being able to preview the post before submitting, I didn’t want to risk it!
I added the code you kindly suggested, and it worked in that the filename then had the user_login appended . . . but the filename now consisted of user_login–user_login – ie the name of the attachment (which was ‘Order acknowledgement’, translated from ‘Invoice’) has been swapped for user_login.
So, in a spirit of adventure, I’ve now taken the liberty of editing your code at various points:
add_filter( 'wpo_wcpdf_filename', 'wpo_wcpdf_custom_filename', 10, 4 ); function wpo_wcpdf_custom_filename( $filename, $template_type, $order_ids, $context ) { $count = count($order_ids); switch ($template_type) { case 'invoice': $name = _n( 'invoice', 'invoices', $count, 'woocommerce-pdf-invoices-packing-slips' ); break; case 'packing-slip': $name = _n( 'packing-slip', 'packing-slips', $count, 'woocommerce-pdf-invoices-packing-slips' ); break; case 'proforma': $name = _n( 'proforma-invoice', 'proforma-invoices', $count, 'wpo_wcpdf_pro' ); break; case 'credit-note': $name = _n( 'credit-note', 'credit-notes', $count, 'wpo_wcpdf_pro' ); break; default: $name = $template_type; break; } /* if ( $count == 1 ) { $document = wcpdf_get_document( $template_type, $order_ids ); if ( $number = $document->get_number() ) { $suffix = $number; } elseif (isset($document->order) && method_exists($document->order, 'get_order_number')) { $number = $document->order->get_order_number(); } else { $number = $order_ids[0]; } $suffix = $number; } else */ { $suffix = date('d-m-Y'); // 25-07-2019 } if ( $count == 1 ) { $order = wc_get_order($order_ids[0]); if ( $user = $order->get_user() ) { $name = $user->user_login; } else { $name = $order->get_formatted_billing_full_name(); } /* $suffix = "{$suffix}-{$name}"; */ } $filename = 'Order acknowledegment for ' . $name . '-' . $suffix .'.pdf'; return $filename; }
The suffix is now the date (formatted for the UK), and I’ve put in ‘Order acknowledgement for’ as plain text.
I apologise if I’ve committed any crimes against coding, but it does seem to work, and I thought I ought to have a go at doing it myself rather than always relying on you!
Now to look into removing those annoying dashes in the text . . .
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Email attachment errorThanks very much for your reply. Yes, I’m afraid our filenames are all the same; I removed the order number from them as it was causing confusion for our customers, who are given a completely different invoice number by our stock control / accounting system; the document they get at this point is purely an order acknowldgement (https://www.ads-software.com/support/topic/change-name-of-document/).
Presumably the safest course of action (even if I’m not using a mail plugin any longer and this has only happened once in 2 years) is to follow your suggestion and add the customer name, which I can do by editing the snippet I’m using currently in some way (apologies for not knowing how to get it to come up in a nice box):
add_filter( ‘wpo_wcpdf_filename’, ‘wpo_wcpdf_custom_filename’, 10, 4 );
function wpo_wcpdf_custom_filename( $filename, $template_type, $order_ids, $context ) {
$count = count($order_ids);switch ($template_type) {
case ‘invoice’:
$name = _n( ‘invoice’, ‘invoices’, $count, ‘woocommerce-pdf-invoices-packing-slips’ );
break;
case ‘packing-slip’:
$name = _n( ‘packing-slip’, ‘packing-slips’, $count, ‘woocommerce-pdf-invoices-packing-slips’ );
break;
case ‘proforma’:
$name = _n( ‘proforma-invoice’, ‘proforma-invoices’, $count, ‘wpo_wcpdf_pro’ );
break;
case ‘credit-note’:
$name = _n( ‘credit-note’, ‘credit-notes’, $count, ‘wpo_wcpdf_pro’ );
break;
default:
$name = $template_type;
break;
/* }if ( $count == 1 ) {
$document = wcpdf_get_document( $template_type, $order_ids );
if ( $number = $document->get_number() ) {
$suffix = $number;
} elseif (isset($document->order) && method_exists($document->order, ‘get_order_number’)) {
$number = $document->order->get_order_number();
} else {
$number = $order_ids[0];
}
$suffix = $number;
} else {
*/ $suffix = date(‘Y-m-d’); // 2020-11-11
}$filename = $name . ‘-‘ . $suffix . ‘.pdf’;
return $filename;
}The customer name for us is user_login, which you’ve already explained how to get on invoices (https://www.ads-software.com/support/topic/showing-user_id-on-invoice-packing-list/).
All the best
PeteSorry to keep up a running commentary on this, but I prefer to carry on trying to find a solution to problems . . .
Since the Ultimate Member ‘Member’ role isn’t available in WP, I used the User Role Editor plugin to create a new role, which was then available both in WP and in UM, so I can restrict the new profile to that role.
I’d still like to be able to add the UM profile shortcode to ‘normal’ pages, though . . .
Hi again
I would still like to know if you can display a user’s profile on any ‘normal’ page, but your mention of different roles has made me think of a way around my problem.
We have ‘Requires admin approval’ set, so that anyone filling in an application form can then be directed to a subscriber (default role) profile form asking them to check the details they’ve submitted and make the correct payment. Once paid up and approved, when they login in the future for, say, renewal, they can get a different profile as members; assuming I make the introductory text I’d want on each ‘page’ part of the profile form, it would look as though they were in fact accessing a different page.
You’re probably sitting there thinking ‘Well, of course – that’s what you’re supposed to do anyway’ . . .
Edit: except I’ve just discovered that the roles available for limiting access to forms are the default WP ones – restricting to Member is not possible!
Many thanks for your response – your time is appreciated.
I use /user/?profiletab=main&um_action=view as that seems the best way to achieve what I want, which is to merely display the user’s information. We keep membership records for our Club in a separate system, updated by our membership secretary; the profile page is for the member’s information only & we don’t want him/her to be able to edit it; we also don’t want the rest of the page (profile picture, other tabs, etc) that accompany the default profile page. This screenshot shows the sort of thing we want.
We boringly only have one user role (subscriber) and the profile forms aren’t restricted by role.All I would like to do is to be able to show a profile form, like the one in the screenshot, on a new page – eg a separate renewals page – just by adding the shortcode for it.
I hope that clarifies things, & that I’m not asking a stupid question
All the best
Pete- This reply was modified 5 years, 9 months ago by petebm.
In case it’s of any help, here’s the code for the page in question; profile form 2323 is the new one I’d like to show, form 665 is the one that displays quite happily on the /user/?profiletab=main&um_action=view page; neither of them show up on the new ‘normal’ page.
Thanks
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] Add to cart – AJAX – RefreshI too would like it if the page didn’t refresh; I’ve got buttons part-way through a form, and when the page refreshes it loses any user input up to that point.
Thanks