Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default REMOVING FORM FIELD: DOB & Currancies updated- Aust

    I think this is the section i need to alter:

    <?php if (ACCOUNT_DOB == 'true') echo ' check_input("dob", ' . ENTRY_DOB_MIN_LENGTH . ', "' . ENTRY_DATE_OF_BIRTH_ERROR . '");' . "\n"; ?>

    Can someone tell me what to change to illiminate this field and from there I will know how to get rid of some others.

    I found this coding in:includes/form_check.js.php


    2/ Also can anyone tell me where to get updated currancy values when default id Australia?

    3/
    And how do i change the ea to Mtrs in my store?
    Last edited by blind1; 13 Dec 2006 at 04:02 AM.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: REMOVING FORM FIELD: DOB & Currancies updated- Aust

    DOB can be set to either:

    1 required

    2 optional

    3 not asked


    The Currency can be updated on the Localization ... Currency ... by having 1 of the currencies set to the default and marked as a value of 1 ...

    Then hit the Update and it will connect to an exchange rate and update the other values ...


    The ea is a DEFINE statement in your language files ...

    Go to the Tools ... Developer's Tool Kit and do a search on:
    'ea

    in the Catalog using the bottom input box ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: REMOVING FORM FIELD: DOB & Currancies updated- Aust

    Ajey I am cringing asking you this but where do I type in the 1/2/3

    Also if i change to mtrs will this affect all the items in the cart because some are each not per metre?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: REMOVING FORM FIELD: DOB & Currancies updated- Aust

    Glad you asked that ...

    Start with:
    Configuration ... Customer Details ...
    Date of Birth
    Display date of birth field during account creation and with account information
    NOTE: Set Minimum Value Date of Birth to blank for not required
    Set Minimum Value Date of Birth > 0 to require
    If not required, be sure to edit the language file to remove the * indicating that it is a required field ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: REMOVING FORM FIELD: DOB & Currancies updated- Aust

    You are a gem - Thank you

  6. #6
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: REMOVING FORM FIELD: DOB & Currancies updated- Aust

    Re:Changing ea TO Mtr

    According to my Developers tool Kit this is the location:

    /admin/includes/languages/english/products_price_manager.php
    Line #116 : define('TEXT_EACH','ea.');

    I have added directly under it:
    define('TEXT_METRE','Per Mtr.');
    [FONT=&quot][/FONT]
    Is this right? or do I change like so:
    Line #116 : define('TEXT_EACH','per mtr');

    Is there any further step after that? Any other files that will read off this and so need altering?
    How do i asign it to a catogory as there is no options in the drop down menu in Catogory>Product Price manager (only a catogory I set up for now)
    Last edited by blind1; 14 Dec 2006 at 02:39 AM.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: REMOVING FORM FIELD: DOB & Currancies updated- Aust

    Actually it is the other file you want to change for the Catalog:
    /includes/languages/english.php

    Line #110 : define('BOX_SHOPPING_CART_DIVIDER', 'ea.-&nbsp;');
    Copy that file to, if you have not already:
    /includes/languages/your_template_dir/english.php

    And then edit this define to read what you want it to display ...

    Using the templates and overrides allow you to upgrade without your customizations being overwritten so that you can update the files as needed carefully ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: REMOVING FORM FIELD: DOB & Currancies updated- Aust

    I also added this line:
    define('TEXT_PRODUCTS_DISCOUNT_PRICE_METRE','Calculate Price:');

    Right after:
    define('TEXT_PRODUCTS_DISCOUNT_PRICE_EACH','Calculate Price:');

    As I thought it may be needed?

    I am gussing though. Never played with php before a couple weeks ago

  9. #9
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: REMOVING FORM FIELD: DOB & Currancies updated- Aust

    Oh dear - so i should change it all back then hey?

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: REMOVING FORM FIELD: DOB & Currancies updated- Aust

    Adding your defines are fine ... but if you did not code something to use them, they are pretty meaningless ...

    The define statements are used in the code to represent text that you want displayed, but if they are not utilized anywhere in the code then they are not used ...

    php is not self learning ... it only know what you tell it and what you tell it to do in the code ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 1 Jun 2011, 06:39 PM
  2. Removing Date of Birth Field from Register Form
    By sketchhgal in forum General Questions
    Replies: 3
    Last Post: 30 Mar 2009, 11:16 PM
  3. DOB as a required field?
    By zcnb in forum General Questions
    Replies: 9
    Last Post: 27 Nov 2008, 06:02 PM
  4. Remove the required field DOB?
    By Cheng in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Oct 2007, 06:40 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