Jump to content

fulluvscents

Members
  • Content count

    305
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fulluvscents

  1. @@surrfman It's there. And yes, guest option is also still there. That's not to say that someone didn't go in and turn it off while testing it out though. It's gonna take me a bit to sort out the IE8 issues.
  2. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    @@jeffreyice1 I looked into that yesterday when I changed the mod around for the 2.2 sites, and realized that I did not add any apostrophes in the db entries. So, I think we are still at a loss on the issue you're having. I was hoping to run into something, but just haven't yet.
  3. Will you please upload your shopping cart file? Don't post the code here. Just upload a file. You can do that by clicking the the "more reply options" button.
  4. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    It is now. @@altoid I think it's unchecking the last checkbox. I notice it too. Will work on a fix for that.
  5. I fixed the payment module problem. That was about the most DUH thing ever. v2.0 and 2.1 are no good. use v2.2 It includes a fix to the payment process as well as a fix for when no shipping mods are installed.
  6. You can do that and it will serve your needs just fine. You can also do this, which would be a more flexible fix, and which I'll note in the contribution, and include in any updates I may make in the future: .on('click', '#processCheckout button', function(){if ($('input[name=payment]').size() > 0 && $('input[name=payment]:checked').size() == 0) alert('<?php echo ERROR_NO_PAYMENT_MODULE_SELECTED;?>');else if ($('#shipping').is(':visible') && $('input[name=shipping]').size() > 0 && $('input[name=shipping]:checked').size() == 0) alert('<?php echo TEXT_CHOOSE_SHIPPING_METHOD;?>');else{var str = '{"payment":"'+$('input[name=payment]:checked').val()+'",';$('input[name=payment]:checked').parent().siblings('.confirmation').find('input, select, textarea').each(function(){str = str+'"'+$(this).attr('name')+'":"'+$(this).val()+'",';});var str = str+'"action":"processCheckout"}';$('#processCheckout').parent().load(url +' #processCheckout', $.parseJSON(str), function(){$('#processCheckout button').button();$('form[name=processCheckout]').submit();});}})
  7. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    Uploaded a new package with your first class letters. Just didn't include it. Don't know why. Also noticed that the debug line wasn't commented. So, I fixed that. Extra services - If you pay for them, then include them. It'll be calculated and tacked onto the cost of shipping. They aren't optional to the customer in this version. Only optional to the shop owner.
  8. Hmmmph, now where's that head scratching smiley when you need it? The script has to meet two requirements before that alert will trigger. 1. The shipping section has to be shown (because it isn't shown for zero cart weight or virtual cart) Then, if the shipping section is visible 2. There have to be zero checked inputs on the page named "shipping" It checks for payment first, then shipping. So, it's clearing the payment buttons. I couldn't say at all why it wouldn't be clearing the shipping button if in fact, there is a "radio" button checked whose name is "shipping". Stumped!
  9. The link is bad. I just caught that today and fixed it in one of my mods. This is the correct link https://www.usps.com/business/webtools.htm
  10. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    Alrighty, so after installing a vanilla 2.2rc2a shop and making it compatible with my server, I went ahead and whipped up a mod just for you 2.2 folks. No jquery, just a tiny bit of plain old javascript in the admin section. You should find this extremely easy to install. BUT, I warn you, it will NOT work unless you're on a server running php 5.2 or higher. I didn't change the core data manipulation, just the jquery stuff. http://addons.oscommerce.com/info/8403
  11. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    Nope, not unless it's an alteration you might have done to cause it. Otherwise, I already have the scripts.
  12. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    @@altoid Checkboxes aren't being autofilled when the page is refreshed? So, if you save it, you lose the previous state and they become unselected, right? That would be a scripting error. I will be looking into that tonight. Thanks for bringing it up. @@GoTTi Hmmm, cool screenshot. I hate when that happens. Will look into that too and see if I can replicate it. Retail is counter rates - what you pay at the post office. Online is commercial rates - what you pay online Use the rates that actually apply to you because the associated services are also based on how you buy your postage. In other words, don't charge retail rates if you print online unless you plan on going to the post office when someone chooses a service that isn't available online. If you buy online but want a premium rate, then add it to the handling. You can exclude the weight. Someone asked that in the first day this was contributed, so find page 1 of this thread and the answer is either on that page or the next one. @@kepa Nope, I'm not answering questions about 6.1. I didn't write it, peeked at the code and it was far too busy for me. So, instead of messing with that, I wrote a new one from scratch. I did contribute USPS methods 5.2.2 though and might not be so hesitant to respond to questions about that one.
  13. I've got someone reporting bugs in the checkout using safari on a mac platform. Checked radio buttons are un-checking themselves. Can anyone else verify that this is happening and provide any insight as to why?
  14. @@LaChrize Yes, how you do so depends on which version of the checkout you're using. In the 1.X versions, find: <p class="create" id="gender"><?php echo tep_draw_radio_field('gender', 'm') . ' ' . MALE . ' ' . tep_draw_radio_field('gender', 'f') . ' ' . FEMALE . ' '; ?><?php echo (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="required_icon iconred">✹</span>' : ''); ?></p> replace with: <p id="gender"><?php echo tep_draw_radio_field('gender', 'm') . ' ' . MALE . ' ' . tep_draw_radio_field('gender', 'f') . ' ' . FEMALE . ' '; ?><?php echo (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="required_icon iconred">✹</span>' : ''); ?></p> In the 2.0 version, find: <?php if (ACCOUNT_GENDER == 'true' && $_POST['accountType'] == 'create') { ?> replace with: <?php if (ACCOUNT_GENDER == 'true') { ?> @@surrfman I felt the same way about XP. HATED Vista - one of those things that will make you want to throw a computer out a window. I'm very happy with windows 7 though, I have to admit, even moreso than XP. I don't know about compatibility with IE 8. Try this. In the checkout.php code, Find : <script> change to : <script type="text/javascript"> Edited: Removed the second suggestion, after I tested it and killed it on IE 9. Go to the payment module in the confirmation function, and don't be surprised if there is an associated line in the before_process function. You may or may not need to remove both, and likewise, may not be able to remove both, depends on what information the payment processor requires in their communications.
  15. NOTICE. Simple checkout for 2.3.1 version 2.0 has been uploaded. A demo site exists and there is a link contained in the synopsis of the contribution. The latest versions of jquery are required for this. I am interested in knowing about any bona fide bugs that may be discovered, and will fix them if found. Besides debugging (which I really hope is done), I think this will be the last round of changes that I make.
  16. @@peter3 I'm going over your recommendations and I do appreciate them, particularly the tax considerations, since that completely slipped my mind before. here's a tidbit about that. This piece of script, that you placed in the shopping cart section to account for taxes, is actually much simpler than that. if (is_array($sendto) && !empty($sendto)) { // FIXED - BEGIN: consider tax after shipping address change $shipping_address = array('entry_firstname' => $sendto['firstname'], 'entry_lastname' => $sendto['lastname'], 'entry_company' => $sendto['company'], 'entry_street_address' => $sendto['street_address'], 'entry_suburb' => $sendto['suburb'], 'entry_postcode' => $sendto['postcode'], 'entry_city' => $sendto['city'], 'entry_zone_id' => $sendto['zone_id'], 'zone_name' => $sendto['zone_name'], 'entry_country_id' => $sendto['country_id'], 'countries_id' => $sendto['country_id'], 'countries_name' => $sendto['country_name'], 'countries_iso_code_2' => $sendto['country_iso_code_2'], 'countries_iso_code_3' => $sendto['country_iso_code_3'], 'address_format_id' => $sendto['address_format_id'], 'entry_state' => $sendto['zone_name']); } elseif (is_numeric($sendto)) { $shipping_address_query = tep_db_query("select ab.entry_firstname, ab.entry_lastname, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, ab.entry_country_id, c.countries_id, c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, ab.entry_state from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " c on (ab.entry_country_id = c.countries_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)$sendto . "'"); $shipping_address = tep_db_fetch_array($shipping_address_query); } // FIXED - END The osc tax calculation function runs on two session variables - $customer_country_id, and $customer_zone_id. They are already registered by the time we are in the checkout. So, when the shipping address is updated (we reset the $sendto variable), we simply change the value of the tax related variables at the same time, like this: if (isset($_POST['aID']) && tep_not_null($_POST['aID']) && $sql = tep_db_fetch_array(tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$_POST['aID'] . "' limit 1"))){ $sendto = $_POST['aID']; $customer_country_id = $sql['entry_country_id']; $customer_zone_id = $sql['entry_zone_id'];} And then when we come out of that ajax call (setting the new address), we run more ajax calls to update the cart contents and order totals, which will automatically call on those session variables in their calculations. And yes, that is a function inside of a function and it can only be done if you pull a limit 1 on the sql query. It's Jetta shorthand. While working on the last run of updates, I did catch the other recommendations that you had (languages, updating both addresses, in case one changed the other, and a couple other things). Those will be included in the next upload, coming soon. Regarding the custom form area for your payment methods, I believe that would be a payment module consideration. It would be a part of the functions inside of the payment class, just like credit card number fields. If added that way, it would be applied in the normal course of any checkout just like any other payment method form fields. Hope that helps you a little with getting things to work for you.
  17. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    Okay, I just installed on an oscMax site, which is basically a maxed out 2.2 shop, and didn't have any problems at all. Skipped the checkout_shipping parts, overwrote the usps.php files, and modified the two files in admin. Problems are most likely to arise either from installation error, configuration error, from outdated php, or some other errors. But, the script works fine, even in 2.2 shops. There is a debug code in here. It's the one commented line in the usps.php file. Just remove the comment and test the site and check your email for a response. I intentionally set it up so that if it threw an error, the error would not show on the PUBLIC checkout page. Errors shown on a checkout page are tacky, distasteful, and unprofessional. It's not the customer's responsibility to deal with script bugs. It's the webmaster's responsibility. So, if the screen is blank, it's possible that you ARE getting a response, but that the response is an error. Start with that line of code and see what USPS sends you, if anything.
  18. I have no experience with this particular version, but try changing your rates in admin from retail pricing to internet pricing, and see if that works. Something isn't being passed to USPS correctly, as it pertains to first class mail. USPS is returning a zero rate for counter rates, and a rate of 2.99 for commercial rates. if the mod gives you an option for commercial rates, you may be stuck with using that option until someone fixes the code to pull the rates for both.
  19. @@ggrant3 It looks like a compatibility conflict. WIth paypal, the payment runs through internal files, back to checkout_confirmation, and then to the paypal site. It's wacky how it's set up and that's why PP gave me the biggest issues. It looks like you have some sort of invoicing add on that is conflicting with the overall checkout process. Does it work fine without this checkout turned on? @@ronodo My next update will probably resolve this for you. I expected to have it up already, but it's in a final testing phase and may be up tomorrow or the next day. @@Stevell I suppose you would add that the same as you would in your normal checkout. It's just a matter of finding the part of this page that matches where you would put it in a regular checkout. (the payment area somewhere?).
  20. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    If you removed the apostrophe there, then you also need to remove it in the files. And that may very well be the answer to the problem that @@jeffreyice1 is having as well. @@lisapeden $contents[] = array('text' => '<br>' . $keys); - that's the line @@kepa if you create a temp ftp account and admin account and PM me those details, I'll go in and debug this upload a separate contribution specific to the 2.2 shops. Sorry everyone that I can't get here to answer questions more often. I do stay very busy, and I get on here whenever I get the free time for it.
  21. fulluvscents

    rate V4 changes to usps.php for osc2.2

    http://addons.oscommerce.com/info/8327 The contrib found here will work on a 2.2 shop. There's just a few little differences between the 2.2 and 2.3.1 code that you'll need to catch to get it working right (admin/modules.php comes to mind). The simplest version is at the bottom, with added features as you go higher up. If you choose one with most of the features, then skip the modifications to the checkout_shipping file and it's associated language file, unless you have jquery installed in your shop (which is a standard part of 2.3.1).
  22. @@peter3 I will look over your suggestions before the next udpate.
  23. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    @@dculley - the add on requires a small sql query. You'll need to perform that query in your database. @@rwest & @@lyonsperf If one of you (or both) wants to volunteer to let me into your shop so that I can hunt down the problem and solution, then PM me. I could read back through the posts,but I'll just ask - are you both on 2.2 shops? I haven't been able to personally test one yet, and if I can get in, then I can find out what incompatibilities exist, and get those listed with the contribution.
  24. fulluvscents

    USPS Rate V4, Intl Rate V2 (official support thread)

    You don't have a problem with the checkboxes working and everything else while you are in the panel, right? But, when you save it, it's not being saved correctly? I know what's happening, but I don't know how to explain how to fix it. It's more of a hands on thing, and something I dealt with when putting this together, and resolved from what I saw. Is the following code exactly what you have in your admin ....... general.php file? function tep_cfg_usps_services($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string = '<b><div style="width:20px;float:left;text-align:center;"> </div><div style="width:30px;float:left;text-align:center;">Min</div><div style="width:30px;float:left;text-align:center;">Max</div><div style="float:left;"></div><div style="width:50px;float:right;text-align:center;">Handling</div></b><div style="clear:both;"></div>'; for ($i=0; $i<sizeof($select_array); $i++) { $string .= '<div id="' . $key . $i . '">'; $string .= '<div style="width:20px;float:left;text-align:center;">' . tep_draw_checkbox_field($name, $select_array[$i], (in_array($select_array[$i], $key_values) ? 'CHECKED' : '')) . '</div>'; if (in_array($select_array[$i], $key_values)) next($key_values); $string .= '<div style="width:30px;float:left;text-align:center;">' . tep_draw_input_field($name, current($key_values), 'size="1"') . '</div>'; next($key_values); $string .= '<div style="width:30px;float:left;text-align:center;">' . tep_draw_input_field($name, current($key_values), 'size="1"') . '</div>'; next($key_values); $string .= '<div style="float:left;">' . preg_replace(array('/RM/', '/TM/', '/International/', '/Envelope/', '/ Mail/', '/Large/', '/Medium/', '/Small/', '/First/', '/Legal/', '/Padded/', '/Flat Rate/', '/Regional Rate/', '/Express Guaranteed /'), array('', '', 'Int\'l', 'Env', '', 'Lg.', 'Md.', 'Sm.', '1st', 'Leg.', 'Pad.', 'F/R', 'R/R', 'Exp Guar'), $select_array[$i]) . '</div>'; $string .= '<div style="width:50px;float:right;text-align:center;">$' . tep_draw_input_field($name, current($key_values), 'size="2"') . '</div>'; next($key_values); $string .= '<div style="clear:both;"></div></div>'; } return $string; } function tep_cfg_usps_extraservices($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string = '<b><div style="width:20px;float:left;text-align:center;">N</div><div style="width:20px;float:left;text-align:center;">C</div><div style="width:20px;float:left;text-align:center;">S</div><div style="width:20px;float:left;text-align:center;">H</div></b><div style="clear:both;"></div>'; for ($i=0; $i<sizeof($select_array); $i++) { $string .= tep_draw_hidden_field($name, $select_array[$i]); next($key_values); $string .= '<div id="' . $key . $i . '">'; $string .= '<div style="width:20px;float:left;text-align:center;"><input type="checkbox" name="' . $name . '" value="N" ' . (current($key_values) == 'N' || current($key_values) == '' ? 'CHECKED' : '') . ' id="N" onClick="if($(this).is(\':checked\')) $(\'#C, #S, #H\', $(\'#' . $key . $i . '\')).removeAttr(\'checked\'); if($(\':checkbox:checked\', $(\'#' . $key . $i . '\')).size() == 0) $(this).attr(\'checked\', \'checked\');"></div>'; $string .= '<div style="width:20px;float:left;text-align:center;"><input type="checkbox" name="' . $name . '" value="C" ' . (current($key_values) == 'C' ? 'CHECKED' : '') . ' id="C" onClick="if($(this).is(\':checked\')) $(\'#N, #S, #H\', $(\'#' . $key . $i . '\')).removeAttr(\'checked\'); if($(\':checkbox:checked\', $(\'#' . $key . $i . '\')).size() == 0) $(\'#N\', $(\'#' . $key . $i . '\')).attr(\'checked\', \'checked\');"></div>'; $string .= '<div style="width:20px;float:left;text-align:center;"><input type="checkbox" name="' . $name . '" value="S" ' . (current($key_values) == 'S' ? 'CHECKED' : '') . ' id="S" onClick="if($(this).is(\':checked\')) $(\'#N, #C, #H\', $(\'#' . $key . $i . '\')).removeAttr(\'checked\'); if($(\':checkbox:checked\', $(\'#' . $key . $i . '\')).size() == 0) $(\'#N\', $(\'#' . $key . $i . '\')).attr(\'checked\', \'checked\');"></div>'; $string .= '<div style="width:20px;float:left;text-align:center;"><input type="checkbox" name="' . $name . '" value="H" ' . (current($key_values) == 'H' ? 'CHECKED' : '') . ' id="H" onClick="if($(this).is(\':checked\')) $(\'#N, #C, #S\', $(\'#' . $key . $i . '\')).removeAttr(\'checked\'); if($(\':checkbox:checked\', $(\'#' . $key . $i . '\')).size() == 0) $(\'#N\', $(\'#' . $key . $i . '\')).attr(\'checked\', \'checked\');"></div>'; next($key_values); $string .= preg_replace(array('/Signature/', '/without/', '/Merchandise/', '/TM/', '/RM/'), array('Sig', 'w/out', 'Merch.', '', ''), $select_array[$i]) . '<br>'; $string .= '<div style="clear:both;"></div></div>'; } return $string; }
  25. I felt guilty for running off, but I really had to focus on stuff I was doing and I can get lost in forums, so I had to stay away for a while. You want to know the darndest thing. I can use certain jquery functions in some scripts, and not in others. Hahahaha. Guess what. It's because I have 1.4.2 in one site and 1.7.1 in the other. I didn't even think to check that. Nice. Ding, ding, ding. Now, I know what my problem is. THANK YOU. Including the newest jquery files as a standard part of future uploads might be a good idea. In fact, with my next upgrade, it will be necessary, as I'll be basing it on 1.7.1 specifically with a goal of cutting the script nearly in half. But, I've been running this with 1.4.2 as well, and haven't run into any issues. Odd, I say. I'll have another improved version in about 3 days - I fixed the Paypal button and turned it into a radio button, and I'm scrunching the code down a bit to work even more efficiently and try to speed things up a bit more. Unfortunately, despite the fact that the functionality won't really change much, the coding will be drastically changed, so any modifications that people made, will have to be redone with any newer versions. :unsure: But, I think it'll be worth it.
×