Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Aug 2005
    Posts
    46
    Plugin Contributions
    0

    Default Variables in display

    I have installed the latest zen-cart and get some strange results. For instance, once I make a purchase, the shopping cart box appears as it should, but "1BOX_SHOPPING_CART_DIVIDERS" displays just before the item in the cart: 1BOX_SHOPPING_CART_DIVIDERSBilliards, then a horizontal line, then the price.

    Thanks in advance for the help
    Gordon

    Installation informantion:
    ZenCart 1.3.0.1 Full fileset
    Server Host: heat.securenet-server.net (72.9.235.10)
    Database Host: localhost (127.0.0.1)
    Server OS: Linux 2.4.21-37.0.1.ELsmp
    Database: MySQL 4.1.19-standard
    Server Date: 06/11/2006 16:08:15
    Database Date: 06/11/2006 16:08:15
    Server Up Time:
    PHP Version: 5.0.4 (Zend: 2.0.4-dev)
    HTTP Server: Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.27 OpenSSL/0.9.7a PHP-CGI/0.1b

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Variables in display

    What template are you using? You are missing some CONSTANT definitions

  3. #3
    Join Date
    Aug 2005
    Posts
    46
    Plugin Contributions
    0

    Default Re: Variables in display

    template_default

  4. #4
    Join Date
    Aug 2005
    Posts
    46
    Plugin Contributions
    0

    Default Re: Variables in display

    1BOX_SHOPPING_CART_DIVIDERS does not appear in a search with the Developers Tool Box.

    ALSO

    ENTRY_REQUIRED_SYMBOL appearsin the Contact Us form
    Last edited by gordon777; 12 Jun 2006 at 12:06 AM.

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Variables in display

    Because we do not use that. Have you changed something somewhere?

  6. #6
    Join Date
    Aug 2005
    Posts
    46
    Plugin Contributions
    0

    Default Re: Variables in display

    OK, I was in error. it's called Classic Template...

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Variables in display

    Your language files contain the definitions for those constants (which are the words ALL_IN_UPPERCASE). If the "active" language files for your given template do not contain those items, then your page will display the name of the constant instead of its definition.

    You have either incorrect files in your language folders for your selected template, or you are missing the files that are supposed to contain the definitions.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Aug 2005
    Posts
    46
    Plugin Contributions
    0

    Default Re: Variables in display

    I really appreciate you answer Dr. Byte. It is straight forward and makes a lot of sense. However, the problem persists...

    I have a "control" installation of ZenCart on my computer. By control I mean absolutely nothing has been changed, nor will anything ever be altered. I did a search of the installation for the constant 1BOX_SHOPPING_CART_DIVIDER and found it does not exist. If it's not in my control group, how can it possibly be in the production install? And how can I fix the problem?

    Thanks,

    Gordon

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Variables in display

    BOX_SHOPPING_CART_DIVIDERS is the constant name.
    The 1 is the quantity of products related to the items in your cart.

    Typically this would show up looking like the following, depending on your choice of divider.

    1 ea Billiards
    or
    1 x Billiards
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Aug 2005
    Posts
    46
    Plugin Contributions
    0

    Default Re: Variables in display

    I found it! here is where the BOX_SHOPPING_DIVIDER is

    /home/thebookb/public_html/shop/includes/templates/template_default/sideboxes/tpl_shopping_cart.php

    Line #25 : $content .= $products[$i]['quantity'] . BOX_SHOPPING_CART_DIVIDER . '</span><a href="' . zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']) . '">';

    The actual display is "1BOX_SHOPPING_CART_DIVIDERbilliards"

    This tells me it is looking into the database for the item(s) in the shopping cart. AND, it acutally finds the item Qty 1 Itme Billiards. So why is the CONSTANT still being displayed?

    The site is www.thebookbutton.com. I'll send the admin password under separate cover.

    Gordon

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Need User Tracking To Help Display Variables
    By bumba000 in forum General Questions
    Replies: 0
    Last Post: 5 Jan 2008, 08:39 PM
  2. Variables
    By manmont in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 May 2007, 03:15 AM

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