Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Bob Terveuren

Members
  • Posts

    496
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Bob Terveuren

  1. Update - apologies to all - I am not getting any notifications to messages posted here so a PM would be best
  2. Hi there You would have to modify the core files to achieve this in 2.3.3.4 I'm afraid
  3. Hi - is the fee 'per item' or one fee 'per order' should there be a qualifying item in the cart?
  4. Thanks for this - was having the same problem with a different payment module
  5. Hi Have you tried the latest module from here: http://tech.dibspayment.com/shopmodules/oscommerce or try changing the lines above to if (MODULE_PAYMENT_DIBS_TEST == "YES") { $ process_button_string. = tep_draw_hidden_field ('test', 'yes'); } OR if (MODULE_PAYMENT_DIBS_TEST == "YES") { $ process_button_string. = tep_draw_hidden_field ('test', 1); }
  6. Hi I *think* that you used to be able to send aggegated totals to PayPal with osC ?? The paypal_standard now splits out the costs with the rounding error (which you'll also get in Magento, Drupal & others) you could try sending an aggregated total by editing in paypal_standard $parameters = array('cmd' => '_xclick', 'item_name' => STORE_NAME, 'shipping' => $this->format_raw($order->info['shipping_cost']), 'tax' => $this->format_raw($order->info['tax']), 'business' => MODULE_PAYMENT_PAYPAL_STANDARD_ID, 'amount' => $this->format_raw($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']), 'currency_code' => $currency, 'invoice' => substr($cart_PayPal_Standard_ID, strpos($cart_PayPal_Standard_ID, '-')+1), 'custom' => $customer_id, 'no_note' => '1', 'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', '', 'SSL', false, false), 'return' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'), 'cancel_return' => tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'), 'bn' => 'osCommerce22_Default_ST', 'paymentaction' => ((MODULE_PAYMENT_PAYPAL_STANDARD_TRANSACTION_METHOD == 'Sale') ? 'sale' : 'authorization')); change to: $parameters = array('cmd' => '_xclick', 'item_name' => STORE_NAME, 'business' => MODULE_PAYMENT_PAYPAL_STANDARD_ID, 'amount' => $this->format_raw($order->info['total']), 'currency_code' => $currency, 'invoice' => substr($cart_PayPal_Standard_ID, strpos($cart_PayPal_Standard_ID, '-')+1), 'custom' => $customer_id, 'no_note' => '1', 'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', '', 'SSL', false, false), 'return' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'), 'cancel_return' => tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'), 'bn' => 'osCommerce22_Default_ST', 'paymentaction' => ((MODULE_PAYMENT_PAYPAL_STANDARD_TRANSACTION_METHOD == 'Sale') ? 'sale' : 'authorization'));
  7. Hi there do the changes suggested here and you should find it works for you You can also send using test card 5431111111111111 - if you send an order total through less than 1.00 then the test server will fake a card refusal for you
  8. Hi You could adapt a Giftwrap module e.g. http://addons.oscommerce.com/info/8115 and change the wording (that one works in the checkout_shipping page but you could edit to appear in checkout_payment?
  9. Hi Try looking in the includes/modules/payment/filename.php file (where filename.php is the name of the file your sage setup is using - there's a fair few around so I can't be specific) Towards the top of that file there's the class constructor and in there you may find a lne starting with $this->form_action_url= That line will redirect the browser following checkout_confirmation.php rather than allow it to go to checkout_process.php - so if you have such a line try popping the new url in there. If you don't have such a line then look further through the code - you may spot a sage url in the function before_process() - again try the new url in there
  10. That'd work and a lot simpler than stripping out the old stuff - elegant! I use Beyond Compare from Scooter Software - had it for years
  11. Hi - I've just installed one of the versions of kgt discount codes (there appears to be at least two varieties available) and I can confirm that one of the downloads has code based on an install that has had the delivery date add-on previously installed.I think the manual install instructions were OK but if you ran a file comp between the add-on package and a vanilla osC then the delivery date stuff is apparent.I've attached a zip of a 2.3.3.4 install files with the kgt stuff copied in but minus the delivery date code - if you unzip it then run a file comp with your files then it should flag up the extra code so you can comment out or remove the extra code
  12. Hi You could convert the custom field to a standard attribute to wihich you could then add the appropriate cost to - that would the just add the extra cost into the normal order totals. Otherwise you'd need to create a new order total module and put it in the folder catalog/includes/modules/order_total/ - that would then need some code in it to look at ech product in the cart and add the amounts from your custom field. Provided that is setup correctly then the order total will reflect it and that order_total amount would be passed through to Authorize.net
  13. @@srphotos the behaviour you describe re PayPal - are you using PayPal express?
  14. This is the support thread for the First Data Connect Hosted Page Payment Module. http://addons.oscommerce.com/info/8969 This is designed for UK merchants to use the FDMS gateway - full installation details are in the package. Please post any questions relating to the code/installation here - I cannot assist with any FDMS Merchant Account setup queries.
  15. Hi You could try adding that chunk of code // check order total minimum begin if ((MIN_ORDER_AMOUNT > 0) && ($order->info['total'] < MIN_ORDER_AMOUNT)) tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . urlencode(sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT, MIN_ORDER_AMOUNT, MIN_ORDER_AMOUNT - $order->info['total'])), 'NONSSL')); // check order total minimum end Into checkout_shipping.php so folks would get caught there and returned to the cart try adding it after require(DIR_WS_CLASSES . 'order.php'); $order = new order; That's not going to beat paypal_express though so the idea there would be to use that chunk of code to intercept the call to PayPal express/pause checkout catalog\ext\modules\payment\paypal\express.php add that chunk in at line 120 (so after $order gets created and before shipping) Ideally you'd want to pop it into the cart page to hide the checkout bitton entirely but the paypal express button woudl still display as it sits in a world of it's own with respect to <div><p>and<span>
  16. Hi I've not used that code but it sounds like it depends on the order status being equal to one that allows downloads? If so then what you need is to set the status in the payment module for successful purchases to match the one that the downloads controller allows?
  17. Hi I can't see any reason why they are turning up empty other than lines 118 and 119 - 119 is submitting the page to itself so your $_POST data is being sent to checkout_payment , they're valid so line 80 redirects to checkout_confirmation but minus the $_POST stuff You'd either need to work out a way of forwarding the $_POST at line 80 (maybe plug it into a $_SESSSION - but then you'd need to unset that all over the place) or else revert to line 118 and put the error checking stuff at the top of checkout_confirmation Something like $error=false; if ($HTTP_POST_VARS['sisow_bank'] == '') { $error = true; $messageStack->add('checkout_payment', ENTRY_SISOWIDEAL_ERROR); } //same here for the MATC //then if $error == true //redirect here back to checkout_payment
  18. Hah - Carine 1 Me Nil - she's nailed it - there's two different things going on with the extra code you have - add_prods in product_info.php is not working - the bit in application_top is OK (been looking at that and on a vanilla 2.3.3 it will return to the product page if the correct ID is hard coded) Change the form action naming in product_info.php from add_prods as suggested <td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, 'action=add_prods&products_id=' . $HTTP_GET_VARS['products_id']), 'POST'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
  19. Hi Looking at the product_info code try commenting out that line reset($attribs); See what that does - it looks awry to me
  20. Hi An idea would be if you hooked in using jQuery (I'm not able to code right now but here's the gist) jQuery - document ready function stuff remove attr action from form checkout_payment substitute validation stuff (i.e. dropdown selected) if OK then replace the form action and submit with jQuery
  21. Hi there's a version of osCommerce that somebody has shoehorned into a Word Press plugin (it's called WP Online Store) - it works like a normal WP plugin and as far as I know most of the code used is standard osC - where it differs is that if you upload a normal osC payment module then it won't be visible in the admin - you have to add this to the top of the main module file: Standard osC includes/modules/payment/cod.php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class cod { var $code, $title, $description, $enabled; // class constructor function cod() { Now for WP version /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ $cod_code = 'All right reserved by IMC group'; /*if(!has_filter('the_content','wp_gold_store_filter')){ echo 'You need to install WP payment plugin. Please download it from <a href="http://wponlinestore.com/">IMC Media Group</a>'; exit; }*/ class cod { var $code, $title, $description, $enabled; // class constructor function cod() { The bit you need is $cod_code = 'All right reserved by IMC group'; - whichever module you want to add in just create a line like that and change the $cod_ bit to whatever the class name is e.g. $authorizenet_cc_aim_code = 'All right reserved by IMC group'; That should get the module visible in admin so you can install it - I've not had anything else to do with WP Online Store other than install a payment module for a client so I couldn't tell you how else it differs from a standard osC
  22. Hi which module are you using for Realex?
  23. http://addons.oscommerce.com/info/3346 ?
  24. Hi line 222 in reviews.php is $rInfo_array = array_merge($reviews, $review_info, $products_image) Error is telling you that $ products_image is not an array so maybe the lines above $products_image_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$reviews['products_id'] . "'"); $products_image = tep_db_fetch_array($products_image_query); are not getting a result (maybe a product with no image?)
  25. Hi - try removing all payment modules shown in the admin control panel and then go to the configuration table in your database - look for the configuration_key equal to MODULE_PAYMENT_INSTALLED and make sure that the configuration_value for that key is empty. Then try reinstalling your selected modules
×
×
  • Create New...