Im trying to offer the customer free shipping when a certain coupon code is entered but it doesn't seem to work. I've tried various combinations but I think my logic is scewed up because it either does free shipping for everyone or no free shipping for everyone no matter what the coupon code is. I need to know how to call the coupon_id as I dont think mine is working right. Here is the code I added to the top of ps_checkout.php.
$coupon_id = mosGetParam( $_REQUEST, 'coupon_id', null );
if($coupon_id = '1') {
$PSHOP_SHIPPING_MODULES = Array( "free_shipping" );
include_once( CLASSPATH. "shipping/free_shipping.php" );
$this->_SHIPPING =& new free_shipping();
}
Did you or anyone ever figure this out?
I'm looking for this solution also
Anyone?