Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

megaplatinum

Archived
  • Posts

    14
  • Joined

  • Last visited

Profile Information

  • Real Name
    Nick

megaplatinum's Achievements

  1. well, i finally got it working after 2 days on non-stop effort, but now that it's done, it works great. thanks for the contribution!
  2. ahh there was a custom mainfile that i needed to add that application_top.php mod to as well! Niceness! A few more errors but now it's intercepting the call.
  3. no dice. i tried moving that bit of code all over the application_top.php and also my osc_header.php file - nothing changes. still goes to the cart without onebip intercepting the call. since osc2nuke is not an official version of oscommerce qualified for support on these forums, i probably shouldn't waste this support thread with questions about it. however, if you wouldn't mind helping me out via private msg, i'd really appreciate it. let me know.
  4. Thanks for the reply. Weird. osc2nuke does use a couple modified bits of code. osc2nuke has it's own header that works in conjunction with application_top.php, so I added require_once('OneBip/OneBip.php'); in the top of that osc2nuke header file, that got me past the fatal error. Now it displays the option to buy with mobile phone on qualifying products (products that i have set up in my admin menu for use with onebip). So, obviously, it's working good now in the sense that it knows which products qualify and acknowledges them. Now we have a new problem. When I click on option to buy, it just goes to the next part of the checkout process with oscommerce (displaying the what's in my cart page). But it should go to onebip.com at that point, correct? I'm looking at checkout_process.php in my onebip folder and it says it's supposed to take me to the login page for unregistered users. Is this supposed to take me to my websites registration page or the onebip.com registration page? What part of the code would i look at to fix this? I feel like I'm close on this. Your other 2 answers cleared up my confusion on those issues. Thanks :) Great contribution. I've been wanting to offer a feature like this in oscommerce for a year now!
  5. 3 questions. I'm using osc2nuke (a oscommerce 2.2 contribution for phpnuke.) none of the database tables have been altered that i know of to support the hybridge. i also installed super download shop and it's successfully working with paypal ipn. i'm very excited to incorporate onebip and thanks for this contribution. i have set up my account on onebip, set my pricing for the different countries, followed the installation instructions. 1. i am getting an error on line 190 of product_info.php when the following code is called $showOneBip = $OneBip->ProductStatus($_GET['products_id']); Fatal error: Call to a member function on a non-object in /homepages/..../product_info.php on line 190 I'm assuming this bit of code checks to see if the product/download has a onebip flag of 1 associated with it. In that event, is there another way to write this so i don't get this error? it's not displaying the buy it now button or any other info and keeps me from moving forward with the transaction 2. i heard there was a test server for testing this api with onebip and oscommerce. how would i set that up? 3. what are the correct order status settings for my administration side? there's 3 different settings and i'm not sure what they should be. thanks in advance!
  6. example php code supplied by zong.com <?php /* * function sendSMS(...), send a SMS MT (Mobile Terminated) * arguments are: * msisdn = phone number in international format, must be URL encoded using rawurlencode (ex: %2B41791234567) * pwd = your Zong open API password * ssid = Sub Service Id for this MT, must be the same as the MO * shortcode = short number of the service (ex: 911) * price = Tariff class for this MT, must be URL encoded using rawurlencode (ex: CHF%200.50) * category = category of the MT (ex: rsp), please refer to the Z-Open API documentation * txt = the text of the MT, UTF8 end URL encoded * flags (optionnal) = please refer to doc * ref (optionnal) = opaque reference that will be returned to your acknowledge handler */ function sendSMS($msisdn, $pwd, $ssid, $shortcode, $price, $category, $txt, $flags, $ref) { $url = "https://secure.echosms.net/premium/smsmt-utf8.asp?"; $querystr = ''; $query = Array(); $query["MSISDN"] = $msisdn; $query["SSID"] = $ssid; $query["PWD"] = $pwd; /* * If short_code, price or category are not defined, the SMS will be sent as bulk */ if($shortcode != '' && $price != '' && $category != '') { $query["SC"] = $shortcode; $query["TCL"] = $price; $query["CAT"] = $category; } if($txt != '') $query["TXT"] = $txt; if($flags != '') $query["FLAGS"] = $flags; if($ref != '') $query["REF"] = $ref; foreach($query as $key => $value) $querystr .= "&$key=$value"; //removes the first & $querystr = substr($querystr, 1, strlen($querystr)); /* * CURL is used here to send data over HTTP */ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url.$querystr); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); $getResult = curl_exec($ch); if(curl_getinfo($ch, CURLINFO_HTTP_CODE) != 200) { curl_close($ch); return false; } curl_close ($ch); return true; } ?>
  7. I'm not a coding guru, but this looks quite possible to implement. Zong.com offers a unique possibility of payment via sms shortcode, and the billing goes to the end user's cell/mobile phone! This is interesting for customers who don't have credit cards, and I want to offer this as a payment alternative. They have service in the USA/UK/Europe! Anyone want to take a crack at this? zong.com Go to applications / open API. Full documentation is there
  8. wow, i cant believe it, sure enough, redirect didnt work before, i just tried it again, and bam, it's solid as a rock. thanks so much, it works now!
  9. wow, i cant believe it, sure enough, redirect didnt work before, i just tried it again, and bam, it's solid as a rock. thanks so much, it works now!
  10. Thanks Alex for the reply. Odd that this doesnt work. The download.php from osc2nuke is the exact same as oscommerce ms2. Maybe I shouldn't have mentioned that I was using osc2nuke, as I hope it didn't bias your possible interest of the problem i'm experiencing. There's really no difference in the 2, especially the download.php of the contribution. I've tried a number of things and nothing is changing the problem. It might be something to do with php 4.4.4 being used as opposed to some other version and the way it handles fread and other php commands, but i am out of other ideas. Shame, I've been working on my website for 4 months, endless testing and coding, and i would hate this to be the part that keeps me from moving forward. It's such a great contri. I've tried tech support at my shared hosting provider, and the girl had no technical knowledge at all unfortunately. All I really wanted was to see if they had a log file that could explain a little better exactly where the failure was happening. Anyway, this is beyond frustrating at this point.
  11. addendum to the previous post, i noticed my max execution time for my php server is 50000, and i have a feeling now that this may be a buffer loop timeout problem with the large files. any ideas?
  12. Thank you, first off, for this great contribution. I have successfully implemented it into an oscommerce site using osc2nuke 8033 on a unix server using php 4.4.4 ... I have it set to use group file download, and all the files, upon successful payment, show up to download. I have gzip compression off, and am NOT using download by redirect. However, I am having one major issue that i have not seen addressed as of yet. On large files (seems to be anything larger than 4 mb), my server responds with an internal server 500 error. Is there anyway to change the settings in download.php for the larger files to anything else and hopefully fix this problem? Or does it lie elsewhere? I have tried this with .zip and .mp3 filetypes. A smaller issue, is that users with mozilla firefox are not getting the "save as" box with the larger files. They just automatically download. Is there any code I can add in to solve this for firefox users? Thank you.
  13. i've recently signed up for daopay and am just getting my oscommerce site together, and it seems the only viable solution for pay by phone and charge by phone transactions using shopping cart systems that have variable end transaction pricing, as opposed to fixed pricing and fixed charge per transaction. this will give great flexibility. plus they have no start up costs. is anyone currently developing a payment module to interface with their directapi option? anyone using them? i'd be interested in helping to develop a module with some other people on the site. nick
×
×
  • Create New...