osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Enable/Disable module frustration - help needed please!

This is a discussion on Enable/Disable module frustration - help needed please! within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm trying to get some shipping modules to appear/disappear when certain order value/weight conditions are met - eg if the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-08-2004, 09:26 AM
Member
 
Join Date: May 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seank123
Default Enable/Disable module frustration - help needed please!

I'm trying to get some shipping modules to appear/disappear when certain order value/weight conditions are met - eg if the order is worth more than £25 or weighs more than 2Kg disable the module, if it's less than both of those values, then enable it.

I have the following:

Quote:
if ($order->info['total'] < 25) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
}
This works perfectly for the Flat Rate shipping module (when the basket is less than £25, the module appears - when it goes over, it vanishes - brilliant!)


BUT, if I put the same code in another module (UK Special Delivery from the contributions section - being careful to chage the MODULE_SHIPPING_FLAT_STATUS bit to match the line already in the module of course...) it doesn't work!

The Flat Rate version works perfectly, the other doesn't ??

Can anyone shed any light on this please - I'm tearing my hair out trying to sort it - it's only this that's stopping the site from going live!

Many, many thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

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
Help needed with Payment module code - Camtech emagineitdev osCommerce 2.2 Modification Help 0 08-03-2006 04:02 AM
How to disable advanced search? Bennyfax osCMax v2 Customization/Mods 0 05-15-2006 12:20 PM
Enable/ Disable Categories Mod - Little help from my friends JasonM osCMax v1.7 General Mods Discussion 2 09-14-2005 04:34 PM
Enable the coolmenu and the dhtml catalog still shows on blum osCMax v1.7 Discussion 5 01-21-2005 08:27 AM
Is there a Mod to Disable\Enable Manufacturers? Anonymous osCMax v1.7 General Mods Discussion 1 02-29-2004 02:20 AM


All times are GMT -8. The time now is 10:06 AM.


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