Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

smailliwnosaj

Archived
  • Posts

    5
  • Joined

  • Last visited

Everything posted by smailliwnosaj

  1. The upload file size limit is typically controlled by your web server. <2Mb is typically the default defined in your server variables. Some people have found ways around this if their server allows for a php.ini file to override their server variables. I believe you should Google UPLOAD_MAXFILESIZE . My memory could be failing here. Suggestion on the file types question: You should be able to upload other file types with some edits to the code. You will have to write an if statement to first query the file extension. If .jpg - run the current code - if other - run a standard file upload script without the image resizing script.
  2. Though I am still mindboggled with the rounding off the product prices problem, you have inadvertently solved my problem #2. I was having issues with the PayPal IPN module not sending the values from my text fields to PayPal. I am assuming you ran into this problem with the default PayPal module and then corrected it. So, now, all I have to do is find out how to make those changes to the PayPal IPN module. Thanks for the bump,
  3. Squeaky clean install. Most current releases from today. In fact I ran a test install of it on another server before attempting to install it on my site. One server, I used the GoDaddy installer to install OsCommerce. My website server, I installed OsCommerce from a download from the OSC site. Both servers have the same result: The prices worked before the Option Types install. After the install, the product prices are rounded off to dollars in the shopping cart and in the amount posted to PayPal. I also tried the no options managager version. Same results. I tried your suggestion above. However, I couldn't find a page in my site that would echo the string. Essentially, I get the same results on an older version of OsCommerce on a live site, on a brand new version of OsCommerce on my test server, and on a brand new version of OsCommerce on my live web server. The only consistant factors in all three installs are my products database and a PayPal IPN Module. I don't think it is the PayPal module because the error takes place in the shopping cart well before the module is called. And the module consists of three non-OsCommerce files that upload clean without overwriting any existing files. Could it be my database causing this? Maybe a setting in a config table for 0 decimal places instead of 2?
  4. Thanks for this contribution. It does everything I need except one little detail that I can't for the life of me figure out. MY STORY: I tried to upgrade an existing OsCommerce store with the Option Types V2. I kept getting errors and it was rounding product prices up to whole dollar amounts in the shopping cart. I chased my tail fixing the errors for a couple of days. I decided to install a fresh OsCommerce 2.2a, which I did. After getting the store back online, I uploaded the Option Types V2. This time, I am happy to say there are no error messages, save one little problem.... PROBLEM: The shopping cart is still rounding product prices off to whole dollar amounts and the shopping cart is showing the Sub-Total as 0. Has anyone else had this happen. I can't for the life of me figure out how to fix it or hack it to get me my two decimal points back. Please..... drowning here.
  5. I installed Option Types V2 on my OsCommerce 2.2 so that I could upload images and text for each item in my cart. After that, I was getting an error that the function calculate_price() was not defined, so I went to catalog --> includes --> classes --> currencies.php and added in the following: function calculate_price($products_price, $products_tax, $quantity = 1) { global $currency; return tep_round(tep_add_tax($products_price, $products_tax), $this->currencies[$currency]['decimal_places']) * $quantity; } which I pulled from the forum topic here: http://www.oscommerce.com/forums/index.php?sho...calculate_price NOW: The Sub-Total , which is generated from the script: currencies-->format($cart-->show_total()) in my catalog--> shopping_cart.php file, is rounding off prices to 0 decimal places. Please, if anyone has any ideas about how to fix this, I would be greatly appreciative. Thank you,
×
×
  • Create New...