Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Contribution Switch


Guest

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 year later...

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

Link to comment
Share on other sites

  • 1 year later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...