Tom Muck

Alpha Dog Blues Band
Home page
All articles
All Extensions | Extension News | Extension FAQs | Customer Login
Books authored or co-authored by Tom Muck
Extensions, books, and other products | Customer Login
Your current cart contents
Tom-Muck.com Blog | CMXTraneous Blog | Flash Remoting Blog
About the site

Remove Shipping

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">&nbsp;</th>
    <th>Billing</th>
    <th>Shipping</th>
  </tr>

change to:

<table class="tabularData">
  <tr>
    <th align="right">&nbsp;</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.

Back to Cartweaver PHP FAQ, code changes, and samples

Pay me securely with your Visa, MasterCard, Discover, or American Express card through PayPal!
Pay me securely with your Visa, MasterCard, Discover, or American Express card through PayPal!
About | Privacy Policy | Contact | License Agreement | ©2002-2025 Tom Muck | Dreamweaver Extensions