Shipping on Gift Certificates

Version 2.81 and higher uses the Mals Gift Vouchers for its certificate system. This version applies certificates as a payment type, and you will not need to modify anything to keep shipping off a gift certificate.

If you're using an earlier version with the old style gift certificates, you will need to make the following modifications to remove shipping from certificates:

Open the order.php page in the /go/ folder and find the lines:

// IF GIFT CERTIFICATE
 if ($giftcert == "GC")
 {

A little way down from that, find the line:

$gotolink .= "&price=$splitprice[0]&qty=1";

and add whatever you want onto the end, after qty=1. For instance, if you want to set the units price to zero and the tax field to zero, you'd change that above line to:

$gotolink .= "&price=$splitprice[0]&qty=1&units=0&tax=0&noship=1";

IMPORTANT! You won't be able to use this modification if you aren't using a shipping type that requires units. You would need to modify Mals so that it uses units, not quantities, for shipping. If you want to update your site so that all products have a units value of 1, to bypass the quantities, you can do one of the following (along with the above modification):

Modify the order page.You'll need to open the order.php page in the /go/ folder, and modify the string to submit information to Mals. Towards bottom of the page, you'll see the line:

$gotolink .= "&units=$units";

Change that to:

$gotolink .= "&units=1";

to submit one unit per quantity. (Change the number if you wish.) Note that a units value of one will always be sent to the cart. We recommend this method if the client wants a set units value for all items. You will not be able to override this amount.

- OR -

Globally update units. In phpMyAdmin, select the SQL tab and type:

UPDATE opc_items SET Units='1';

to add one unit to each item. If you go this route, you'll also need to make sure that after the update, every time the client adds a new product, a units value is also added. Otherwise, that item will not have a shipping amount. We recommend this method if the client needs to have some items without shipping costs (and the client can then set the units to zero for those items).