display email address on receipt & checkout

  • Posts: 44
  • Thank you received: 0
11 years 1 week ago #157782

-- url of the page with the problem -- : test.crossfitshorts.com
-- HikaShop version -- : HikaShop Essential: 2.3.0
-- Joomla version -- : Joomla! 3.3.0 Stable
-- PHP version -- : 5.4.27
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- : see belowe

Hello Everyone,

I'd like the display the email address used to place the order in the emailed order details and also on the checkout page. Can someone please direct me towards tutorials on these two topics?

Thanks,
Todd

Please Log in or Create an account to join the conversation.

  • Posts: 26251
  • Thank you received: 4039
  • MODERATOR
11 years 1 week ago #157984

Hi,

We do not have tutorial for this specific "topics".
In the email, you can access to the user object which contains the user email address.
In the checkout page, the best is to load the HikaShop user (using hikashop_loadUser function) and display his email address.

These two customizations requires some PHP skills.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 0
11 years 1 day ago #159140

I am comfortable 'editing' php when I know what I'm looking for and changing to. Can you please provide me with more 'specific' instruction?

Please reply path to file, what needs to be changed, and what I need to change it to.

Thanks a ton!
Todd

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #159875

Hi,

In the email edition page via the menu System > Emails (for non business in "media/com_hikashop/mail") edit the desired email and add code like:

<?php echo $customer->user_email; ?>

And in the view "checkout / ..." depending on where you want to display the email address, use this kind of code:
<?php
$user = hikashop_loadUser(true);
echo $user->user_email;
?>

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 0
10 years 11 months ago #161247

Xavier,

Thanks for your last reply. That is the <code> I'm looking for, but I don't know 'which' files to add it to. Can you please reply with a file/path or click/path to follow so I can locate the file(s)?

I tried finding the "email edition page" and "view checkout" pages in the media/com_hikashop/mail folder, but couldn't.



Can you please be a little more specific with the file names and paths to the files?

Thanks again for your help and sorry for the needed extra 'hand holding'.

Have a great weekend,
Todd

Attachments:
Last edit: 10 years 11 months ago by benrud.

Please Log in or Create an account to join the conversation.

  • Posts: 83932
  • Thank you received: 13588
  • MODERATOR
10 years 11 months ago #161257

Hard to say which email file to edit since we don't know which email you want to edit.
I would guess that you want to edit the order_creation_notification.html.php and the order_status_notification.html.php but you might as well want to edit the order_notification.html.php and the order_admin_notification.html.php

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 0
10 years 11 months ago #161314

Thank you nicolas. That is what I needed. Have a great week!

Please Log in or Create an account to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum