Guest Posted March 19, 2004 Share Posted March 19, 2004 Just thought I would start a thread for anyone with questions regarding this contibution. Contribution Switch Quote Link to comment Share on other sites More sharing options...
dimports Posted March 20, 2004 Share Posted March 20, 2004 Can this work for shipping modules as well? What I'm trying to do is only have one shipping module available to the customer at checkout. I have Indivdual Shipping Cost contribution installed. The problem is if I have assigned a fixed shipping price for a specific product, it will still give the customer all the shipping options whereas I'd like the customer to be forced to use the fixed shipping price. This is a freight shipping issue so here's what I'm trying to do: if (individual shipping cost assigned to product) //Use Indiv Shipping { disable FedEx module disable Table Rate } elseif (weight < 145lbs) //Use FedEx module { disable Table Rate } elseif (weight > 145 lbs) //Use Freight Table Rate { disable FedEx } Would this contribution help me in this case? Thanks for your efforts. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 20, 2004 Share Posted March 20, 2004 It could switch on and off shipping modules however this would be silly as you can already do that from the admin interface. My contributions is a blanket on or off switch. In your case you would need to add the conditions to your checkout_shipping.php page to allow for the various methods. Not unsimilar to what you have but obviously you would need to start it by gathering the conditional in formation prior to the IF statements. There is a free shipping contribution that has a similar process where by it offers free shipping only if the customer reaches a certain dollar level find this and you'll get an idea of what you should be doing. Sorry I couldn't help further. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2005 Share Posted April 26, 2005 Hi I am trying to install this on MS 2 (a highly modified version w/ Contribution Control & Bookmark MOD 0.1.4 MS2 installed - among other things) But when I change the application_top.php file - and upload the file for the mod - I get this error: Fatal error: Call to undefined function: tep_db_query() in /home/mydir/public_html/admin/includes/functions/contribution_status.php on line 32 any ideas Quote Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2005 Share Posted April 26, 2005 Oh just to clarify I also amended the database_tables.php file Quote Link to comment Share on other sites More sharing options...
owl666 Posted June 10, 2006 Share Posted June 10, 2006 Hi there, i'm currently trying to use Contribs with Contribution Switch... What exactly I have to do? 1. Install "Contribution Control & Bookmark" && "Contribution Switch", 2. after that: inserting the requ. data (e.g. the contrib-ID 3291, and the contrib-name 'Impressum / Imprint') to Contrib Control & Bookmark... -> it's set to 'disabled' 3. making the change, itself... -> e.g. the "add <?php require(DIR_WS_BOXES . 'impressum.php'); ?>" must be: "<?php if (tep_session_is_registered('contrib_osC ID' )) { require(DIR_WS_BOXES . 'impressum.php'); } ?> to be switchable? 4. activate the contrib in Contrib Control & Bookmark and it should work from this time on, or did i miss something? At least here it isn't working... Contrib Control works, DB-changes are done etc, but the switcher isn't working correctly... Could someone please help me, with this issue? Thanks in advance. Greets, owl Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.