Jump to content

[SOLVED] Question regarding getting PS_SHOP_XXX and customer name in bank wire module's payment-return.tpl


kelvinlym

Recommended Posts

Hi,

I'm modifying the bank wire's payment-return.tpl file to allow the showing of some shop configuration data such as address and shop's phone no. while also showing the customer/guest's first name and last name.

Regarding the shop configuration, I reckon using Configuration::get('PS_SHOP_PHONE') and so on could do the trick, but how to I get the customer's first name and last name to show?

Can it be read in the cookie? Or maybe better to read from the current order id then find the customer's name?

Please advise.

Example code will be much more appreciated.

Added smarty variable in bankwire.php for shop phone, used $customername variable

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...