Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

naps1saps

Pioneers
  • Posts

    59
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by naps1saps

  1. Yeah the sandbox works great, but the live server leads to a 500 error after paypal authentication. Very frustrating for me since it is my only payment method.
  2. As far as the PayPal issue goes, It isn't the usps module. I would like to know how many people are successfully using paypal express?
  3. I too seem to be having a problem with it but do not see any errors becuase I am working remotely. I've just run out of time today and can't bring up my server to check errors, so I will check it out tonight when I get home. Do you have this problem when using the standard checkout process?
  4. yes FIND: for ($i=0; $i<$n; $i++) { if (strpos($response[$i], '<Rate>')) { $service = ereg('<MailService>(.*)</MailService>', $response[$i], $regs); $service = $regs[1]; $postage = ereg('<Rate>(.*)</Rate>', $response[$i], $regs); $postage = $regs[1]; $insurance = ereg('<Insurance>(.*)</Insurance>', $response[$i], $regs); $insurance = $regs[1]; $rates[] = array($service => $postage); $rates_sorter[] = $postage; if ($transit) { switch ($service) { case 'Express Mail': $time = ereg('<MonFriCommitment>(.*)</MonFriCommitment>', $transresp[$service], $tregs); $time = $tregs[1]; and add for ($i=0; $i<$n; $i++) { if (strpos($response[$i], '<Rate>')) { $service = ereg('<MailService>(.*)</MailService>', $response[$i], $regs); $service = $regs[1]; $postage = ereg('<Rate>(.*)</Rate>', $response[$i], $regs); $postage = $regs[1]; if ($service == 'Media Mail') { $postage = 10; } $insurance = ereg('<Insurance>(.*)</Insurance>', $response[$i], $regs); $insurance = $regs[1]; $rates[] = array($service => $postage); $rates_sorter[] = $postage; if ($transit) { switch ($service) { case 'Express Mail': $time = ereg('<MonFriCommitment>(.*)</MonFriCommitment>', $transresp[$service], $tregs); $time = $tregs[1]; if ($service == 'WHATEVER MAIL TYPE') { $postage = $$.$$; } This is a direct flat rate adjustment for all weight. For weight related adjustments, use $this->ounces and $this->pounds so... $postage = $this->ounces * $$.$$ + $this->pounds * $$.$$; hope this helps.
  5. did you check that all the mail options you want are selected in the admin panel? Did you click remove then install again?
  6. I'm a bit confused. You are showing parts of the insurance options from v3.0 yet you say that you have 4.1.4 installed which does not have insurance. Try installing 4.2.0. Make sure you go into admin options and click the remove button for this module, then install it again. What I suspect is happening is that you don't have the correct SQL entries in your database which is easily solved by reinstalling the module.
  7. Version 4.2.0 ALPHA has now been released HAS MANUAL Domestic and AUTO International insurance allong with on/off options so there is now only one single module for insurance and non-insurance. Added a line to the language file, so make sure you make the appropriate adjustments and changes. *ENJOY* Please leave feedback. I'll try to figure out a scheme for the different mail options that are available and put them as GUI options in the admin menu for the next release.
  8. I see your problem. USPS does not offer Express mail flat-rate boxes and because I am an idiot, I left the container type as flat-rate envelope for Express mail by default. So to fix your problem, go into usps.php and find: //EXPRESS MAIL OPTIONS if ($key == 'Express Mail'){ $this->container = 'FLAT RATE ENVELOPE'; //OPTIONS: '', 'FLAT RATE ENVELOPE' $this->size = 'REGULAR'; //OPTIONS: 'REGULAR', 'LARGE' } Change your container type to blank: //EXPRESS MAIL OPTIONS if ($key == 'Express Mail'){ $this->container = ''; //OPTIONS: '', 'FLAT RATE ENVELOPE' $this->size = 'REGULAR'; //OPTIONS: 'REGULAR', 'LARGE' } This will solve your problem
  9. I added a rounding function to prevent .33333333333333333... weight displays and removed the print array code. So go ahead and get V4.1.4 if you like. There aren't any new features or major additions, so it's up to you if you want to install it or not.
  10. Yeah, that's usually what happens when firstclass doesn't show up. As far as the Array = ... at the top of the screen, that's my mystake. I forgot to take it out I guess. Sorry. So to everyone who has it installed, remove the print_r($rates_sorter); from line 559.
  11. Thank you Ben Bogart. V4.1.3 has now been released with the cost sorting fix and a few more changes/adjustments. Please be aware of the ounces not being rounded, so they are displayed with decimals like .33333333333... Please let me know if this becomes a problem. I'll fix it in a later update.
  12. Nice. One edit though: REPLACE: return ((sizeof($rates) > 0) ? $rates : false); WITH: //Sort Rates asort($rates_sorter); print_r($rates_sorter); $sorted_rates = array(); foreach (array_keys($rates_sorter) as $key){ $sorted_rates[] = $rates[$key]; } return ((sizeof($sorted_rates) > 0) ? $sorted_rates : false); $sorted_rates[] = $rates[$keys]; should have been $sorted_rates[] = $rates[$key]; But it works! Thanks!
  13. I don't know. I'm still trying to learn how those parts work. I'm still pretty new to SQL and PHP and don't have very much time to sit down and figure it out, but I'm trying. It'll probably be a month or so unless I can get John to help me (he helped build OSCommerce). But if you want to play around with it, by all means go ahead. That's what I like about open-source.
  14. Because we are limited to the length of the sql entry for each mail option like we had with the international. It will throw an error if the statement is too long. That's why there are no Global express options. To get away with some change I added that weight threshold for firstclass domestic so it will switch over to large envelope, so you could have it switch from large envelope to package or whatever you need at a certain weight. Everyone's needs are not the same. That is another problem we face as module programmers.
  15. It must be your user address because it's working fine for me to Dublin Ireland. BTW, I need to figure out how to not multiply packages for priority and express. Also, I want to add those options for firstclass, etc. to the admin page and figure out how to sort the mail options from lowest cost to highest cost instead of fastest to slowest. I would also like to make a new column in the shipping options list for the delivery times.
  16. Thanks, I'll check that FirstClass int. tonight just to make sure. I thought I had everything tested, but then again....
  17. Nevermind the previous post. v4.1.2 is complete!! Fixed all of the things complained about in this thread including the priority flat rate + priority standard problem New weight threshold for firstclass and parcelpost for real-time "container" changes inside USPS.php Looking forward to hearing your feedback.
  18. v4.1 Parcel Post works fine in my store. If your transmitted package weight is less than 1 pound, USPS adds a surcharge for unusual weight. If the machineable option is set to false, they add a surcharge. Check the mail optionsoptions in USPS.php and see if this is there: //PARCEL POST OPTIONS if ($key == 'Parcel Post'){ $this->size = 'REGULAR'; //OPTIONS: 'LARGE', 'REGULAR', 'OVERSIZE' $this->machinable = 'true'; //OPTIONS: 'true', 'false' } Make sure you changed everything to lowercase, if not, change "Parcel Post" to "PARCEL POST". I'm currently trying to fix all the problems, so I don't know if it was something I added after 4.1 or what.
  19. Gotta do this quick- First, do you have USPS methods 4.0/4.1 or 3.0? Did you want Priority standard AND Priority flat rate box? OR just Priority flat rate box? To get ONLY flat rate box using usps methods 4.0/4.1, open usps.php and find the domestic options. Should say something like //priority mail options or something like that. To use flat rate box, change the "container" value for Priority mail to FLAT RATE BOX. If you wanted both, we havn't programmed it yet. But we're working on it.
  20. I needed International stamps at $.94/oz. Half the time I need two. Not enough space for 10 stamps. BTW... They changed the API tags for international rates. I've fixed it and am uploading v4.1 There are now options for Firstclass package, letter, or large envelope. Also options for priority flatrate box and large flatrate box inside usps.php.
  21. Proactive? HA! One - I havn't gotten that email yet Two- I went to the post office on Friday to drop off a letter and wanted to buy some new stamps for Monday. They didn't have any yet... lol. I had to get a ton of $.02 stamps for my business. I suggest we make a module that allows for the input of all the data manually as a backup, because I'm sure everyone doesn't use every product. P.S. As long as they don't change the tag names, the product names, or add package input requirements in the API (ex added <container>LETTER</container> in API v3.0), everything should be a smooth transition.
  22. One thing is that you need to have production server selected instead of test. Second, you need to have a new USPS account for each new site address. Third, you need to have USPS switch your account to use their production server. If you are still having problems, open /includes/modules/shipping/usps.php, find the fake email address, and replace it with your own. Every time you make a rate request, the response is copied and sent to your email address so you can troubleshoot any script errors. If the error doesn't make any sense to you, tell us and we can probably help. Without any more information, we can't help much.
  23. I'm Sorry. I need everyone using USPS Methods v4.0 Alpha to open their /includes/modules/shipping/usps.php file and remove my email address from the response forwarding function. I've gotten over 300 emails with rate responses. And yes, a few of them were not working if you were wondering. If everyone could do this, that would be awesome! I was wondering where all the emails were coming from, then it hit me that I forgot to remove my email from the file, LOLOLOLOL, ahem not funny. I've uploaded a new one without my email and reported the one with my email so it hopefully will be removed. Thanks!
×
×
  • Create New...