Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / CSS buttons displaying code tag instead of link name?

CSS buttons displaying code tag instead of link name?

Locked

Views: 1,992

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Aug 2007, 10:56 AM
#1
stevenicel avatar

stevenicel

New Zenner

Join Date:
Oct 2006
Location:
Euroa, Victoria, Australia
Posts:
27
Plugin Contributions:
0

CSS buttons displaying code tag instead of link name?

Hi Everyone,

I have had a little ongoing mystery happening with two of my css buttons now for a while which has me stumped. On my log-on and log-off CSS buttons, the name of the button is displaying a php code tag. BUTTON_LOG_OFF_ALT is showing on the log-off button which is visible right after a customer completes an order.

In addition to this, when a customer finishes their order, they are presented with the confirmation page which lists the items that they just purchased, and on the end of the items is the php "array" word.

Does anybody have any ideas on these issues?

Warm Regards Steve

25 Aug 2007, 9:11 PM
#2
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: CSS buttons displaying code tag instead of link name?

Hi,

stevenicel:

On my log-on and log-off CSS buttons, the name of the button is displaying a php code tag. BUTTON_LOG_OFF_ALT is showing on the log-off button which is visible right after a customer completes an order.

The first thing to check is your includes/languages/english/YOUR_TEMPLATE/button_names.php file. It looks like it is missing some entries. It should have entries like:

define('BUTTON_LOG_OFF_ALT', 'Log Off');
```If you do not have a button_names.php file in your template directory then check the one in the includes/languages/english directory. It's possible that it did not get uploaded to the server properly.

> **stevenicel:**
>
> In addition to this, when a customer finishes their order, they are presented with the confirmation page which lists the items that they just purchased, and on the end of the items is the php "array" word.

Have you made any changes to the confirmation page template?

Regards,
Christian.
26 Aug 2007, 5:27 AM
#3
stevenicel avatar

stevenicel

New Zenner

Join Date:
Oct 2006
Location:
Euroa, Victoria, Australia
Posts:
27
Plugin Contributions:
0

Re: CSS buttons displaying code tag instead of link name?

Hi Christian and thank you for your time.

I just checked the button_names.php file in my template folder and sure enough, for some reason the two defines for BUTTON_CREATE_ACCOUNT_ALT and BUTTON_LOG_OFF_ALT were missing. It's really amazing how we think that we checked a possible avenue, but it's not until someone else points it out that we then see what we were missing. Anyway, all fixed.

Now I have just got to look into that "array" issue now. I have made changes to the confirmation page, so I will look into that now. Will post back when I check it out further.

Regards Steve

29 Aug 2007, 6:04 AM
#4
stevenicel avatar

stevenicel

New Zenner

Join Date:
Oct 2006
Location:
Euroa, Victoria, Australia
Posts:
27
Plugin Contributions:
0

Re: CSS buttons displaying code tag instead of link name?

Something tells me that the additional "Array" text may have something to do with the auspost_improved_1.5.1 module files. When I looked at the shipping details on the confirmation page, I noticed that there is two closing brackets
at the end of two shipping detail lines but only one opening bracket? Maybe there is a statement somewhere that is not closed properly?

If anybody has some ideas about where might be the best place to start looking, please fire away..... I have checked the confirmation and shipping pages and every peice of code looks to be in order. But that doesn't mean it's not.

It's very strange because I would have thought if there was a statement in the code that wasn't closed properly that I would see some php errors in the site somewhere!.....

Steve