Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: Fix Company mod support thread

    When you're in a situation like this, just compare the plugin file to the unmodified file from a fresh download.
    Here's ./includes/templates/YOUR_TEMPLATE/templates/tpl_modules_address_book_details.php (less than sign) vs unmodified file (greater than sign):

    < <?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' autocomplete="new-password" id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"' . (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    ---
    > <?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"' . (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>

    Heres' ./includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php vs unmodified file

    < <?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' autocomplete="new-password" id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"'. (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    ---
    > <?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"'. (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Oct 2019
    Posts
    23
    Plugin Contributions
    0

    Default Re: Fix Company mod support thread

    Quote Originally Posted by swguy View Post
    When you're in a situation like this, just compare the plugin file to the unmodified file from a fresh download.
    Here's ./includes/templates/YOUR_TEMPLATE/templates/tpl_modules_address_book_details.php (less than sign) vs unmodified file (greater than sign):

    < <?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' autocomplete="new-password" id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"' . (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    ---
    > <?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"' . (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>

    Heres' ./includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php vs unmodified file

    < <?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' autocomplete="new-password" id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"'. (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    ---
    > <?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"'. (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    Fresh downloaded files for comparison (Fix Company 1.0 vs Bootstrap v3.1.2) :

    This is tpl_modules_address_book_details.php:
    Click image for larger version. 

Name:	comparison tpl_modules_address_book_details_php 2021-06-06.jpg 
Views:	113 
Size:	64.1 KB 
ID:	19608

    This is tpl_modules_create_account.php:
    Click image for larger version. 

Name:	comparison tpl_modules_create_account_php 2021-06-06.jpg 
Views:	80 
Size:	77.1 KB 
ID:	19609

  3. #3
    Join Date
    Oct 2019
    Posts
    23
    Plugin Contributions
    0

    Default Re: Fix Company mod support thread

    Quote Originally Posted by swguy View Post
    When you're in a situation like this, just compare the plugin file to the unmodified file from a fresh download.
    Here's ./includes/templates/YOUR_TEMPLATE/templates/tpl_modules_address_book_details.php (less than sign) vs unmodified file (greater than sign):

    < <?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' autocomplete="new-password" id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"' . (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    ---
    > <?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"' . (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>

    Heres' ./includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php vs unmodified file

    < <?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' autocomplete="new-password" id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"'. (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    ---
    > <?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"'. (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    Are you referring to the responsive_classic template or the bootstrap template? Thanks.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: Fix Company mod support thread

    I am referring to the files in the plugin. This shows you the changes you will have to apply to *your* template (whether that is rc, bootstrap, etc.)
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Oct 2019
    Posts
    23
    Plugin Contributions
    0

    Default Re: Fix Company mod support thread

    Quote Originally Posted by swguy View Post
    I am referring to the files in the plugin. This shows you the changes you will have to apply to *your* template (whether that is rc, bootstrap, etc.)
    Appreciate it! I was thrown off by the filenames in the bootstrap template. I ended up modifying the following files:

    Code:
    includes/templates/bootstrap/templates/tpl_modules_common_address_format.php
    and
    Code:
    includes/templates/bootstrap/templates/tpl_modules_create_account.php

    Thank you for your time!

 

 

Similar Threads

  1. Local Sales Tax Mod - Support Thread
    By LadyHLG in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 658
    Last Post: 22 Dec 2025, 05:29 PM
  2. v154 Mod List Support Thread
    By swguy in forum Addon Admin Tools
    Replies: 51
    Last Post: 31 Dec 2023, 12:13 PM
  3. Multi Cross Sell mod [Support thread]
    By gilby in forum All Other Contributions/Addons
    Replies: 475
    Last Post: 11 Apr 2020, 10:44 PM
  4. Time Zone Fix Support Thread
    By gilby in forum All Other Contributions/Addons
    Replies: 82
    Last Post: 9 Jan 2016, 12:25 AM
  5. SplitTaxLines mod support thread
    By pdprenty in forum All Other Contributions/Addons
    Replies: 80
    Last Post: 19 Dec 2009, 10:01 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