Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: City value of States

    @gunni, for the checkout_payment_address and checkout_shipping_address pages' update you'll need to start with a template-override version of /includes/modules/checkout_new_address.php and apply the same changes as you did with the template-override of /includes/modules/create_account.php.

    That will provide the "city" recording for both pages and you'll need also to update your template-override version of tpl_checkout_payment_address_default.php and tpl_checkout_shipping_address_default.php like you did to tpl_modules_create_account.php.

    Then, for the address_book_process page you'll edit the core-file /includes/modules/pages/address_book_process/header_php.php like you did for /includes/modules/create_account.php and update your template-override version of tpl_address_book_process_default.php to make the template change.

    I think that should "do it"!

  2. #12
    Join Date
    Aug 2010
    Location
    Israel
    Posts
    285
    Plugin Contributions
    0

    Default Re: City value of States

    @lat9 Big thanks again but not all clear....

    Quote Originally Posted by lat9 View Post
    @gunni, for the checkout_payment_address and checkout_shipping_address pages' update you'll need to start with a template-override version of /includes/modules/checkout_new_address.php and apply the same changes as you did with the template-override of /includes/modules/create_account.php.

    That will provide the "city" recording for both pages
    This is clear (after 6 times or reading...:).

    Quote Originally Posted by lat9 View Post
    and you'll need also to update your template-override version of tpl_checkout_payment_address_default.php and tpl_checkout_shipping_address_default.php like you did to tpl_modules_create_account.php.
    I opened thoese two files and they do not have "city" nor "state" like I changed the tpl_modules_create_account.php file
    so what do I need to change in these files ? Not clear.


    Quote Originally Posted by lat9 View Post
    Then, for the address_book_process page you'll edit the core-file /includes/modules/pages/address_book_process/header_php.php like you did for /includes/modules/create_account.php
    Did it :)

    Quote Originally Posted by lat9 View Post
    and update your template-override version of tpl_address_book_process_default.php to make the template change.
    What to update ? Opened this file and do not understand what to update...where ? Or should I put this file in my template dir ?

    Thanks again...

  3. #13
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: City value of States

    Quote Originally Posted by gunni View Post
    I opened thoese two files and they do not have "city" nor "state" like I changed the tpl_modules_create_account.php file
    so what do I need to change in these files ? Not clear.
    My bad; those two files (tpl_checkout_payment_address_default.php and tpl_checkout_shipping_address_default.php) both include /tpl_modules_checkout_new_address.php; it's that common file that you might need to update to change the "State" to "City" ... although, I'm thinking now that those values are in your primary language file (hebrew.php?).

    Quote Originally Posted by gunni View Post
    What to update ? Opened this file and do not understand what to update...where ? Or should I put this file in my template dir ?

    Thanks again...
    Dang it! That one, too. The form is displayed via tpl_modules_address_book_details.php

    For both the tpl_modules_address_book_details.php and tpl_modules_checkout_new_address.php, you'll need to copy the files from the /includes/templates/template_default/templates directory to /includes/templates/responsive_sheffield_blue/templates ... unless the file is already in that directory.

    In either case, you'll apply any edits like you previously made to tpl_modules_create_account.php.

  4. #14
    Join Date
    Aug 2010
    Location
    Israel
    Posts
    285
    Plugin Contributions
    0

    Default Re: City value of States

    Quote Originally Posted by lat9 View Post
    My bad; those two files (tpl_checkout_payment_address_default.php and tpl_checkout_shipping_address_default.php) both include /tpl_modules_checkout_new_address.php; it's that common file that you might need to update to change the "State" to "City" ... although, I'm thinking now that those values are in your primary language file (hebrew.php?).


    Dang it! That one, too. The form is displayed via tpl_modules_address_book_details.php

    For both the tpl_modules_address_book_details.php and tpl_modules_checkout_new_address.php, you'll need to copy the files from the /includes/templates/template_default/templates directory to /includes/templates/responsive_sheffield_blue/templates ... unless the file is already in that directory.

    In either case, you'll apply any edits like you previously made to tpl_modules_create_account.php.
    Now all is clear ! Much appreciate your kind help lat9!
    By the way....next time... would it be easier and more "clean" to make the city its own drop down menu with its database
    instead of this state-city exchanges ?

  5. #15
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: City value of States

    Quote Originally Posted by gunni View Post
    Now all is clear ! Much appreciate your kind help lat9!
    By the way....next time... would it be easier and more "clean" to make the city its own drop down menu with its database
    instead of this state-city exchanges ?
    gunni, it depends! As long as you've commented the heck out of what you're doing -- especially the changes to core and/or template files -- there shouldn't be an issue.

    There would be a bunch more admin-tool work needed to create and manage that separate database table for the cities, IMO, given that the zones table can be "reused" for your stores' special case.

  6. #16
    Join Date
    Aug 2010
    Location
    Israel
    Posts
    285
    Plugin Contributions
    0

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 24 Nov 2012, 02:48 AM
  2. Shipping by percentage of retail value vs sale or discounted value
    By giftsandwhatnot in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Aug 2011, 05:16 PM
  3. Replies: 2
    Last Post: 10 Jan 2011, 01:18 AM
  4. Replies: 4
    Last Post: 14 Jan 2009, 11:45 AM
  5. Using Value GV-mod.. entering value doesn't work
    By pixelarcher in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 6 Oct 2008, 04:58 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