Hi, I have ubercart set up to allow anonymous purchases, and create the account on order completion, with just the email of the user. I also dont have a cart/order help page set at admin/store/settings/store/edit
It seems the email that is sent after the purchase is made is not configurable via the admin interface, and is coded here: http://api.ubercart.org/api/file/ubercart/uc_order/templates/customer.it... ... (but maybe that is only for versions 1.x ... where is it for 2.x?)
Anyway, because the name is not set, and the help page is not set, the thanks for your order email does not make as much sense to the user. Please add some conditionals so that if there is no first name,
echo t('Thanks for your order, [order-first-name]!');
becomes just
echo t('Thanks for your order!');
and also that if there is no help page, the link to the help page is not created:
maybe changing
echo t('To learn more about managing your orders on [store-link], please visit our <a href="[store-help-url]">help page</a>.');
to
hmmm just skip that I guess.
Thanks! I know this is a really busy time for ubercart!
Comments
Comment #1
rszrama commentedThanks for the ideas here. I'm going to mark this one postponed b/c the simple solution for now is to copy/modify this into a custom template (like if you don't want the store help link, for example). However, I will look into the token thing, and changes like this will be excellent in the future. Hopefully we can reopen it when 3.x development starts.
Comment #2
yesct commentedthanks! :)
Comment #3
tr commentedComment #4
longwaveThis can easily be changed in a custom order template, and any changes we make to the defaults will never please everyone - that's why it's customizable in the first place.