Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Location
    Euroa, Victoria, Australia
    Posts
    27
    Plugin Contributions
    0

    help question 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
    Zencart Web Hosting on lightning fast Australian Servers!
    Free Zencart installation with all new hosting accounts.



  2. #2
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

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

    Hi,

    Quote Originally Posted by stevenicel View Post
    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:
    PHP Code:
    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.

    Quote Originally Posted by stevenicel View Post
    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.

  3. #3
    Join Date
    Oct 2006
    Location
    Euroa, Victoria, Australia
    Posts
    27
    Plugin Contributions
    0

    Default 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
    Zencart Web Hosting on lightning fast Australian Servers!
    Free Zencart installation with all new hosting accounts.



  4. #4
    Join Date
    Oct 2006
    Location
    Euroa, Victoria, Australia
    Posts
    27
    Plugin Contributions
    0

    Default 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
    Zencart Web Hosting on lightning fast Australian Servers!
    Free Zencart installation with all new hosting accounts.



 

 

Similar Threads

  1. Using CSS buttons instead of images
    By bigstore in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Feb 2012, 02:38 AM
  2. How to fix Backend code displaying in cart instead of text?
    By antonia in forum General Questions
    Replies: 1
    Last Post: 22 May 2011, 04:04 PM
  3. Using the zone name instead of code
    By sivivatu in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Feb 2010, 03:55 PM
  4. css buttons not displaying
    By yitzchak23 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Jul 2008, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg