• Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral


About insaini

Profile Information

  • Real Name
    Jesse B.
  • Gender
  • Location
    Brampton, Ontario
  1. Hey everyone.. voting has opened up. If you have a moment I would definitely appreciate your votes! .. but take a look at the other projects if you like as well.. there are some good ones. But hey I wont mind if you dont vote for them either ;) Cheers
  2. So the submission was accepted within the challenge. I honestly dont think I stand a chance of winning anything... but at the very least.. osCommerce will get some recognition out of it :)
  3. Hi everyone, its been quite a long time since ive logged into the forums.. I was an entrant in this years MintChipChallenge ( and I ended up creating a production ready payment module for this concept currency form. The module is available here.. and a screencast to my presentation can be viewed here.. while its not a live payment system.. I did enjoy writing it.. and wanted to give it back to the community. I hope they accept my submission! Cheers J
  4. Hey everyone.. its been a while since ive logged into here.. seems as though some of you have some issues with my contribution.. i may be able to offer some help over the next few days.. and ill be uploading a new contribution package that fixes up the automated labels routines. I probably wont be uploading an upgrade doc.. just fixing the lines that have issues..
  5. Hi Guys.. its been a while since ive been here... I havent had time to work on this mod for quite some time..but my thanks go out to everyone who has provided support.. Yes the install file is missing some information when it comes to the cookie file.. it does need to be set correctly.. the mod has been locked down.. but im going to open it up right now.. so whoever knows whats missing and what needs to be updated in the install file.. if you have the time .. you are more than welcome to update the info and upload the changes.. J
  6. Sorry for the lack of support.. the module does need to be updated a little with some tweaks.. i havent had time . Thanks to natrium for helping out. J
  7. Stevel's code will work for the ajax version except for a minor change.. $zones_array = array(); $zones_array[] = array('id' => '', 'text' => 'Please select...'); $zones_query = tep_db_query("select zone_id, zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name"); if you dont see the difference.. the ..'array('id' => '',...);' stevel has a 0 for his code.. but for the ajax version should be an empty string '' i havent tried this but that should work.. its a one line addition to the functions/ajax.php file .. J
  8. Hey everyone, Id like to apologize for not providing support on the 1.5x versions.. They were modified by me but I just havent had time for the last few months to come in here help with with any problems.. A big thanks to Steve for helping as much as he does with your problems even though he doesnt use the version himself. If there are any big problems you can email me at webmaster AT insaini DOT com. Also for a bit of info.. The AJAX Functions file (catalog/includes/functions/ajax.php) has a function function ajax_get_zones_html($country, $default_zone = '', $ajax_output = true) { where $country is a country id, $default_zone is the zone id or state (string) .. and ajax_output either echo's the output directly or does a return the defaults should be noted.. at the top of for instance the create_account.php file you only need this require(DIR_WS_FUNCTIONS . 'ajax.php'); if (isset($_POST['action']) && $_POST['action'] == 'getStates' && isset($_POST['country'])) { ajax_get_zones_html(tep_db_prepare_input($_POST['country'])); } else { some of you may have require(DIR_WS_FUNCTIONS . 'ajax.php'); if (isset($_POST['action']) && $_POST['action'] == 'getStates' && isset($_POST['country'])) { ajax_get_zones_html(tep_db_prepare_input($_POST['country']), ''); } else { or require(DIR_WS_FUNCTIONS . 'ajax.php'); if (isset($_POST['action']) && $_POST['action'] == 'getStates' && isset($_POST['country'])) { ajax_get_zones_html(tep_db_prepare_input($_POST['country']), true); } else { the latter will cause the '1' to show up.. (as true really represents a 1) .. so the default_zone is usually 1 .. best to remove both the extra parameters.. they are only needed on the first call (when the page loads) and have default values so you all should change the code to look like require(DIR_WS_FUNCTIONS . 'ajax.php'); if (isset($_POST['action']) && $_POST['action'] == 'getStates' && isset($_POST['country'])) { ajax_get_zones_html(tep_db_prepare_input($_POST['country'])); } else { at the top of those files which require it.. i believe (create_account.php, address_book_process.php, etc..) ALSO if you look below the code shows the 'echo ajax_get_zones_html(....)' ajax function call.. here you can specifiy the default zone you want to show up (false for ajax output is necessary as we are not returning the output and not echoing directly) .. further down you will see how the country selector calls the javascript getStates method.. Your code should look like this.. if it doesnt.. you might be having problems.. overall the script works as it should.. however there is the one situation I think someone described.. that they want a list of the most common nations at the top .. this isnt in code.. best to see the ajax function and rework it as you need to.. if (ACCOUNT_STATE == 'true') { ?> <tr> <td class="main" width="25%"><?php echo ENTRY_STATE; ?></td> <td class="main"><div id="states"> <?php // +Country-State Selector echo ajax_get_zones_html($country,'',false); // -Country-State Selector ?> </div></td> </tr> <?php } ?> <tr> <td class="main" width="25%"><?php echo ENTRY_COUNTRY; ?></td> <?php // +Country-State Selector ?> <td class="main" colspan="3"><?php echo tep_get_country_list('country',$country,'class="formtextinput" onChange="getStates(this.value, \'states\');"') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> <?php // -Country-State Selector ?> </tr>
  9. Im happy it worked out for you.. you can if you like (as i dont have much time anymore) .. make the changes repackage and upload the changes.. or you can email me the changes and I can do it when I have some time.. J
  10. yes the module will function without the shipping labels software.. it will store the package size, shipping method chosen, weight, and then ofcourse the cost of shipment.. J
  11. Hmm.. step 7 i believe is payment issue.. did you add a credit card to your canadapost sellOnline account? you have to store the alias to that card which is usually the first 4 digits followed by 8 asterisks and then the final 4 digits.. and of course the cvv from the back must also be stored in your shipping module configuration.. im assuming you did this and the payment proceeded.. but why you are getting an xml error.. that im not sure of.. do you know which line its happening on? sorry I dont check this that offen.. if you have a problem you can email directly at webmaster AT insaini DOT com. The total weight of the package is supposed to be retrieved from the stored shipping method chosen by the customer.. the value of the weight is stored and then parsed back by the shipping labels software when its time to print a label.. if it doesnt ship up thats because it wasnt stored correctly.. and if you are using my shipping module then it should be .. there might be another problem.. just have to debug it through.. J
  12. What do you mean it fails.. what happens when you add more than 2 items?
  13. if / is your root path.. (where say your index.php file is) then no.. the setup would be /virtual/ /virtual/cp_cookies you can store the cp_cookies file anywhere.. as long as its a 777 access file.. you could also store it in your temp directory.. im not sure if it contains secure information.. it may .. but hopefully canadapost only keeps track of a session and doesnt store user credentials or anything else.. i cant say for sure.. and for cURL.. you 7.15 may work.. im using 7.18 and I know it doesnt work on 7.12 so not sure what version is required.. but i can tell you that OpenSSL and libSSH2 are mandatory libraries.. i see you have OpenSSL.. but you dont have libssh2 .. that is definitely required and you will have to install libssh2 and then rebuild php with libssh2 J
  14. I believe natriums original release had code for contracts.. I removed this actually I didnt expect anyone to need it.. clearly im mistaken ;) .. however I dont really have time to go in to look.. but the code is fairly easy to modify.. take a look at ship_canadapost_ajax.php (in my release) look for where payment processing is done.. you can add in the necessary contracts code stuff there.. you do not need to enter your credit card alias in the shipping module if you will use contract setup.. the contract code should also probably be added to the shipping module configuration so it can be retrieved from there.... ive basically tightly integrated the shipping module and shipping labels packages.. although the shipping module can function without the labels package.. it doesnt work the other way around.. for the labels package to work you need this specific shipping module.. J
  15. The Automated Labeles and Shipping Module combined package is basically the older 3.1 shipping module with dimensions support that has been enhanced to use the standard osc unit configuration as well as modified for integration with automated labels. I enhanced the Automated Labels code and added integration with the shipping module.. it does require some specific cURL and SSL libraries but this package is only required if you are looking at creating labels via your admin panel rather than directly with canada post web software. GST depends on your tax setup.. as long as your taxes are configured properly in osC then your shipping calculations will also calculate GST/HST/PST correctly as well. Fuel surcharge is taken care of via your sellOnline account located on Canada Post. J