Page 1 of 1

esshop PAYPAL_PAY error

Posted: Thu Nov 13, 2008 12:24 am
by tosd
Hello all,

I have installed esshop into CSM Made Simple and on the final checkout screen I have "PAYPAL_PAY" echoed to the screen where I think I should have a summary of the customer order next to the PayPal button. The PayPal button works correctly.

As far as I can see "PAYPAL_PAY" appears to be a smarty tag that is being (unsuccessfully) called.

If anyone can help with this I would really appreciate it.

The screen display looks like this:

"Thank you for you order!
We will contact you as soon as possible."

PAYPAL_PAY [PayPal Button]

[SOLVED] esshop PAYPAL_PAY error

Posted: Thu Nov 13, 2008 12:49 am
by tosd
PAYPAL_PAY is actually a Smarty constant that calls a definition in the language file.

The problem was that the en_EN.php and en_US.php lang files did not have the definition. It can be added as follows:
  • open the appropriate file in the lang folder e.g. us_US.php
  • Scroll down to the bottom
  • Find the line $lang['ADMIN_EMAIL_FORMAT']= 'Notify email format';
  • Under that line add the two lines:

    $lang['PAYPAL_EMAIL']= 'If you prefer PayPal as a payment option, please make payment ({$order_total}) on the following email address:';
    $lang['PAYPAL_PAY']= 'To pay with PayPal now please click on the PayPal icon below: ';
Note that the PAYPAL_EMAIL line was also missing so I have added that as well.