Jump to content

Robert972

Members
  • Content count

    53
  • Joined

  • Last visited

About Robert972

  • Birthday 01/05/1971

Profile Information

  • Real Name
    Robert
  • Gender
    Male
  • Location
    Dallas
  • Website
  1. Robert972

    Payment modules for use in Admin only

    I need to have a few modules for use only on the admin side. I dont know what i need to do to not offer them to customers, yet I need the option of using these methods for phone orders. How can i use them on the admin side and not show to customers during checkout?
  2. Does anyone know of a payment module that is pretty basic and one that POSTS the form values to the gateway instead of using GET or XML request/response? I need to find one to use as an example so i can create one for a new credit card processor for us. 3Delta Systems is who it'll be hitting on a secure asp page. I have created a test form that sends the required fields to it and it functions, now am just trying to do the same within a payment module and am not having much luck. If i had an example module to work with I think I can do it... hopefully someone here can help me out.
  3. Robert972

    Paymentech Module error

    try this one, it worked for me... http://addons.oscommerce.com/info/1998
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title></title> <script language="JavaScript1.2" type="text/javascript"> function CreateBookmarkLink() { title = "XXWebsite TitleXX"; url = "http://www.site.com/"; if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel(title, url,""); window.location = 'http://www.site.com' } else if( window.external ) { // IE Favorite window.location = 'http://www.site.com'; window.external.AddFavorite( url, title); } else if(window.opera && window.print) { // Opera Hotlist window.location = 'http://www.site.com' return true; } } </script> </head> <body onLoad="CreateBookmarkLink();"> </body> </html> put that in a page say, addtofav.html and bring it up in any browser. dunno if thats what you were looking for, but thats one way i do it. works from emails or whatever... as long as the link points to the page on your site.
  5. Robert972

    Offical Google Checkout module for osCommerce Support Thread

    When i have this in my googlecheckout/gcheckout.php i get "Oops! We were unable to process your request." when i click google checkout. What could be the problem? } if(MODULE_PAYMENT_GOOGLECHECKOUT_CARRIER_CALCULATED_ENABLED == 'True' && !$free_shipping){ $Gshipping = new GoogleCarrierCalculatedShipping('Carrier_shipping'); $country_code = defined('SHIPPING_ORIGIN_COUNTRY')?SHIPPING_ORIGIN_COUNTRY:STORE_COUNTRY; $zone_name = tep_get_zone_code($country_code, STORE_ZONE, ''); $countries_array = tep_get_countries(SHIPPING_ORIGIN_COUNTRY, true); $ship_from = new GoogleShipFrom('Store_origin', '', $countries_array['countries_iso_code_2'], SHIPPING_ORIGIN_ZIP, $zone_name); $GSPackage = new GoogleShippingPackage($ship_from,1,1,1,'IN'); $Gshipping->addShippingPackage($GSPackage); $carriers_config = explode(', ', MODULE_PAYMENT_GOOGLECHECKOUT_CARRIER_CALCULATED); // print_r($googlepayment->cc_shipping_methods);die; foreach($googlepayment->cc_shipping_methods_names as $CCSCode => $CCSName){ foreach($googlepayment->cc_shipping_methods[$CCSCode] as $type => $methods) { foreach($methods as $method => $method_name) { $values = explode('|', gc_compare($CCSCode . $method. $type , $carriers_config, "_CCS:", '0|0|0')); if($values[0] != '0') { $CCSoption = new GoogleCarrierCalculatedShippingOption($values[0], $CCSName, $method,$values[1], $values[2], 'REGULAR_PICKUP'); $Gshipping->addCarrierCalculatedShippingOptions($CCSoption); } } } } $Gcart->AddShipping($Gshipping); If i uncomment that print_r and pre format it, I get this on shopping_cart.php Array ( [fedex] => Array ( [domestic_types] => Array ( [Ground] => Ground [Home Delivery] => Home Delivery [Express Saver] => Express Saver [2Day] => 2Day [standard Overnight] => Standard Overnight [Priority Overnight] => Priority Overnight [First Overnight] => First Overnight ) [international_types] => Array ( ) ) [ups] => Array ( [domestic_types] => Array ( [Ground] => Ground [3 Day Select] => 3 Day Select [2nd Day Air] => 2nd Day Air [Next Day Air Saver] => Next Day Air Saver [Next Day Air] => Next Day Air [Next Day Air Early AM] => Next Day Air Early AM ) [international_types] => Array ( ) ) [usps] => Array ( [domestic_types] => Array ( [Media Mail] => Media Mail [Parcel Post] => Parcel Post [Express Mail] => Express Mail ) [international_types] => Array ( ) ) ) The main reason i upgraded to this was for the shipping calculations, but its not workin... please help
  6. Robert972

    Default Image if none available

    Thats the one that worked for me, nothing else suggested by anyone else on any other thread worked. I just added $img=true; if ($src == "images/"){ $img = false; $src = "images/noimg.jpg"; } after function tep_image($src, $alt = '', $width = '', $height = '', $params = '') { and it worked instantly, thank you Tim Wilson! I actually added to this, from another post which i forgot where it is... here's what mine looks like currently and i believe it is more versatile as a result. if (file_exists($src) == 0) $src = DIR_WS_IMAGES . 'noimg.jpg'; $img=true; if ($src == "images/"){ $img = false; $src = "images/noimg.jpg"; }
  7. personally i wouldnt even consider running it on a windows box. i think you would do better to setup your own box with linux, centos 4.5 is good one & free, install it with everything, set your web service and mysql service to run, set your mysql root password... get phpmyadmin installed (hardest part) and install osc on it and you got your own testing server with an environment that you wont have to accomodate so much. thats what i'd do... after you download the centos iso and burn it to cd, install the os 1 hour, updates 30 min, config everything+phpmyadmin 2 hours including figuring out how. just hit phpmyadmin website or google for phpmyadmin install on linux centos. thats what i did for my own test box. otherwise you will be perpetually trying to figure out how to do something native on linux but wont run right on your test box on win. 6 hours or less from now you should have your box completed, check the time and holla back.... oh use kde not gnome, kde desktop is best.
  8. http://pastebin.ca/652759 my final version... my products_groups are hard coded into this, 1, 7, 8 are my group ids... you should change these to your own. Also, theres a lot of additional tables of mine in this one, so youll need to rip them out. whoever cleans this up enough can make a contribution out of it, but please make it dynamically support the group ids.
  9. // and insert the new record if ($v_customer_price_1 != ''){ $result = tep_db_query(' INSERT INTO '.TABLE_PRODUCTS_GROUPS.' VALUES ( ' . $v_customer_group_id_1 . ', ' . $v_customer_price_1 . ', ' . $v_products_id . ' )' ); } you tried it like that right? and changed other ones like it
  10. i hear ya, i still dont have everything working with mine. I dont get why you guys are having issues if you have stock osc and this contrib.. it should work. Im just trying to come up with suggestions as i've had to figure out some things while getting this going on mine. but it worked out of the chute pretty much. I was really hoping that surfalot was going to be checking in on this thread and offer some assistance. I'm no pro, i need help too. Right now, mine just wont insert into products_groups.
  11. http://pastebin.ca/651470 is my current version... i have a lot more fields than most people, so dont use my version without modifying everything that i modified. You can use beyond compare 2 program to compare my version with the contribution version. I almost have this working perfectly... with wholesale groups and sppc per group. But not quite. If you find the block FROM ".TABLE_PRODUCTS." as p, ".TABLE_PRODUCTS_DESCRIPTION." as pd, ".TABLE_PRODUCTS_GROUPS." as pg, ".TABLE_CATEGORIES." as subc, ".TABLE_PRODUCTS_TO_CATEGORIES." as ptoc WHERE p.products_id = ptoc.products_id AND pd.products_id = p.products_id AND ptoc.categories_id = subc.categories_id AND pg.products_id = pd.products_id AND pg.customers_group_id = 7 " . $sql_filter; you'll see that i am hard coding in the group id 7, I have 3 group price levels... 1, 7, and 8. Can someone help me with a way to get all records for all 3 instead of just 1? Right now it repeats the values in my exported file for instance products_price1, products_price1_2, and products_price1_3 would all have the value from products_groups.products_price1 where products_id = 7 and not unique for each one. so close.
  12. you do have some products in your store right? um... one thing, i noticed that didnt appear to be standard field, i could be wrong ... see if you have products_upc field anywhere in your db. if not, remove $default_these[] = 'v_products_upc'; and see if that helps
  13. nothing exports? custom variations? do any of the quick links at the bottom work?
  14. dont use the sample file. export to your temp, or download it... then edit that file in excel, delete all but the top row and one record... save it as tab delimited, upload it to your temp folder, import it from ep from your temp folder. you should see New Product! or updated.
  15. mine currently looks like: // and insert the new record if ($v_customer_price_1 != ''){ $result = tep_db_query(' INSERT INTO '.TABLE_PRODUCTS_GROUPS.' VALUES ( ' . $v_customer_group_id_1 . ', ' . $v_customer_price_1 . ', ' . $v_products_id . ', ' . $v_products_price1_1 . ', ' . $v_products_price2_1 . ', ' . $v_products_price3_1 . ', ' . $v_products_price4_1 . ', ' . $v_products_price5_1 . ', ' . $v_products_price6_1 . ', ' . $v_products_price7_1 . ', ' . $v_products_price8_1 . ', ' . $v_products_price1_qty_1 . ', ' . $v_products_price2_qty_1 . ', ' . $v_products_price3_qty_1 . ', ' . $v_products_price4_qty_1 . ', ' . $v_products_price5_qty_1 . ', ' . $v_products_price6_qty_1 . ', ' . $v_products_price7_qty_1 . ', ' . $v_products_price8_qty_1 . ', ' . $v_products_qty_blocks_1 . ' )' ); } if ($v_customer_price_2 != ''){ $result = tep_db_query(' INSERT INTO '.TABLE_PRODUCTS_GROUPS.' VALUES ( ' . $v_customer_group_id_2 . ', ' . $v_customer_price_2 . ', ' . $v_products_id . ', ' . $v_products_price1_2 . ', ' . $v_products_price2_2 . ', ' . $v_products_price3_2 . ', ' . $v_products_price4_2 . ', ' . $v_products_price5_2 . ', ' . $v_products_price6_2 . ', ' . $v_products_price7_2 . ', ' . $v_products_price8_2 . ', ' . $v_products_price1_qty_2 . ', ' . $v_products_price2_qty_2 . ', ' . $v_products_price3_qty_2 . ', ' . $v_products_price4_qty_2 . ', ' . $v_products_price5_qty_2 . ', ' . $v_products_price6_qty_2 . ', ' . $v_products_price7_qty_2 . ', ' . $v_products_price8_qty_2 . ', ' . $v_products_qty_blocks_2 . ' )' ); } if ($v_customer_price_3 != ''){ $result = tep_db_query(' INSERT INTO '.TABLE_PRODUCTS_GROUPS.' VALUES ( ' . $v_customer_group_id_3 . ', ' . $v_customer_price_3 . ', ' . $v_products_id . ', ' . $v_products_price1_3 . ', ' . $v_products_price2_3 . ', ' . $v_products_price3_3 . ', ' . $v_products_price4_3 . ', ' . $v_products_price5_3 . ', ' . $v_products_price6_3 . ', ' . $v_products_price7_3 . ', ' . $v_products_price8_3 . ', ' . $v_products_price1_qty_3 . ', ' . $v_products_price2_qty_3 . ', ' . $v_products_price3_qty_3 . ', ' . $v_products_price4_qty_3 . ', ' . $v_products_price5_qty_3 . ', ' . $v_products_price6_qty_3 . ', ' . $v_products_price7_qty_3 . ', ' . $v_products_price8_qty_3 . ', ' . $v_products_qty_blocks_3 . ' )' ); } if ($v_customer_price_4 != ''){ $result = tep_db_query(' INSERT INTO '.TABLE_PRODUCTS_GROUPS.' VALUES ( ' . $v_customer_group_id_4 . ', ' . $v_customer_price_4 . ', ' . $v_products_id . ', ' . $v_products_price1_4 . ', ' . $v_products_price2_4 . ', ' . $v_products_price3_4 . ', ' . $v_products_price4_4 . ', ' . $v_products_price5_4 . ', ' . $v_products_price6_4 . ', ' . $v_products_price7_4 . ', ' . $v_products_price8_4 . ', ' . $v_products_price1_qty_4 . ', ' . $v_products_price2_qty_4 . ', ' . $v_products_price3_qty_4 . ', ' . $v_products_price4_qty_4 . ', ' . $v_products_price5_qty_4 . ', ' . $v_products_price6_qty_4 . ', ' . $v_products_price7_qty_4 . ', ' . $v_products_price8_qty_4 . ', ' . $v_products_qty_blocks_4 . ' )' ); } } // end: separate prices per customer (SPPC) module
×