Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jun 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Weight Attributes error

    Hi,

    i have a problem with delimiter in the attributes products dropdown.

    I have modified the product_info.php file like this:

    define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' Price : ');

    define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' - ');

    define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' Net weight: ');

    define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ' ');

    But when i show the product, i have the price delimiter twice and not the weight delimiter:

    Pric : 5 $ - Price : 5 kgs

    I have search in many files, but i have find nothing.

    Thank you for your help

  2. #12
    Join Date
    May 2007
    Location
    Brighton/Hove/Sussex
    Posts
    144
    Plugin Contributions
    0

    Default Re: Weird Attributes error

    Quote Originally Posted by mfashraf View Post
    found the answer.. check in the product_info.php and add in the following:

    define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');
    define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');
    define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' (');
    define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') ');

    *I put it after define('TEXT_PRODUCT_MODEL', 'Model: ');*

    Cheerz
    But I had this in my php file, saw it while searching my online files (Dev Tool Kit) and mine also came up in customer drop down box.
    Mine was related to not being in the custom folder/file, so its easy to miss files on an upgrade when there is a /custom/ folder.

    Thought id pass this on, as a jog to others.
    Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
    Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
    Appreciate Zen-Cart? - Always keep a banner link on your shop

  3. #13
    Join Date
    Nov 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Weird Attributes error

    where can i find this file? product_info.php ?

  4. #14
    Join Date
    Nov 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Weird Attributes error

    found it in /includes/languages/english/product_info.php
    but it has the attributes already defined any other ideas?

  5. #15
    Join Date
    May 2007
    Location
    Brighton/Hove/Sussex
    Posts
    144
    Plugin Contributions
    0

    Default Re: Weird Attributes error

    Quote Originally Posted by halinab View Post
    found it in /includes/languages/english/product_info.php
    but it has the attributes already defined any other ideas?
    Yes thats the default location,
    /includes/languages/english/product_info.php
    But if you have a custom directory it will read this one instead, so as many here suggest use Winmerge which highlights in colour what parts of a file is different and check that one against this one in a possible custrom folder.

    /includes/languages/custom/english/product_info.php

    Any tiny error in format of anything or a missing character can render the page useless.
    Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
    Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
    Appreciate Zen-Cart? - Always keep a banner link on your shop

  6. #16
    Join Date
    Jun 2008
    Posts
    23
    Plugin Contributions
    0

    Default Re: Weird Attributes error

    Can someone help me please help with a solution to this attributes error message. I get an error similar to what other people have described in this thread.

    I have a new install of zencart 1.3.9d and the only contributions I have added at this stage are direct bank and flocash plus the V4 Book Type module which are all working fine.

    Because I sell books in different conditions I want my customers to have the choice between an acceptable, good, very good or as new copy. So I need to set attributes to allow for this and deactivate the boolean used/new option and condition options already part of the bookshop contribution. Hence I am trying out the attributes controller but have struck a problem for which I can not readily see a solution for.

    I have read through this thread and have already checked my product_info file and put a copy of the file in my custom folder.


    I have set up the attributes as follows:

    Option - Condition with the values of acceptable, good, very good, as new, and new. But once I tried to apply to a product this is the result

    Price is $5.00 for acceptable and $7.50 for good and $9 for very good

    This is the error I get in the attributes dropdown on the product page:

    Very GoodATTRIBUTES_PRICE_DELIMITER_PREFIX+$4.00ATTRIBUTES_PRICE_DELIMITER_SUFFIX
    GoodATTRIBUTES_PRICE_DELIMITER_PREFIX+$2.50ATTRIBUTES_PRICE_DELIMITER_SUFFIX
    Acceptable


    I can still add a very good or a good product to the cart but how do I get rid of the error message and display the $4 and $2.50 price differentials properly?

    See this problem in action at http://pauabooks.co.nz/index.php?mai...roducts_id=175

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Attributes Issue---Weird
    By timhersh in forum Customization from the Admin
    Replies: 9
    Last Post: 4 Nov 2011, 02:12 PM
  2. Weird error
    By SonyaT in forum General Questions
    Replies: 2
    Last Post: 21 Oct 2008, 08:10 PM
  3. weird error
    By Merlinpa1969 in forum General Questions
    Replies: 3
    Last Post: 23 Oct 2007, 09:32 PM
  4. Weird Error
    By Pablosan in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 Feb 2007, 04:35 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