Guest Posted January 5, 2005 Posted January 5, 2005 I have some products that are downloadable freebies and am trying to install this mod so that when the total is 'zero' the only options available are free shipping (download) and no payment options selected but I'm confused on this part and would appreciate help: Original line: $this->enabled = MODULE_SHIPPING_ITEM_STATUS; Changed to: // BOF: WebMakers.com Added: Free Payments and Shipping if ( tep_get_free_shipper($this->code) ) { $this->enabled = MODULE_SHIPPING_ITEM_STATUS; } // EOF: WebMakers.com Added: Free Payments and Shipping What I actually have in that area of my shipping php's is: $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false); So what I'm wondering is how do I wrap the mod around the " == 'True') ? true : false);" part of what's there? Would this work properly? // BOF: WebMakers.com Added: Free Payments and Shipping if ( tep_get_free_shipper($this->code) ) { $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false); } // EOF: WebMakers.com Added: Free Payments and Shipping Quote
Guest Posted January 12, 2005 Posted January 12, 2005 (edited) All right- I have this added and apparently working so my next question is- does anyone know why, when this is used, it sets the payment type as 'PayPal'? Does this have anything to do with this mod not having a sort order option? And, if so, can anyone suggest a resolution for it as I've tried cobbling some script together using examples from other pay modules to give this one a sort order/set status with no luck. Edited January 12, 2005 by quin Quote
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.
Note: Your post will require moderator approval before it will be visible.