Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

falkner

Archived
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    Jonathan

falkner's Achievements

  1. Beautiful. :thumbsup: It is what I was looking for, only better thought out. Thanks! Jon "I love deadlines. I like the whooshing sound they make as they fly by." - Douglas Adams
  2. Nevermind my previous question, I got it working. I have a question for those of you who are more advanced with PHP scripting. I noticed that there were a few questions about being able to only charge the highest priced first shipping, and have all other items only charge the secondary shipping price for all of the items... Well, here is my idea for that. Since I do not know deeper level php (arrays and such) this is in pseudo code. Please let me know if anyone can turn this into working code: create an array: -------------------------------Fields to store in the array: array[sizeof($products)](products_ship_price, products_ship_price_two) As the calculate shipping occurs (at about 114 in classes/shipping.php), fill the array with each product's two prices. sort the array from highest to lowest products_ship_price create $shipping_price_correction for ($i=1, $n=sizeof($products); $i<$n; $i++) { //Skip the highest priced shipping (we wanted it charged full price) $shipping_price_correction += (array[$i](products_ship_price) - array[$i](products_ship_price_two)) } $this->shiptotal += -$shipping_price_correction That would charge the highest first shipping price, and still subtract the correct amount to make the cheaper shipping charged as the secondary shipping price for each item. If any of you (especially phpmom with her obvious mad skills in php) would be willing to turn this into actual code, that would be wonderful. I will be working on it myself, but I still have to learn all of the PHP before I can start coding. For some, this would take less than a half hour to code. If you would be so kind, I would be very greatful for the addition to this wonderful contribution. Thanks, Jon "I love deadlines. I like the whooshing sound they make as they fly by." - Douglas Adams
  3. I have a very simple question. :blush: I am using OSCommerce 2.2 MS2 (051113), PHP version 4.3.11, and MySQL version 4.0.25-standard on a Unix server running Apache version 1.3.34. I have not installed any other contributions yet, so I should be able to simply copy and paste these files into my installation without modification, right? I tried first to install the V2.0 for installation on a FRESH OSC install, but that gave me an error saying that I must have register globals on? :blink: I am unable to turn them on, and wouldn't want to even if I could. Is this a known issue? Is there a fix for this problem? I may be asking something others have asked, but after reading 13 pages of this forum, I just decided to ask. Basically, what I am asking is this: Is there an easy way to install this contribution on a fresh OSC install with the register globals fix already installed without turning register globals on? I have not yet tried manually making the modifications to the files rather than overwriting (which I will be trying while you are all reading this) but if doing this step by step manually does not work, then I am at a loss, and I really would like to get this contribution working. :( Thank you all in advance for any help with this installation. I am somewhat new to OSC, but I am relatively familiar with PHP and very familiar with SQL. Thanks again for the help! :D Jon "I love deadlines. I like the whooshing sound they make as they fly by." - Douglas Adams
×
×
  • Create New...