Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2007
    Location
    Asheville, NC
    Posts
    52
    Plugin Contributions
    0

    Default Can't seem to find the error... help please?

    I'm having a hard time finding the error in the code.... Can you please help?

    http://www.yooperswag.com/index.php?...products_id=64

    This only seems to be happening on products with the price by attribute on...

    I've used the Developers Toolkit to find all of the places where this is. I've replaced all of the attribute files with the originals or the backups. I've even deleted the attributes and re-created... just in case!

    Any suggestions?

    Thanks!

  2. #2
    Join Date
    Oct 2007
    Location
    Asheville, NC
    Posts
    52
    Plugin Contributions
    0

    Default Can't seem to find the error... help please?

    I'm having a hard time finding the error in the code.... Can you please help?

    http://www.yooperswag.com/index.php?...products_id=64

    This only seems to be happening on products with the price by attribute on...

    I've used the Developers Toolkit to find all of the places where this is. I've replaced all of the attribute files with the originals or the backups. I've even deleted the attributes and re-created... just in case!

    Any suggestions?

    Thanks!

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Can't seem to find the error... help please?

    Probably:-

    /includes/languages/english/product_info.php

    Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');
    20 years a Zencart User

  4. #4
    Join Date
    Oct 2007
    Location
    Asheville, NC
    Posts
    52
    Plugin Contributions
    0

    Default Re: Can't seem to find the error... help please?

    What's missing/wrong...?

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Can't seem to find the error... help please?

    Please only post once.

    Anytime you SEE_TEXT_IN_ALL_CAPS like this, you've incorrectly removed the text that was defining the constant. Use the tool kit to find the file connected with ATTRIBUTES_PRICE_DELIMITER_PREFIX. Make sure both apostrophes (') are there.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Can't seem to find the error... help please?

    Let's unpick this for you:

    The following is a PHP DEFINE STATEMENT:

    define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

    It comprises a CONSTANT and a VARIABLE

    BOTH the CONSTANT and the VARIABLE are encased in SINGLE QOTES

    You never remove the CONSTANT, and you never remove the SINGLE QUOTES... but you can EDIT the VARIABLE - or REMOVE it completely

    If I were to remove the variable completely in the above define, the result would look like this:

    define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', '');
    20 years a Zencart User

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Can't seem to find the error... help please?

    Try re-uploading fresh copies of these files
    /includes/languages/english/product_info.php
    /includes/modules/attributes.php
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Can't seem to find the error... help please?

    If you see the CONSTANT showing in your webshop, it is USUALLY because of a bad edit... and MOST of these are when people remove the second set of single quotes:

    define('ATTRIBUTES_PRICE_DELIMITER_PREFIX',);

    The PHP no longer knows what to do, because in PHP speak, an "empty" set of single quotes says "return nothing... null".

    As there are not even single quotes anymore for the variable, the PHP says... "What the hell... I'll just return the CONSTANT instead..."
    20 years a Zencart User

  9. #9
    Join Date
    Oct 2007
    Location
    Asheville, NC
    Posts
    52
    Plugin Contributions
    0

    Default Re: Can't seem to find the error... help please?

    It was in the

    /includes/languages/english/product_info.php

    file.

    when i replaced that one with an original, newly downloaded, it worked!

    Thanks for your help!!!

    ~a

 

 

Similar Threads

  1. Can't seem to find the proper division to change in css
    By andycowboy in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 22 Dec 2011, 05:01 PM
  2. Replies: 3
    Last Post: 24 Nov 2010, 04:40 PM
  3. Can anyone help find the mistake? Please!
    By doooomed in forum General Questions
    Replies: 2
    Last Post: 24 Jun 2009, 04:21 PM
  4. Free item if... I can't seem to find the solution
    By A-1 Electronics in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 26 Apr 2007, 05:13 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