Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › Photo Seller – How to remove text from customer thank you email
- This topic has 10 replies, 2 voices, and was last updated 8 years, 2 months ago by Peter.
-
AuthorPosts
-
July 18, 2016 at 3:19 pm #13604Lofty VisionsMember
Hi, I wish to remove the word “receipt:” that shows up just before the link in the customer thank you email so that only the link is shown on that line
You can view/save your receipt here:
receipt: [http://loftyvisions.com.au/index.php/store/receipt/?ouid=094e7a9dfea93eac9ebbffe2783f1497]
Is that possible? I’ve been trying to figure this out for ages!
Thanks
July 18, 2016 at 11:08 pm #73706PeterMemberYou should be able to change the wording for the above by going to Settings >> Email Settings.
Then look in the “Buyer Email Body” and you can change the wording to whatever you like.
July 19, 2016 at 9:56 am #73707Lofty VisionsMemberHi, thanks. I’ve already done that. This is the text in buyer email body
You can view/save your receipt here:
{product_receipt_digital_items_only}
However, when the email comes for some reason the “receipt:” text appears before the link even though it’s not typed into the buyer email body. It’s as if it’s in the code for {product_receipt_digital_items_only}
I hope this makes sense
July 19, 2016 at 12:45 pm #73708PeterMemberOk I see what you mean now. I will take a closer look at the code and see if we can make the output a bit more flexible.
July 23, 2016 at 12:44 pm #73709Lofty VisionsMemberCool, thank you
August 13, 2016 at 8:43 am #73710Lofty VisionsMemberHi, just wondering if there has been any progress on this? Thanks
August 14, 2016 at 12:12 am #73711PeterMemberI added a wordpress filter hook so you can change the wording.
Eg, use the code below and place it in your theme’s functions.php
(In my example I replaced “Receipt” with “View your purchase details here” but you can use whatever text you want)
add_filter('photo_receipt_details_email','change_photo_seller_email_receipt_wording',10,2);
function change_photo_seller_email_receipt_wording($product_receipt_digital_items_only, $product_receipt_digital_items_url)
{
$product_receipt_digital_items_only = "nView your purchase details here: ".$product_receipt_digital_items_url."n";
return $product_receipt_digital_items_only;
}September 15, 2016 at 12:14 pm #73712Lofty VisionsMemberHi and thank you. I tried the above but it didn’t work. The issue remains I’m afraid. Please excuse my ignorance, but I’m assuming that after pasting the code into my theme’s functions.php, it should replace the word “receipt” with the text in here: “nView your purchase details here: “? There isn’t anything else i needed to do is there? Just wondering if I’ve missed something. Thanks
September 16, 2016 at 12:26 am #73713PeterMemberIt definitely works because I just re-tested it again to confirm.
You must have the wrong plugin version. I will send you the zip file again and remember to deactivate and delete your current version and then install and activate the new version.
September 16, 2016 at 2:57 pm #73714Lofty VisionsMemberOk thank you. I will try that. Will I lose any settings or galleries when I update?
September 17, 2016 at 2:01 am #73715PeterMemberNo you won’t lose settings or photos.
-
AuthorPosts
- You must be logged in to reply to this topic.