Results 1 to 10 of 2177

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    129
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    RE: Integrating Fast Easy Checkout with Crafty Clicks UK post code lookup
    Hi,
    I am new to Numinix. I see you have many wonderful and useful add ons for zen cart. I downloaded your fast easy checkout and followed the install instructions carefully. It works perfectly absolutely amazing!! thanks so much!

    My problem is I use a module by craftyclicks.co.uk to call up post codes automatically. While the option appears on all the change address pages, the unique Numinix pages, like create account page, doesnt show it at all. So I did a little digging and re-read the crafty clicks install instructions again.

    Here they are:
    You will need to modify:

    includes/templates/template_default/templates/tpl_modules_address_book_details.php
    includes/templates/template_default/templates/tpl_modules_checkout_new_address.php
    includes/templates/template_default/templates/tpl_modules_create_account.php

    admin/customers.php

    *** NOTE *** : 'template_default' needs to be substituted with your own template directory name.

    ++++++++++++++++++++++++++++++++++++++++++++< STEP 2.1 >++++++++++++++++++++++++++++++++++++++++++++

    In file includes/templates/YOURTEMPLATE/templates/tpl_modules_address_book_details.php

    INSERT AT THE TOP (around line 13, after the comments)
    <?php
    require(DIR_WS_MODULES.'craftyclicks/crafty_html_output.php');
    echo tep_crafty_script_add('addressbook', 1);
    ?>

    FIND (around line 97)
    <?php echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>

    INSERT before the last semicolon
    . '&nbsp;&nbsp;' . tep_crafty_button_add(1)

    THE RESULT SHOULD BE
    <?php echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''). '&nbsp;&nbsp;' . tep_crafty_button_add(1); ?>

    FIND (just below around line 98)
    <br class="clearBoth" />

    INSERT AFTER
    <span id="crafty_postcode_result_display">&nbsp;</span>
    <br class="clearBoth" />

    INSERT AT THE BOOTM OF THE FILE:
    <? echo tep_crafty_country_handler(1); ?>

    ++++++++++++++++++++++++++++++++++++++++++++< STEP 2.2 >++++++++++++++++++++++++++++++++++++++++++++

    In file includes/templates/YOURTEMPLATE/templates/tpl_modules_checkout_new_address.php

    INSERT AT THE TOP (around line 13, after the comments)
    <?php
    require(DIR_WS_MODULES.'craftyclicks/crafty_html_output.php');
    echo tep_crafty_script_add('checkout_address', 1);
    ?>

    FIND (around line 94)
    <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>

    INSERT before the last semicolon
    . '&nbsp;&nbsp;' . tep_crafty_button_add(1)

    THE RESULT SHOULD BE
    <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''). '&nbsp;&nbsp;' . tep_crafty_button_add(1); ?>

    FIND (just below around line 95)
    <br class="clearBoth" />

    INSERT AFTER
    <span id="crafty_postcode_result_display">&nbsp;</span>
    <br class="clearBoth" />

    INSERT AT THE BOOTM OF THE FILE:
    <? echo tep_crafty_country_handler(1); ?>

    ++++++++++++++++++++++++++++++++++++++++++++< STEP 2.3 >++++++++++++++++++++++++++++++++++++++++++++

    In file includes/templates/YOURTEMPLATE/templates/tpl_modules_create_account.php

    INSERT AT THE TOP (around line 14, after the comments)
    <?php
    require(DIR_WS_MODULES.'craftyclicks/crafty_html_output.php');
    echo tep_crafty_script_add('create_account', 1);
    ?>

    FIND (around line 110)
    <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>

    INSERT before the last semicolon
    . '&nbsp;&nbsp;' . tep_crafty_button_add(1)

    THE RESULT SHOULD BE
    <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''). '&nbsp;&nbsp;' . tep_crafty_button_add(1); ?>

    FIND (just below around line 111)
    <br class="clearBoth" />

    INSERT AFTER
    <span id="crafty_postcode_result_display">&nbsp;</span>
    <br class="clearBoth" />

    INSERT AT THE BOOTM OF THE FILE:
    <? echo tep_crafty_country_handler(1); ?>

    ++++++++++++++++++++++++++++++++++++++++++++< STEP 2.4 >++++++++++++++++++++++++++++++++++++++++++++

    In file admin/customers.php

    FIND (around line 485)
    </head>

    INSERT BEFORE:
    <?php
    require(DIR_FS_CATALOG.DIR_WS_MODULES.'craftyclicks/crafty_html_output.php');
    echo tep_crafty_script_add('customers', 1, true);
    ?>

    FIND (around line 703)
    <?php
    if ($error == true) {
    if ($entry_post_code_error == true) {
    echo zen_draw_input_field('entry_postcode', $cInfo->entry_postcode, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', 10)) . '&nbsp;' . ENTRY_POST_CODE_ERROR;
    } else {
    echo $cInfo->entry_postcode . zen_draw_hidden_field('entry_postcode');
    }
    } else {
    echo zen_draw_input_field('entry_postcode', $cInfo->entry_postcode, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', 10), true);
    }
    ?></td>
    </tr>

    INSERT before the ?></td>
    echo '&nbsp;&nbsp;' . tep_crafty_button_add(1);

    INSERT after the </tr>
    <tr>
    <td class="main">&nbsp;</td>
    <td class="main" id="crafty_postcode_result_display">&nbsp;</td>
    </tr>

    THE RESULT SHOULD BE
    <?php
    if ($error == true) {
    if ($entry_post_code_error == true) {
    echo zen_draw_input_field('entry_postcode', $cInfo->entry_postcode, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', 10)) . '&nbsp;' . ENTRY_POST_CODE_ERROR;
    } else {
    echo $cInfo->entry_postcode . zen_draw_hidden_field('entry_postcode');
    }
    } else {
    echo zen_draw_input_field('entry_postcode', $cInfo->entry_postcode, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', 10), true);
    }
    echo '&nbsp;&nbsp;' . tep_crafty_button_add(1);
    ?></td>
    </tr>
    <tr>
    <td class="main">&nbsp;</td>
    <td class="main" id="crafty_postcode_result_display">&nbsp;</td>
    </tr>

    AT THE BOTTOM OF THE FILE ADD
    <? echo tep_crafty_country_handler(1); ?>


    SO, I thought that Fast easy checkout must use extra files for the create account page. I found and modified
    tpl_modules_fec_change_checkout_new_address.php with the above amendments.

    I got the Crafty Clicks button to appear next to the post code box even on the new easy checkout page.
    BUT I cant click it, I mean nothing happens.
    So im stuck.
    I think I probably need to amend some other FEC files but im not sure which
    Would you mind to give me some direction please?
    Is it the Jscript files or some other tpl file
    Let me know if you can as I would like my first Numinix experience to be a really good one.

    Thanks!!

  2. #2
    Join Date
    Sep 2010
    Posts
    129
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    OMG I cant believe the last response was 2007!!!

  3. #3
    Join Date
    Sep 2010
    Posts
    129
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    After HOURS of comparing code I found my error.

    the top lines under the comment should be

    <?php
    require(DIR_WS_MODULES.'craftyclicks/crafty_html_output.php');
    echo tep_crafty_script_add('create_account', 1);
    ?>

    NOT:

    <?php
    require(DIR_WS_MODULES.'craftyclicks/crafty_html_output.php');
    echo tep_crafty_script_add('address', 1);
    ?>



    LESSON:
    Dont take any code for granted, follow steps EXACTLY as specified like a robot!

    And as I heard from a VERY wise women a certain *DIVA* most add on errors are due to simple install issues, missing files, misplaced files and in this case wrong code copied into files.

    I GOT IT

  4. #4
    Join Date
    Oct 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Hi guys, just installed Fast and Easy Checkout on a new ZC install. I think I stuffed up and must have overridden some of the tempalte files.

    When I goto the checkout screen, the titles and headings are not correctly displaying.

    It would just show names like
    "Heading_TITLE_ORDER_TOTAL"
    "TABLE_HEADING_SHOPPING_CART"
    "HEADING_TITLE_SHIPPING"

    Would appreciate if someone could tell me which file I didn't upload or overrode incorrectly.

    The contribution is working great otherwise!

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by zhenjie View Post
    Hi guys, just installed Fast and Easy Checkout on a new ZC install. I think I stuffed up and must have overridden some of the tempalte files.

    When I goto the checkout screen, the titles and headings are not correctly displaying.

    It would just show names like
    "Heading_TITLE_ORDER_TOTAL"
    "TABLE_HEADING_SHOPPING_CART"
    "HEADING_TITLE_SHIPPING"

    Would appreciate if someone could tell me which file I didn't upload or overrode incorrectly.

    The contribution is working great otherwise!
    Most likely you didn't upload the language files correctly..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Sep 2010
    Posts
    129
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Fast and Easy checkout for me was one of the most complicated installs since so many files are involved.

    Since you have a brand new Zen Cart install I recommend that you start from scratch. Just delete everything, replace the zen cart files (which is easy....) then go and copy each FEC file individually into the correct directory, one by one, that way you know you are keeping the right folder structure and aren't missing any files.

    I never just amend files and upload a whole folder I always have 2 windows open and keep going back and forth copying and pasting each file from the Mod folders to the ZenCart folders until I'm done.

    I still make mistakes with files, but rarely, this is almost 100% dummy proof. Good Luck!

  7. #7
    Join Date
    Sep 2010
    Posts
    129
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Useful info on FEC and CAPTCHA on this thread

    http://www.zen-cart.com/forum/showthread.php?t=166654
    Silver Jewellery

    RESPECT to the Zen Cart Team, I'm PERFECTLY Zenned!

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by zhenjie View Post
    Hi guys, just installed Fast and Easy Checkout on a new ZC install. I think I stuffed up and must have overridden some of the tempalte files.

    When I goto the checkout screen, the titles and headings are not correctly displaying.

    It would just show names like
    "Heading_TITLE_ORDER_TOTAL"
    "TABLE_HEADING_SHOPPING_CART"
    "HEADING_TITLE_SHIPPING"

    Would appreciate if someone could tell me which file I didn't upload or overrode incorrectly.

    The contribution is working great otherwise!
    This is indicative of missing language files.. Did you rename ALL the YOUR_TEMPLATE folders there???
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 25 Jan 2012, 07:37 PM
  2. Fast and Easy Checkout - Checkout Without Account not showing
    By Lee-oh in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 3 Feb 2010, 05:09 PM
  3. Go To Checkout Error - with Fast and Easy Checkout installed
    By RFree190 in forum General Questions
    Replies: 3
    Last Post: 10 Mar 2009, 07:08 AM
  4. checkout page not redirect (Fast and Easy Checkout module)
    By wowemall in forum Addon Templates
    Replies: 0
    Last Post: 27 Sep 2008, 02:36 PM
  5. Fast and Easy Checkout
    By cmes in forum General Questions
    Replies: 5
    Last Post: 15 Feb 2008, 04:07 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