Removing All Shipping Information
In Cartweaver you can disable shipping, however that only disables the shipping charge. It does not disable shipping address information. If you want to remove all shipping information from the main cart display, make the following file changes below:
In CWIncConfirmation.php, take line 104 and move it up to 91 and add another IF statement to hide the shipping info:
line 91 was:
if($rsCWOrder_recordCount != 0) {
new:
if($rsCWOrder_recordCount != 0) {
$emailContents .= "\r\nOrder ID: " . $row_rsCWOrder["order_ID"];
if($_SESSION["enableShipping"] == "1") {
Then, close the IF on line 117:
was
/* Output Order Table */ ?>
new:
}
/* Output Order Table */ ?>
Move to CWIncOrderForm.php. Add an if statement after line 192:
was:
</tr>
new:
</tr>
<?php if($_SESSION["enableShipping"] == "1") { ?>
then after line 260, add the closing to the IF:
was:
</tr>
new:
</tr>
<?php }else{
echo('<input type="hidden" name="shipSame" value="Same"/>');
} ?>
Finally, on CWIncShowCart, you will need to add conditional logic around EVERY 3rd table cell. First row looks like this:
<table class="tabularData">
<tr>
<th align="right"> </th>
<th>Billing</th>
<th>Shipping</th>
</tr>
change to:
<table class="tabularData">
<tr>
<th align="right"> </th>
<th>Billing</th>
<?php if($_SESSION["enableShipping"] == "1") { ?>
<th>Shipping</th>
<?php } ?>
</tr>
Do this to each third cell in that table.
That should be all you need to do.