News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Free Shipping HACK

Started by Ram85, April 17, 2006, 16:01:20 PM

Previous topic - Next topic

Ram85

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();
}

Andrew

Did you or anyone ever figure this out?

Lynette

I'm looking for this solution also

Anyone?