An addendum.. Found out that there's a few places I need to add Shipping Telephone fields to work with the COWOA features.. I'm sure it's a fairly simple little fix.. (gosh I HOPE it is..) Will work on this MUCH later.. NOW I'm really off to my hockey game..

Quote Originally Posted by DivaVocals View Post
WOW!! That's all I can say.. Sheesh!!! But I do have the answer to my own question now..

So I spent the last few days messing around with this and I've discovered some things I thought I'd share with the community.. So I merged, tested, rolled back, cursed, pulled out my hair, and then started all over again..

Here's what I ended up with.. I FINALLY got a fully functional merged package featuring FEC as follows:

FEC Version: 1.9.3 (with all Zen Cart 1.3.9 modifications included)
Gift Wrapping Version: 2.6b_139
Add Shipping Telephone Version: 1.1

Using Beyond Cmpare and a careful examination of the files, I discovered that FEC has all of the Gift Wrapping Version: 2.6b_139 code as part of it's core codebase. I also realized that because of this there are a few files from the Gift Wrapping module that I did not need to include in my merged package.

  • admin/.orders.php.old.swp
  • includes/templates/custom_template/templates/tpl_account_history_info_default.php
  • includes/templates/custom_template/templates/tpl_checkout_confirmation_default.php
  • includes/templates/custom_template/templates/tpl_checkout_shipping_default.php
  • includes/modules/pages/header_php.php

Once I got everything merged and WORKING, I made a BUNCH of changes (mostly cosmetic) as follows:

  • Updated all FEC files with Zen Cart 1.3.9 changes as required
  • Added the appropriate FEC code to the invoice (default FEC only included updates to order and packing list files)
  • Made sure that not only the gift message, but the selected dropdown value (if the dropdown is activated) and the checkbox value (if checkbox option is selected) show on the order, invoice and packing list
  • Corrected the gift wrap label in the order total section on the order, and invoice. Formatting corrected through the addition of a gift wrap stylesheet
  • Updated the formatting of the "Items to be Gift Wrapped" table so that it matches the formatting of the product details section on the order, invoice and packing slip
  • Moved the template and language files from the Add Shipping Telephone module to their appropriate override folders.
  • I also modified the Super Orders, Super Invoice and Super Packing Slip files in the same manner as the default order, invoices, and packing lists were modified..

Then I decided to go for the gusto, and found out that to get FEC to work with Gift Wrapping Version: 2.8_139 will require a lot more work than a simple "merging" of the files.

Most notably merging the OBVIOUS places in FEC with Gift Wrapping Version: 2.8_139 will yield unsatisfactory results when checking out.. When checking out, the gift wrapping checkbox appears, but selecting it has NO EFFECT on the order total nor do the image or description options from gift wrap module appear.

So I did some further digging, and figured out that what is left to be merged is the code in the various FEC and Gift Wrap checkout files. I believe that the gift wrapping code in the tpl_checkout_shipping_default.php from the Gift Wrap module should replace some or all of the gift wrapping code in the FEC tpl_checkout_stacked.php file.

However this is where I've stopped short.. I'm unsure about what needs to merged..

Also not entirely sure whether or not the javascript from the gift wrap module should be merged in with the FEC code or not or even HOW to go about doing it.

Code:
<script language="javascript" type="text/javascript">
function showGWChoices(id, id2) { // This gets executed when the user clicks on the checkbox
    var obj = document.getElementById(id);
    var obj2 = document.getElementById(id2);
if (obj.checked) { 
    obj2.style.display= "block";
} else {
    obj2.style.display = "none";
}
}
</script>
On this same note, the action that is triggered when the Gift Wrap checkbox is selected is different in the FEC code than it is in the Gift Wrap code (which is likely part of the source of the issue I am having. In the FEC module checking the Gift Wrap checkbox is supposed to update the totals:
Code:
echo zen_draw_checkbox_field($gift_id,'',$giftChecked,  'id="'.$gift_id .'" onclick="updateForm();"');
In the Gift Wrap module checking the Gift Wrap checkbox is supposed to display more gift wrap choices.
Code:
 echo zen_draw_checkbox_field($gift_id,'',false, 'id="'.$gift_id  .'" onclick=\'showGWChoices("wrap_prod_' . $prod_count . '", "slider_' .  $prod_count . '")\'');
All this to say that if you are using FEC with Gift Wrapping you CANNOT use Gift Wrapping Version: 2.8_139 without a LOT of work which the average Zenner may not be able to tackle.. (I gave up!!) If anyone has gotten FEC to work with the Gift Wrapping Version: 2.8_139 do share how the heck ya did it!!! I needed a drink after I tried..

CONCLUSION:
Though Gift Wrapping Version: 2.8_139 adds the following GREAT new feature: Selectable wrapping types by text label or image, I daresay that the dropdowns, checkbox and gift message features in FEC + Gift Wrapping Version: 2.6b_139 will give you near identical functionality..

Whew!! That's it.. Off to a hockey game!!