Jump to content

pmakulski

Members
  • Content count

    36
  • Joined

  • Last visited

Profile Information

  • Real Name
    Paul Makulski
  • Gender
    Male
  • Location
    Waterloo, Ontario
  1. OK, I figured it out. The newer version uses a redirect to admin/login if the user is not logged in. Took a while to find it, but it happens in admin/includes/application_top.php Find this code // redirect to login page if administrator is not yet logged in if (!tep_session_is_registered('admin')) { $redirect = false; A few lines below this is $redirect = true; Change the true to false, and voila ... you're no longer using the Administrator feature of osCommerce. Now go to your cpanel : Password Protected Directories and put a password on the admin folder Now the SSL fix works. Yeah!
  2. OK, I'm sure the problem is the new version. There is n admin/login.pgp that handles logging in from a table based list of administrators. It includes lots of statements like $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch ($action) { case 'process': $username = tep_db_prepare_input($HTTP_POST_VARS['username']); $password = tep_db_prepare_input($HTTP_POST_VARS['password']); There is no mention of any HTTPS anywhere in this module. This seems to cause the login to endlessly loop. The code is too dense for me. Does anybody know how to make this code work with SSL ??
  3. I'm beginning to believe the problem is the newer version of osCommerce. I have 2 sites, one over a year old, the other just a few months old. I installed the fix on the older version and it works fine. On the older version, I get a browser challenge when I go to mydomain/admin But on te newer version, doing exactly the same thing brings up the screen mydomain/admin/login.php?osCAdminID=c8f29b... which asks for a username and password. If I install the SSL fix, then everything I do takes me to this login.php screen. So, is there a further adjustment needed to this fix to handle the newer version?
  4. I hate to post to a topic that is so old, but ... I just installed the 4 change solution. It directs me to the https in all the right places, but then it asks me to log in again and I can't get to where I'm going. I've uninstalled the IF statements back to the original. Is this a problem with the newer osCommerce version? Or, does anybody have a fix?
  5. pmakulski

    Canada Post

    Yes, that's it. Played with it a bit more today and it is a bunch of xml tags. And this was really informative. This is what the return bit from CanadaPost actually says: <packingID>P_0</packingID> <box> <name>Homemade for 5 or more</name> <weight>1.33</weight> <expediterWeight>0.6</expediterWeight> <length>40.0</length> <width>40.0</width> <height>5.0</height>> <packedItem> <quantity>5</quantity> <description>online_product</description> </packedItem>> </box> The CP 4.1 script is picking up the thing called "weight". I have no idea how they came up with that 1.33, but there is another number called "expiditerWeight". That looks more like the number I want. I think I can change the code in the CP shipping module to find and use that number instead. Thanks for your help. :)
  6. pmakulski

    Canada Post

    I'm not a programming novice; but I'm far from a php pro. Thanks for the reminder about using print statements. I've captured a few details when I ask for a quote. My shopping cart has 2 products, 3 of one and 2 of another. All weigh .1 kg, all are 14x14x1 cm (they're CDs) In canadapost.php , the prints yielded: shipping_weight: 0.51 total_weight: 0.5 This looks good. This is what canada post returns: packingInfo: P_0 Homemade for 5 or more 1.33 0.6 40.0 40.0 5.0 5 online_product The 1.33 purports to be the weight of the package, but it should be 0.5 plus the weight of the box. In the serverlet, that box does not weigh 0.83 !) From what I can tell, this is what is being sent to CanadaPost data: enCPC_MINEB0J1N007530.1014.0014.001.00online_product20.1014.0014.001.00online_productWaterlooOnt arioCAN2J1T7 In that, I can see the language, the CPC account, the from and the to postal codes, and the array for the two products. I can't puzzle out the product info 075 30.1014.0014.001.00online_product 20.1014.0014.001.00online_product I see numbers that look like the quantity( 2 & 3), weight (0.1), and dimensions (14 14 1) I don't know why the numbers all run together like that. Perhaps the print statement is ignoring tabs? So, the program on my side looks ok (maybe), so how is CP coming up with the weight of 1.33? Could it be an error on their side?
  7. pmakulski

    canadapost and port 30000

    I'm just using PayPal and Cheques.
  8. pmakulski

    Canada Post

    Thanks Chris. I see the the large package percent increase. It's set to zero. I've got the weight set to KG and I've input all the weights in kg. It seems to be calcing correctly to the point of 5 items. I think maybe Canada Post has my account set in test mode or something. I'll have to call them, but the tech line was swamped before Christmas.
  9. Insaini, I have a very specific problem in using the CP Shipping module. http://forums.oscommerce.com/index.php?sho...;hl=Canada+Post Basically, it works fine for 4 or fewer units. For 5 or more units, the weight doesn't calc properly. I've installed 4.1, 2.2 (I don't know if I did the 2.2.1 I'll have to look)
  10. pmakulski

    canadapost and port 30000

    There was a topic on this elsewhere in the forum about a month ago. You host may be blocking port 30000 I don't know why they would do such a thing, but I had exactly this problem when my host merged with another host. I asked them to unblock port 30000; they did; problem solved.
  11. pmakulski

    Canada Post

    Well, I'm back, working on this issue again. I am most disappointed to see that nobody bothered to answer this after I posted the question over a month ago. I've crawled through my implementation of my code for the CP 4.1 module. I did find 2 errors (one line in the wrong place, one SQL statement change missed.) But after fixing these two, the problem persists. I can see the Canada Post module providing correct weights (package weight + product weight) for up to 4 units. When I enter 5 or more units: - the weight becomes a much higher number than it should be - and it never changes. Here are the weights for 1 thru 7: .111, .211, .327 (bigger package), .427, 1.33, 1.33, 1.33, ... (The correct weights are .111, .211, .327, .427, .6, .7, .8, ... ) Is there a bug that causes errors at 5 units, or .5 kg. Like a data type conversion or something stupid like that? How do I find what the problem is?
  12. pmakulski

    Canada Post

    I just installed Canada Post module 4.1. It all seems to work ok, except for the weight calculation. I have a product that weighs .1kg As I change my order volume from 1 to 2 to 6 etc., the weights are right for 1 to 4: The box weights .03 so the weights returned for 1 to 4 are: .13 .23 .33 .43 But when I have 5 units, the weight says 1.18 (it should be .53) but worse, when I have 6 units it still says 1.18 ?? Any suggestions?
  13. Great post. I haven't done the Canada Post phone call/account setup thing yet, but I have installed the CP shipping mod. I'm still using the Demo account (CPC_DEMO_XML). Everything seems to work. I get 4 shipping options and prices. The prices, however, look high ($8.37 is the lowest price returned). My products are small books. Most are only 20 pages (like 30grams). Most are 10"x6"; some smaller; some letter sized. So, small orders should fit in a simple letter envelope ($.93) or oversized envelope ($1.10). Does the Canada Post module include LetterMail pricing? Thanks
×