osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Available payment options related to selected shipping option

This is a discussion on Available payment options related to selected shipping option within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; So, here is my solution in case anyone else is interested on a quick hack. I just modified by hand ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #11  
Old 10-06-2007, 12:39 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 346
Thanks: 9
Thanked 27 Times in 26 Posts
Rep Power: 3
MindTwist has a spectacular aura aboutMindTwist has a spectacular aura about
Default Re: Available payment options related to selected shipping option

So, here is my solution in case anyone else is interested on a quick hack. I just modified by hand the payment modules I needed like the following example.

On any given payment module, on function update_status() replace at the beginning of the function "global $order;" with "global $order, $shipping;", and add just before the end of the function:

Code:
//MINDTWIST disable payment module on a given shipping selection
//print_r($shipping);
        if ($shipping[id] == 'spu_spu') {
          $this->enabled = false;
        }
I can not really tell you were the shipping names come from, spu.php became spu_spu, table.php became table_1.php ... so if you want to know exactly what you need to use instead of 'spu_spu' on the example, just uncomment the previous line, make a test purchase, and pick the shipping method you want.
__________________
MindTwist of Twisted Reality and Twisted Tienda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Advice needed please? Payment options daffodil osCMax v2 Customization/Mods 1 12-22-2006 12:22 PM
payment options through admin Dumb_Question osCMax v2 Features Discussion 4 12-31-2005 11:18 PM
Removing Login options and only using PWA option xtech osCMax v1.7 General Mods Discussion 1 05-20-2004 11:31 PM
Help! Error message during checkout related to shipping hittlehottle osCommerce 2.2 Modification Help 1 04-28-2004 08:38 AM
Shipping Options/Individual Shipping Anonymous osCMax v1.7 Discussion 0 04-01-2004 02:10 PM


All times are GMT -8. The time now is 05:19 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax