Glossary Item Box

Squirrelcart v6.1.0

v3.4.0

Overview

This page has been written as a guide to aid you in upgrading your site from v3.0.0 to v3.4.0 and after. Please read this page in its entirety before attempting to upgrade.

FedEx Web Services

FedEx Ship Manager Direct has been replaced by FedEx Web Services. If you are upgrading from a version prior to v3.3.7 and have FedEx Ship Manager Direct enabled, you will need to follow the instructions for enabling FedEx Web Services after your upgrade is completed.

Theme and Template Changes

If you are using a custom version of any of the below template files, make the changes outlined for the custom version of that file inside your custom theme folder (Example: squirrelcart/themes/YOURTHEMENAME). If you are not using a custom version of that file you do not need to make any changes. This section is a guide only. If a v3.4.0 template file has a lot of changes, you are probably better off reverting to the default version by removing your custom version of the same file. 

account_choice.tpl.php

  1. Locate this code towards the top of the file:
    <div class="acct_choice_new">
     <div class="inner">
      <img src="<?php print $New_Image['dyn'] ?>" width="<?php print $New_Image['width'] ?>" height="<?php print $New_Image['height'] ?>" alt="New Account" />
      <h4><a href="<?php print $New_Account_URL ?>">Click here to create a free user account!</a></h4>
      <p>Why create an account? With a user account you can view your order history, check shipment status, and make future
      purchases without having to type your address each time.</p>
     </div>
    </div>
  2. Directly before that code, add this:
    <?php if ($Show_New_Account): ?>
  3. Directly after that code, add this:
    <?php endif; ?>
  4. Locate this line:
    <?php if (!$Allow_Skip): ?>
  5. Change that line to:
    <?php if (!$Allow_Skip && $Show_New_Account): ?>

 

account_options_nav.tpl.php

  1. Locate this code:
    <li><a class="<?php print $New_Account_Class?>" href="<?php print $New_Account_URL?>" >Get an Account</a></li>
  2. Change to:
    <?php if ($Show_Create_Account_Link): ?>
        <li><a class="<?php print $New_Account_Class?>" href="<?php print $New_Account_URL?>" >Get an Account</a></li>
    <?php endif; ?>

 

category.tpl.php

  1. Locate this code:
    <option value="price_lowest"  <?php print $sort_selected['price_lowest']?> >regular price (lowest)</option>
  2. Add this directly above:
    <?php if ($cat_rn == 4):?>
        <option value="purchase_desc"  <?php print $sort_selected['purchase_desc']?> >date purchased (most recent)</option>
        <option value="purchase_asc"  <?php print $sort_selected['purchase_asc']?> >date purchased (oldest)</option>
    <?php endif;?>

 

 

checkout_pay_order_summary.tpl.php

If you are using VAT (used in the European Union), we recommend reverting this template (delete it from your custom theme folder if present).

 

checkout_view.tpl.php

If using VAT (used in the European Union), we recommend reverting this template (delete it from your custom theme folder if present). If not using VAT, here are the recommended changes for this template:

  1. Locate this line:
    <div class="you_save">You save <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!</div>
  2. Replace with:
    <div class="you_save">
     You save <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!
     <div class="discount_info">
      <?php if ($Item['Coupon_Code']): ?>
       <span class="item_coupon_code">Code: <?php print $Item['Coupon_Code'] ?></span>
      <?php endif; ?>
      <?php if (sc_is_admin()): ?>
       <span class="discount_rn">
        Discount #<?php print $Item['Discount_Number'] ?>
       </span>
      <?php endif; ?>
     </div>
    </div>
  3. Locate this line:

    <h3><?php print $Discount['Name']?></h3>
  4. Add this above it:
    <div class="order_discount_info">
     <?php if ($Discount['Coupon']): ?>
      Code: <strong><?php print $Discount['Coupon'] ?></strong><br/>
     <?php endif; ?>
     <?php if (sc_is_admin()): ?>
      Discount #<?php print $Discount['record_number'] ?>
     <?php endif;?>
    </div>

 

 

option_checkbox.tpl.php

  1. Find this:
    <?php print $Option_Field_Name?>
  2. Replace with:
    <?php print $Option_Field_ID?>

 

 

option_file.tpl.php

If you are using a custom version of this temlate file, we recommend reverting this file (delete it from your custom theme folder if present).

 

 

option_radio.tpl.php

  1. Find this line:
    <input class="qt_price-<?php print $Price_Attribute?> qt_price_point-<?php print $Price_Point?>" type="radio" name="<?php print $Option_Field_Name?>" id="<?php print $Option_Field_Name.'-'.$i ?>" value="<?php print $Choice_Value?>" <?php print $Choice_Selected?> /><span><?php print $Choice_Text?></span>
  2. Replace with:
    <input class="qt_price-<?php print $Price_Attribute?> qt_price_point-<?php print $Price_Point?>" type="radio" name="<?php print $Option_Field_Name?>" id="<?php print $Option_Field_ID ?>" value="<?php print $Choice_Value?>" <?php print $Choice_Selected?> /><span><?php print $Choice_Text?></span>

 

option_select.tpl.php

  1. Find this line:
    <select class="<?php print $Error_Class?>" name="<?php print $Option_Field_Name?>" >
  2. Replace with:
    <select class="<?php print $Error_Class?>" id="<?php print $Option_Field_ID ?>" name="<?php print $Option_Field_Name?>" >

 

 

option_text.tpl.php

  1. Find all occurrences of this:
    id="$Option_Field_Name
  2. Replace with:
    id="$Option_Field_ID
Do NOT replace occurrences of: name="$Option_Field_Name"

 

option_textarea.tpl.php

  1. Find all occurrences of this:
    id="$Option_Field_Name
  2. Replace with:
    id="$Option_Field_ID
  3. Find this line:
    <textarea name="<?php print $Option_Field_Name?>" class="<?php print $Error_Class?> qt_price-<?php print $Price_Attribute?> qt_price_point-<?php print $Price_Point?>" id="<?php print $Option_Field_Name?>"  rows="10" cols="30" style="width: <?php print $Choice_Width?>px; height: <?php print $Choice_Height?>px;" ><?php print $Choice_Value?></textarea>
  4. Replace with:
    <textarea name="<?php print $Option_Field_Name?>" class="<?php if ($Max_Length) print 'maxlength ' ?><?php print $Error_Class?> qt_price-<?php print $Price_Attribute?> qt_price_point-<?php print $Price_Point?>" id="<?php print $Option_Field_ID ?>"  rows="10" cols="30" style="width: <?php print $Choice_Width?>px; height: <?php print $Choice_Height?>px;" ><?php print $Choice_Value?></textarea>

 

 

order_detail.tpl.php

  1. Find this line:
    <div class="you_save">You save <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!</div>
  2. Replace with:
    <div class="you_save">
    You save <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!
    <div class="discount_info">
    <?php if ($Item['Coupon_Code']): ?>
    <span class="item_coupon_code">Code: <?php print $Item['Coupon_Code'] ?></span>
    <?php endif; ?>
    <?php if (sc_is_admin()): ?>
    <span class="discount_rn">
    Discount #<?php print $Item['Discount_Number'] ?>
    </span>
    <?php endif; ?>
    </div>
    </div>
  3. Find this line:
    VAT (Value Added Tax):<br />
  4. Replace with:
    <div class="vat">VAT (Value Added Tax) included:</div>
  5. Find this line:
    <?php print sc_price($VAT_Total) ?><br />
  6. Replace with:
    <div class="vat"><?php print sc_price($VAT_Total) ?></div>
  7. Find this code:
    <h3><?php print $Discount['Name']?></h3>
    <?php if ($Discount['Image']): ?>
     <img class="discount_img" src="<?php print $Discount['Image']['dyn'] ?>" width="<?php print $Discount['Image']['width'] ?>" height="<?php print $Discount['Image']['height'] ?>" alt="<?php print $Discount['Image']['alt'] ?>" />
    <?php endif; ?>
    <?php print $Discount['Description'] ?>
    <div class="total_svgs">Total savings with this discount: <?php print sc_price($Discount['Savings_Amt']) ?>!</div>
  8. Replace with:
    <div class="order_discount_info">
     <?php if ($Discount['Coupon']): ?>
      Code: <strong><?php print $Discount['Coupon'] ?></strong><br/>
     <?php endif; ?>
     <?php if (sc_is_admin()): ?>
      Discount #<?php print $Discount['record_number'] ?>
     <?php endif;?>
    </div>
    <h3><?php print $Discount['Name']?></h3>
    <div class="total_svgs">
     Total savings with this discount: <?php print sc_price($Discount['Savings_Amt']) ?> (<?php print $Discount['Savings_Percent'] ?>%)!
    </div>

 

 

order_detail_admin.tpl.php

  1. Find this code:
    Customer saved <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!
    <?php if ($Item['Coupon_Code']): ?>
    <br/>Coupon code used: <?php print $Item['Coupon_Code'] ?>
    <?php endif; ?>
  2. Replace with:
    You save <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!
    <div class="discount_info">
     <?php if ($Item['Coupon_Code']): ?>
      <span class="item_coupon_code">Code: <?php print $Item['Coupon_Code'] ?></span>
     <?php endif; ?>
     <?php if (sc_is_admin()): ?>
      <a class="discount_rn" href="<?php SC_CP_PAGE_HTTP ?>?edit_records=1&amp;table=Discounts&amp;selected_record_number=<?php print $Item['Discount_Number'] ?>">
       Discount #<?php print $Item['Discount_Number'] ?>
      </a>
     <?php endif; ?>
    </div>
  3. Find this line:
    VAT (Value Added Tax):<br />
  4. Replace with:
    <div class="vat">VAT (Value Added Tax) included:</div>
  5. Find this line:
    <?php print sc_price($VAT_Total) ?><br />
  6. Replace with:
    <div class="vat"><?php print sc_price($VAT_Total) ?></div>
  7. Find this code:
    <h3><?php print $Discount['Name']?></h3>
    <?php if ($Discount['Image']): ?>
     <img class="discount_img" src="<?php print $Discount['Image']['dyn'] ?>" width="<?php print $Discount['Image']['width'] ?>" height="<?php print $Discount['Image']['height'] ?>" alt="<?php print $Discount['Image']['alt'] ?>" />
    <?php endif; ?>
    <?php print $Discount['Description'] ?>
    <div class="total_svgs">Total savings with this discount: <?php print sc_price($Discount['Savings_Amt']) ?>!</div>

  8. Replace with:
    <div class="order_discount_info">
     <?php if ($Discount['Coupon']): ?>
      Code: <strong><?php print $Discount['Coupon'] ?></strong><br/>
     <?php endif; ?>
     <?php if (sc_is_admin()): ?>
      <a href="<?php SC_CP_PAGE_HTTP ?>?edit_records=1&amp;table=Discounts&amp;selected_record_number=<?php print $Discount['record_number'] ?>">
       Discount #<?php print $Discount['record_number'] ?>
      </a>
     <?php endif;?>
    </div>
    <h3><?php print $Discount['Name']?></h3>
    <div class="total_svgs">
     Total savings with this discount: <?php print sc_price($Discount['Savings_Amt']) ?> (<?php print $Discount['Savings_Percent'] ?>%)!
    </div>

 

 

order_detail_printable.tpl.php

  1. Locate this code towards the top of the file:
    body {
     background-color: #fff;
     background-image: none;
    }
      
    .vcard_button {
     display: none;
    }
  2. Change to:
    body {
      background-color: #fff;
      background-image: none;
      font: 12px Tahoma, Geneva, sans-serif;
    }

    .address_box h4,
    .address_box address,
    #sc th {
     font: 12px Tahoma, Geneva, sans-serif;
     padding: 4px;
     height: auto;
    }
      
    .address_box address {
     padding: 4px;
     margin: 0;
     font-size: 12px;
    }
      
    .address_boxes .bill {
     margin-right: 12px;
    }
      
    .cart_table a.prod_name {
     font-size: 12px;
    }  
     
    .cart_table_outer {
     padding: 0;
    }
      
    .vcard_button,
    .addr_footer,
    .addr_edit,
    #print_friendly {
     display: none;
    }

 

 

order_email_customer_html.tpl.php

  1. Locate this code:
    body {
     background-color: #fff;
     background-image: none;
  2. Change to:
    body {
     background-image: url(<?php print SC_STORE_DIR ?>/squirrelcart/images/blank.gif);
     background-color: #fff;
    }
  3. Locate this code:
    Customer saved <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!
    <?php if ($Item['Coupon_Code']): ?>
    <br/>Coupon code used: <?php print $Item['Coupon_Code'] ?>
    <?php endif; ?>
  4. Change to:
    You save <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!
    <div class="discount_info">
     <?php if ($Item['Coupon_Code']): ?>
      <span class="item_coupon_code">Code: <?php print $Item['Coupon_Code'] ?></span>
     <?php endif; ?>
     <?php if (sc_is_admin()): ?>
      <span class="discount_rn">
       Discount #<?php print $Item['Discount_Number'] ?>
      </span>
     <?php endif; ?>
    </div>
  5. Locate this code:
    VAT (Value Added Tax):<br />
  6. Change to:
    <div class="vat">VAT (Value Added Tax) included:</div>
  7. Locate this code:
    <?php print sc_price($VAT_Total) ?><br />
  8. Change to:
    <div class="vat"><?php print sc_price($VAT_Total) ?></div>
  9. Locate this code:
    <h3><?php print $Discount['Name']?></h3>
    <?php if ($Discount['Image']): ?>
     <img class="discount_img" src="<?php print $Discount['Image']['dyn'] ?>" width="<?php print $Discount['Image']['width'] ?>" height="<?php print $Discount['Image']['height'] ?>" alt="<?php print $Discount['Image']['alt'] ?>" />
    <?php endif; ?>
    <?php print $Discount['Description'] ?>
    <div class="total_svgs">Total savings with this discount: <?php print sc_price($Discount['Savings_Amt']) ?>!</div>
  10. Change to:
    <div class="order_discount_info">
     <?php if ($Discount['Coupon']): ?>
      Code: <strong><?php print $Discount['Coupon'] ?></strong><br/>
     <?php endif; ?>
     <?php if (sc_is_admin()): ?>
      Discount #<?php print $Discount['record_number'] ?>
     <?php endif;?>
    </div>
    <h3><?php print $Discount['Name']?></h3>
    <div class="total_svgs">
     Total savings with this discount: <?php print sc_price($Discount['Savings_Amt']) ?> (<?php print $Discount['Savings_Percent'] ?>%)!
    </div>

 

 

order_email_customer_text.tpl.php

  1. Locate this code:
    VAT total: <?php print sc_price($VAT_Total, 'text') ?>
  2. Change to:
    VAT total (included): <?php print sc_price($VAT_Total, 'text') ?>
  3. Locate this code:
    (<?php print $Item['Quantity'] ?>) <?php print $Item['Name'] ?><?php if (!$Item['Hide_Base_Price']):?> @ <?php print sc_price($Item['Base_Price'], 'text') ?><?php endif;?>
  4. Change to:
    (<?php print $Item['Quantity'] ?>) <?php print $Item['Name'] ?><?php if (!$Item['Hide_Base_Price']):?> @ <?php print sc_price($Item['Base_Price'], 'text') ?><?php endif;?><?php if($Item['Savings_Amount']):?> (<?php print $Item['Savings_Percent'] ?>% off<?php if ($Item['Coupon_Code']): ?>, code <?php print $Item['Coupon_Code'] ?><?php endif; ?>)<?php endif;?>
  5. Locate this code:
    Email: <?php print $Bill_Email_Address ?>
  6. Add this after:
    <?php if (!empty($Discounts)): $Discount = $Discounts[0]; ?> 
    Order Based Discounts
    --------------------------------
    <?php print $Discount['Name']?>
    Total savings with this discount: <?php print sc_price($Discount['Savings_Amt'], 'text') ?> (<?php print $Discount['Savings_Percent'] ?>%)
    <?php if ($Discount['Coupon']): ?>Code: <?php print $Discount['Coupon'] ?><?php endif; ?>
    <?php endif; ?>

 

 

order_email_merchant_html.tpl.php

  1. Locate this code:
    body {
     background-color: #fff;
     background-image: none;
    }
  2. Change to:
    body {
     background-image: url(<?php print SC_STORE_DIR ?>/squirrelcart/images/blank.gif);
     background-color: #fff;
    }
  3. Locate this code:
    Customer saved <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!
    <?php if ($Item['Coupon_Code']): ?>
    <br/>Coupon code used: <?php print $Item['Coupon_Code'] ?>
    <?php endif; ?>
  4. Change to:
    You save <?php print sc_price($Item['Savings_Amount']) ?> (<?php print $Item['Savings_Percent'] ?>%)!
    <div class="discount_info">
     <?php if ($Item['Coupon_Code']): ?>
      <span class="item_coupon_code">Code: <?php print $Item['Coupon_Code'] ?></span>
     <?php endif; ?>
     <?php if (sc_is_admin()): ?>
      <span class="discount_rn">
       Discount #<?php print $Item['Discount_Number'] ?>
      </span>
     <?php endif; ?>
    </div>
  5. Locate this line:
    VAT (Value Added Tax):<br />
  6. Change to:
    <div class="vat">VAT (Value Added Tax) included:</div>
  7. Locate this line:
    <?php print sc_price($VAT_Total) ?><br />
  8. Change to:
    <div class="vat"><?php print sc_price($VAT_Total) ?></div>
  9. Locate this code:
    <div class="cart_discount <?php print $Discount['Instance'] ?>">
     <h3><?php print $Discount['Name']?></h3>
     <?php if ($Discount['Image']): ?>
      <img class="discount_img" src="<?php print $Discount['Image']['dyn'] ?>" width="<?php print $Discount['Image']['width'] ?>" height="<?php print $Discount['Image']['height'] ?>" alt="<?php print $Discount['Image']['alt'] ?>" />
     <?php endif; ?>
     <?php print $Discount['Description'] ?>
     <div class="total_svgs">Total savings with this discount: <?php print sc_price($Discount['Savings_Amt']) ?>!</div>
    </div>
  10. Change to:
    <div class="order_discount_info">
     <?php if ($Discount['Coupon']): ?>
      Code: <strong><?php print $Discount['Coupon'] ?></strong><br/>
     <?php endif; ?>
     <?php if (sc_is_admin()): ?>
      Discount #<?php print $Discount['record_number'] ?>
     <?php endif;?>
    </div>
    <h3><?php print $Discount['Name']?></h3>
    <div class="total_svgs">
     Total savings with this discount: <?php print sc_price($Discount['Savings_Amt']) ?> (<?php print $Discount['Savings_Percent'] ?>%)!
    </div>

 

 

 

order_email_merchant_text.tpl.php

  1. Locate this code:
    VAT total: <?php print sc_price($VAT_Total, 'text') ?>
  2. Change to:
    VAT total (included): <?php print sc_price($VAT_Total, 'text') ?>
  3. Locate this line:
    (<?php print $Item['Quantity'] ?>) <?php print $Item['Name'] ?><?php if (!$Item['Hide_Base_Price']):?> @ <?php print sc_price($Item['Base_Price'], 'text') ?><?php endif;?>
  4. Change to:
    (<?php print $Item['Quantity'] ?>) <?php print $Item['Name'] ?><?php if (!$Item['Hide_Base_Price']):?> @ <?php print sc_price($Item['Base_Price'], 'text') ?><?php endif;?><?php if($Item['Savings_Amount']):?> (<?php print $Item['Savings_Percent'] ?>% off<?php if ($Item['Coupon_Code']): ?>, code <?php print $Item['Coupon_Code'] ?><?php endif; ?>)<?php endif;?>
  5. Locate this code:
    Payment Info
    --------------------------------
  6. Add this before it:
    <?php if (!empty($Discounts)): $Discount = $Discounts[0]; ?> 
    Order Based Discounts
    --------------------------------
    <?php print $Discount['Name']?>
    Total savings with this discount: <?php print sc_price($Discount['Savings_Amt'], 'text') ?> (<?php print $Discount['Savings_Percent'] ?>%)
    <?php if ($Discount['Coupon']): ?>Code: <?php print $Discount['Coupon'] ?><?php endif; ?>
    Discount #<?php print $Discount['record_number']?>
    <?php endif; ?>

 

 

 

product_detail.tpl.php

  1. Locate this code towards the top of the file:
    <?php print sc_msg($Add_to_Cart_Message,'success') ?>
  2. Add this before it:
    <?php if ($_GET['patc']) print sc_msg('To purchase this item, choose your options below and click <strong>Add to Cart</strong>') ?>
  3. Locate this line:
    <div class="prod_section buy_now">
  4. Add this before it:
    <?php if ($Show_Pricing): ?>
  5. Locate this code:
    <h2>Buy Now!</h2>
  6. Change to:
    <h2>
     <?php if ($Allow_Purchase):?>
      Buy Now!
     <?php else: ?>
      Pricing
     <?php endif; ?>
    </h2>
  7. Locate this line:
    <span class="qty_label">Quantity: </span><input class="qty" type="text" id="quantity" name="quantity" value="<?php print $Quantity_Value?>" />
  8. Change to:
    <span class="qty_label">Quantity: </span><input class="qty <?php print $Qty_Class ?>" type="text" id="<?php print $ID_Prefix ?>quantity" name="quantity" value="<?php print $Quantity_Value?>" />
  9. Locate this code towards the bottom of the file:
        <?php endforeach; ?>
       </div>
      <?php endif; ?>
      
      <?php print $Reviews?>
     </form>
    </div>
  10. Change to:
         <?php endforeach; ?>
        </div>
       <?php endif; ?>
      <?php endif; ?>
     </form>
     
     <?php print $Reviews?>
     
     <?php print $Related_Products?>
     
     <?php print $Also_Ordered_Products?>
    </div> 

 

 

product_thumbnail.tpl.php

  1. Locate this code:
    <div class="prod_thumb <?php print $Discount_Class ?>">
  2. Change to:
    <div class="prod_thumb <?php print $Extra_Classes ?>">
  3. Locate this code:
    <?php if ($Discount_Class): ?>
     <?php if ($Show_Regular_Price): ?>
      <div class="regular_price">
       <?php print $Regular_Price_Label?> <?php print sc_price($Regular_Price) ?>
      </div>
     <?php endif; ?>
     <div class="sale_price">
      <span class="sale_price_inner">
       <?php print $Price_Label?> <?php print sc_price($Base_Price) ?>
      </span>
     </div>
    <?php elseif ($Base_Price): ?>
     <div class="prod_price">
      <?php print $Price_Label?> <?php print sc_price($Base_Price) ?>
     </div>
    <?php endif; ?>
  4. Change to:
    <?php if ($Show_Pricing): ?>
     <?php if ($Discount_Class): ?>
      <?php if ($Show_Regular_Price): ?>
       <div class="regular_price">
        <?php print $Regular_Price_Label?> <?php print sc_price($Regular_Price) ?>
       </div>
      <?php endif; ?>
      <div class="sale_price">
       <span class="sale_price_inner">
        <?php print $Price_Label?> <?php print sc_price($Base_Price) ?>
       </span>
      </div>
     <?php elseif ($Base_Price): ?>
      <div class="prod_price">
       <?php print $Price_Label?> <?php print sc_price($Base_Price) ?>
      </div>
     <?php endif; ?>
    <?php endif; ?>
  5. Locate this code:
    </form>
  6. Add this before:
    <?php if ($Allow_Purchase && $Show_Add_to_Cart): ?>
     <div class="valign_middle qty_box">
      <input type="hidden" id="<?php print $ID_Prefix ?>quantity" name="quantity" value="1" />
      <a href="<?php print $Pre_Add_to_Cart_URL ?>" id="add_to_cart_link<?php print $Form_ID ?>" class="<?php print $Add_to_Cart_Class ?> btn co_btn_disabled" <?php if (!$Opts_not_Shown): ?>onclick="document.getElementById('add_to_cart_form_<?php print $Form_ID?>').submit(); return false"<?php endif;?>></a>
      <noscript>
       <input class="co_btn" type="submit" name="no_script[add_to_cart_btn]" value="<?php print $Add_to_Cart_Text ?>" />
      </noscript>
      <script type="text/javascript">
       var addToCartLink = document.getElementById('add_to_cart_link<?php print $Form_ID ?>');
       if (addToCartLink) addToCartLink.className = addToCartLink.className.replace('co_btn_disabled','');
      </script>
     </div>
    <?php endif; ?>

 

 

ship_notify_email_html.tpl.php

  1. Change this:

    body {
     background-color: #fff;
    }
  2. To this:

    body {
     background-image: url(<?php print SC_STORE_DIR ?>/squirrelcart/images/blank.gif);
     background-color: #fff;
    }

 

store_main.tpl.php

  1. Change this:

    <body onload="scOnLoad()">
  2. To this:

    <body>

 

style_main.css.php

  1. Change this:

    #sc_footer {
     clear: left;
    }
  2. To this:

    #sc_footer {
     clear: both;
    }
  3. Find this:

    /* surrounds name of category and image */
    .cat_label_outer {
  4. Add this above it:

    .category_detail {
     overflow: hidden;
    }
  5. Find this:

    .subcat_count {
     margin-top: 10px;
    }
  6. Add this below:

    .subcategory_img {
     display: block;
     margin: 0 auto;
    }
  7. Find this:

    .prod_detail.discounted .prod_price {
  8. Add this above:

    .related_products .prod_price {
     font-size: 12px;
     font-weight: bold;
     margin-bottom: 0;
    }

    .prod_detail.discounted .prod_thumb .prod_price {
     background: none;
    }
  9. Find this:

    .opt_chars_left {
  10. Add this above:

    .opt_var_price {
     width: 50px;
     margin: 0 2px;
    }
  11. Find this:

    a.update_cart2_btn {
  12. Add this above:

    a.multi_add_to_cart_btn {
     background-image: url(<?php print sc_img('btn_multi_add_to_cart','dyn') ?>);
     width: <?php print sc_img('btn_multi_add_to_cart','width') ?>px;
     height: <?php print sc_img('btn_multi_add_to_cart','height') ?>px;
     display: block;
     <?php if ($SC['browser']['browser'] == 'fx' && $SC['browser']['maj_ver'] < 3.0): ?>
     display:-moz-inline-box;
     <?php endif; ?>
     margin: 5px auto;
    }

    a.more_detail_btn {
     background-image: url(<?php print sc_img('btn_more_detail','dyn') ?>);
     width: <?php print sc_img('btn_more_detail','width') ?>px;
     height: <?php print sc_img('btn_more_detail','height') ?>px;
     display: inline-block;
     <?php if ($SC['browser']['browser'] == 'fx' && $SC['browser']['maj_ver'] < 3.0): ?>
     display:-moz-inline-box;
     <?php endif; ?>
     margin-top: 2px;
    }
  13. Find this:

    .acct_choice_login {
     width: 50%;
     float: right;
    }

    .acct_choice_login .inner {
     border-left: silver solid 1px;
     position: relative;
    }
  14. Change to:

    <?php if ($SC['settings']['Account_Creation_Enabled']): ?>
    .acct_choice_login {
     width: 50%;
     float: right;
    }

    .acct_choice_login .inner {
     border-left: silver solid 1px;
     position: relative;
    }
    <?php endif; ?>
  15. Add this to the bottom of the file:

    .ship_disclaimer {
         margin-top: 15px;
         font-size: 11px;
         padding-left: 6px;
         color: #808080;
    }

    .order_discount_info {
         float: right;
         text-align: right;
    }

     .discount_info {
         font-weight: normal;
         color: #7f7f7f;
    }

    .item_coupon_code {
         padding-right: 20px;
    }

    .vat {
     color: #8f8f8f;
    }

    /*********************************
     Products via a table view 
    *********************************/
    .cat_products_table {
     border: black solid 1px;
     width: 100%;
     margin: 10px 0;
    }

    .cat_products_table td,
    .cat_products_table th {
     text-align: left;
     border-bottom: silver solid 1px;
     vertical-align: top;
     padding: 5px;
    }
    .cat_products_table tbody td {
     padding: 10px;
    }

    .cat_products_table td.prod_name_td {
     width: 31%;
    }
    .cat_products_table td.price_td {
     width: 20%;
    }
    .cat_products_table td.opts {
     width: 49%;
    }

    .cat_products_table th.last {
     text-align: right;
    }
    .cat_products_table table td,
    .cat_products_table table th {
     padding: 0;
     border: 0;
    }
    .cat_products_table .prod_name_td,
    .cat_products_table .price_td {
     border-right: silver solid 1px;
    }
    .cat_products_table .opts {
     text-align: right;
    }
    .cat_products_table .prod_options table {
     margin-right: 0;
    }
    .cat_products_table .prod_options {
     margin: 0;
    }
    .cat_products_table a.prod_thumb_img {
     margin: 0;
    }
    .cat_products_table .rv_small_rating {
     margin: 0;
    }
    .cat_products_table .qty {
     width: 35px;
    }
    .cat_products_table .prod_name {
     margin-bottom: 5px;
    }
    .cat_products_table .agree {
     margin-right: 0;
     margin-bottom: 5px;
     margin-top: 0;
    }
    .cat_products_table .agree_text {
     margin-right: 0;
     padding: 0;
    }
    .cat_products_table .agree_print {
     margin-right: 5px;
    }
    .cat_products_table .agree h3 {
     font-size: inherit;
     margin-top: 0;
     margin-bottom: 2px;
    }
    .cat_products_table .error td {
     border: #7f1717 solid 1px;
     border-width: 1px 0;
    }
    .cat_products_table .error .inner {
     position: relative;
    }
    .cat_products_table .error .arrow {
     position: absolute;
     bottom: -22px;
     left: 50%;
     display: block;
     width: 23px;
     height: 12px;
     margin: 0 auto;
     background: url(<?php print sc_img('red_error_arrow','dyn')?>) no-repeat;
    }
    .cat_products_table .sc_msg.info {
     margin: 0;
     font-size: 12px;
    }
    .cat_products_table .sc_msg.info img {
     display: none;
    }
    .cat_products_table .required_instructions,
    .cat_products_table .missing_instructions {
     display: none;
    }
    .category_as_table .req_missing_instructions {
     text-align: center;
     margin-top: 10px;
    }

    #sc .account_options_restricted {
     margin-top: 40px;
     width: 500px;
    }

    .sc_restricted #login_form {
     width: 185px;
     margin: 0 auto 70px auto;
    }

    .sc_restricted .username,
    .sc_restricted .password {
     display: block;
     width: 100%;
    }

    .sc_restricted .login_btn {
     margin: 0 auto;
    }

    .sc_restricted .nav_links {
     text-align: center;
    }

    .sc_restricted .nav_links li {
     display: inline-block;
     margin-left: 20px;
    }

    .sc_restricted .nav_links li:first-child {
     margin-left: 0;
    }

    .sc_restricted .nav_links a {
     text-decoration: none;
    }

    .email_admin_opts {
     background-color: #fcfc8d;
     border: black solid 1px;
     font-size: 12px;
     padding: 10px;
    }

    .checkout_done .boxc {
     margin-bottom: 40px;
    }

 

 

 

style_variant2_1024.css.php

  1. Find this:

    #sc_inner {
     margin: 0 auto;
     position: relative;
     width: 980px; /* fits well inside 1024 with a little room on the sides */
    }
  2. Change to:

    #sc_inner {
     margin: 0 auto;
     position: relative;
     width: 980px; /* fits well inside 1024 with a little room on the sides */
     overflow: hidden;
    }

 

 


© 2001-2017 Lighthouse Development. All Rights Reserved.