Jump to content

NGR

Members
  • Content count

    183
  • Joined

  • Last visited

1 Follower

About NGR

  • Birthday 11/09/1981

Profile Information

  1. What I did was the following.... In product_info.php - you will find the following: if ($product_check['total'] < 1) { The code just below that is shown when a product is disabled "Product not found" Replace that with the code that usually displays the product, remove the "add to cart" link and price - and you have more or less what you are looking for! Like so.... http://www.ngrcomputers.co.za/hpworkstatio...ard-p-6719.html A basic way of doing it - but effective!
  2. NGR

    how to see cc error codes

    I have the same problem...it shows in the URL and nowhere else. Need to extract it from the url and display it in a popup box....anyone know how to do this?
  3. NGR

    NEW! Complete Order Editing Tool!

    Wow - thanks for your response. Figured out the error, had to do with the different paths on a https:// and http:// server. Ovbiously if you run from the https:// and www should be wwws in the path. Thanks :) Fixed up the whole secure/unsecure story though! Another error though - does not seem to be compatible with the surcharge contribution. Any idea's where I can start? Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition manualcart of the object you are trying to operate on was loaded _before_ the session was started in /usr/www/users/ngrcfb/includes/modules/order_total/ot_surcharge.php on line 80
  4. NGR

    NEW! Complete Order Editing Tool!

    Great update. Trying to install on a vanilla OSC installation - but getting the following error: Warning: main(): open_basedir restriction in effect. File(/usr/www/users/ngrcfb/includes/classes/http_client.php) is not within the allowed path(s): (/usr/wwws/users/ngrcfb:/usr/home/ngrcfb:/tmp:/usr/local/lib/php) in /usr/wwws/users/ngrcfb/admin/edit_orders.php on line 36 Warning: main(/usr/www/users/ngrcfb/includes/classes/http_client.php): failed to open stream: Operation not permitted in /usr/wwws/users/ngrcfb/admin/edit_orders.php on line 36 Fatal error: main(): Failed opening required '/usr/www/users/ngrcfb/includes/classes/http_client.php' (include_path='.:/usr/local/lib/php/') in /usr/wwws/users/ngrcfb/admin/edit_orders.php on line 36 Anyone perhaps know a workaround?
  5. Hiya I had a similar problem - for some reason I would have a product page i.e http://www.ngrcomputers.co.za/leadtek-nvid...2mb-p-2119.html for some reason google was spidering them as http://www.ngrcomputers.co.za/leadtek-nvid...ge=5&sort=2 or something like that! URL still works but it meant it kicked me into supplementals obviously for Duplicate content. Looked high and low but now idea how its happening. So outa frustration, i have done a 301 redirect to the "proper page" In application top, just under this: // Ultimate SEO URLs v2.1 include_once(DIR_WS_CLASSES . 'seo.class.php'); $seo_urls = new SEO_URL($languages_id); I pasted this: if (basename($_SERVER['SCRIPT_NAME']) == 'product_info.php') { $incoming_url = $_SERVER['REQUEST_URI']; $test = substr($incoming_url,strpos($incoming_url,'.html')+6,20); $compare1 = substr($incoming_url,1,strpos($incoming_url,'.html')-1); $compare2 = substr(str_replace(HTTP_SERVER,'',tep_href_link(basename($_SERVER['SCRIPT_NAME']), 'products_id='.$_GET['products_id'])),1,strpos(str_replace(HTTP_SERVER,'',tep_href_link(basename($_SERVER['SCRIPT_NAME']), 'products_id='.$_GET['products_id'])),'.html')-1); if ($compare1 != $compare2) { $location = tep_href_link(basename($_SERVER['SCRIPT_NAME']),'products_id='.$_GET['products_id'].tep_get_all_get_params(array('products_id')), $request_type); header("HTTP/1.0 301 Moved Permanently"); header("Location: $location"); } else { if ($test != '') { $location = tep_href_link(basename($_SERVER['SCRIPT_NAME']),'products_id='.$_GET['products_id']); header("HTTP/1.0 301 Moved Permanently"); header("Location: $location"); }} } if (basename($_SERVER['SCRIPT_NAME']) == 'index.php') { if (isset($_GET['cPath'])) { $incoming_url = $_SERVER['REQUEST_URI']; $compare1 = substr($incoming_url,1,strpos($incoming_url,'.html')-1); $compare2 = substr(str_replace(HTTP_SERVER,'',tep_href_link(basename($_SERVER['SCRIPT_NAME']), 'cPath='.$_GET['cPath'])),1,strpos(str_replace(HTTP_SERVER,'',tep_href_link(basename($_SERVER['SCRIPT_NAME']), 'cPath='.$_GET['cPath'])),'.html')-1); if ($compare1 != $compare2) { $location = tep_href_link(basename($_SERVER['SCRIPT_NAME']),'cPath='.$_GET['cPath']. tep_get_all_get_params(array('cPath')), $request_type); header("HTTP/1.0 301 Moved Permanently"); header("Location: $location"); } } } Works for me - might work for you! Anyone see a potential problem with this?
  6. NGR

    OSC-Affiliate

    Yeah...also been doing some research. http://forums.seochat.com/t55576/s.html Seems the affiliate program aint such a good thing if you are worried about ur SERP's.... Any idea's how to fix this anyone? im kinda clueless with url rewriting expecially since I have search engine friendly url's installed. How do i get them both to work in tandem?
  7. NGR

    New CC payment gateway...

    Hi Guys Wow - I am getting quite a response from this post - 15 people have contacted me this month so far (JULY 2005). This post is over a year old though ;) I have a module that is up and running - the old and the new version of Setcom. It took me quite a while to work it out, but once you know how its a rather easy process. I have also programmed a module for M-Web's services using XML. If you are looking for some advice lemme know at nick@ngrcomputers.co.za! Keep well and good luck :)
  8. Hey Derek Depends what you're selling and how long you quickly you need the money to clear??? Setcom, M-Web, Paygate etc are all options.... Let me know if you need more info!!
  9. Me too me tooo..... i also wanna know.... About to install the contrib but me thinks its a waste of time if it HAD to point to a product - that makes no sense.... Cool...
  10. NGR

    Xml driving me nuts....

    Hiya guys... Okay, after losa of hassles. Can someone actually tell me how the string should look when you want to post it to another host?? So far im using curl - and this is what im doing! Above is the xml code being loaded into a variable. Then i post the the host using curl : if i check the variable just before sending this is the full string that is being sent : (Is the the right format that should be sending for XML???) Because nomatter what I do this is what is being returned : Thing is my first tag that is being sent IS "<Safe>" - anyone have any hints to why im not getting anywhere?!? Thanks in advance guys!! Nick
  11. NGR

    New CC payment gateway...

    Anyone???? please please please please help!!! :) Been searching and searching and no luck. The problem up to date! Can add stuff to basket, then pay(when im redirected to setcom) then, when it comes back to my site it brings me to login.php. I ask it to go the checkout_process.php but the first validation in that file, the one that says if (!tepIsRegistered('product_id')) part pushes me to the login.php page, thing is, im still logged in so its a false statement. Bottom line, what variable do i need to pass back to my site to "regisiter" the session? Or does everything need to be passed back? ie:shipping,order,product_id... I even tried oscsid etc etc Please please please help... thanks again, nick
  12. NGR

    New CC payment gateway...

    Hi there guys... Im about to murder someone - im so fustrated... Right, how do i do this... My payment gateway wants me to post them the following : CustomerEmail, password, amount, storeID, Reference.... <-Now thats all hunky dorey, hacked another contribution that sends all this to a server and changed the settings to what i needed, no problem there and my user enters the credit card details there (Setcom's verification website) then... here is the problem... I can specify a page to post back to on setcom's website(the verification system).... what page do i tell it to go back to??? I tried checkout_php etc but it all takes me back to the login.php screen???!!!! Now, this is what they say they post back : 2. We do post back to you these variables if a transaction is succesful: ordernumber - This is the unique OrderID created for every new order. This is Setcom's reference to the order and should be used when further queries are done on the order. amount - The total amount of the order (shipping, tax etc included) in normal decimal format without currency symbol. reference - This is your unique reference to the order, passed to Setcom in your pay-button. authnumber - The authorization number returned from the bank for the transaction. brandid - The brand used for the transaction. The brand ID's are as follows: 1. Visa 2. MasterCard 3. American Express 4. Diners 5. Direct Deposit 6. C.O.D. 7. SBM Cards You must have specified a Confirmation URL for us to be able to post back to you. (In your Commerce Manager, by clicking on "Lite Customisation", "CreditCard Response". Thanks in advance guys....im really desparate!!!
  13. Hey yeah...please somebody reply to this man - im having the same problem. I can post the variables to my payment gateway(setcom) and they authorize the transaction....but, after authorizing the transaction where do we post the variables back to?? Thanks in advance for any help!!
  14. :blink: Hi guys... Im wondering if you could please help. Just finished going through the 120+ pages here for an answer but no luck:( Ok, my problem. I use a TOTALLY different checkout system, which means all I do is pass the variables in my basket to another page(different company) which processes the login, basket info etc. So what I need, and this contrib kinda does it for me but to totally. If I add a product into my catalog with a negative price, it works as a gift voucher and subtracts that amount from the total in my basket - thats a nice feature which has been implemented in my site!! ie : This is what happens!!!! Now, is there ANY way this could work with a % ammount????? Im desparate. I need a way that it would work out the percentage of the total value in the cart and discount it by that amount?? I would then need to pass it on as a product with a negative value to processing payment page(the non-oscommerce one) Thanks guys for any suggestions/help!!! :ph34r:
  15. NGR

    Custom PC Creator

    Yeah I had the problem aswell but its easy to fix... U need to edit your tables directly! This is exactly what u need to do...i didnt install the admin part though so cant help you there... Go into php mysql... find the table ccc... as well at the table categories... Now, if the number for "motherboards" is say 10, then in the table ccc find motherboards and change the ccc_category number to 10.... Then they link up properly... let me know if this doesnt make sence...im more than willing to help! Regards, Nick
×