Jump to content

Need to edit message re: payment methods


jvbh

Recommended Posts

Hi there — I'm using CC in perhaps a slightly unusual way; we don't accept payments through CC, rather we contact the customer after they order with instructions for paying via PayPal. Before upgrading to 6.1.9, when a customer placed an order, a confirmation page on the site would display, with a custom message saying that their order was received and they would be receiving payment instructions by email. That message no longer displays; it's replaced with a standard/stock "no payment method has been defined" message (which is how the site intentionally works, not a problem in itself). Where can I find the option to edit that message, and replace it with custom text? 

Link to comment
Share on other sites

In admin, Languages, click the Edit icon of the language(s) you wish to change.

From the drop-down selector, choose Gateway. Shortly, a list of phrases will appear.

Scroll to 'none_defined' and change to the desired phrase. Click the Save button.

Changes will be databased and therefore will survive an upgrade.

Link to comment
Share on other sites

Please recall which language you modified.

Then, in admin, Store Settings, Advanced tab, enable CubeCart's debug mode and enter your IP address in the adjacent field (www.whatismyip.com).

When you visit the storefront, at the bottom of the page, there will be a debug section of data. In Session, determine what language is being used.

Did you edit that language?

Edited by bsmither
Link to comment
Share on other sites

I edited "English (UK)" as that was the only language option (the store is based in the UK). However, when I enabled debugging and checked the storefront, it does list the language as "En-US". The new checkout message doesn't seem to be appearing for anyone, anywhere (we've checked with users in a number of countries, including the UK.) 

Is there a way to edit a language if it isn't listed? Or could something else be going on?

Thanks for all your help, very appreciated!

Link to comment
Share on other sites

Something else must be going on.

In admin, Manage Extensions, scroll to the Languages listing. This will show all language packs seen in CubeCart's /language/ folder. (Editing these files is not the preferred method of changing phrases.)

Compare the enabled status of each with what is shown in admin, Languages. These lists should be the same (with the addition of "Master Language File").

Link to comment
Share on other sites

  • 1 month later...

Using a programmer's text editor, find the skin template /skins/YOUR_SKIN/templates/main.php and at the very end of the file, add: {debug}.

Everyone can see this, so be sure to have this as part of the template for only as long as you need.

When you request a page, the browser will want to throw a popup to display. Let it. This is a list of all Smarty template variables.

When you get to the page where you expect to see the changed phrase, but see the original phrase, look at the $LANG array. Scan for the key 'none_defined'. (It may help tremendously if your browser has a Find function.) The key may exist in more than one main array element. It may exist in a module's array element in $LANG.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...