Glossary Item Box

Squirrelcart v6.1.0

v4.5.0

Overview

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

Slimbox Changes

As of Squirrelcart version 4.5.0, we have changed our HTML slightly to be compliant with HTML 5. The free Slimbox script that was included with earlier versions of Squirrelcart rely on a rel attribute on your <a/> tags:

<a href="http://www.example.com/sc_images/products/447_large_image.jpg" rel="lightbox[product-533]" target="_blank" title="Add-On Products Example">click for larger image</a>

 

The rel attribute is not valid in HTML 5. To comply with HTML 5 standards, this attribute has been changed to data-rel as follows:

<a href="http://www.example.com/sc_images/products/447_large_image.jpg" data-rel="lightbox[product-533]" target="_blank" title="Add-On Products Example">click for larger image</a>

 

Squirrelcart will automatically make that change to any built-in templates that use Slimbox. If you have customized versions of templates using this attribute, you will need to change rel="lightbox... to data-rel="lightbox... for them to continue working in version 4.5.0. The following built-in templates from version 4.4.7 and earlier use this attribute. Any custom versions of these templates will need to be updated as explained above:

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 v4.5.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_form.tpl.php

Version 4.5.0 adds support for including a Birthday field on the account form. If you wish to use this field, make these changes:

  1. Find this:

    <?php if ($Show_VAT_Registration): ?>
  2. Add this above that line:
    <?php if ($Show_Birthday): ?>
     <li>
      <label>
       <?php print $Birthday_Icon ?><?php print $Birthday_Label ?>:
      </label>
      <div class="fields_box_field">
       <select id="BirthdayMonth" class="bdayMonth <?php print $BirthdayMonth_Class ?>" name="acct[Birthday][Month]">
        <option></option>
        <option value="01" <?php if ($acct['Birthday']['Month'] == '01') print $selected ?>>January</option>
        <option value="02" <?php if ($acct['Birthday']['Month'] == '02') print $selected ?>>February</option>
        <option value="03" <?php if ($acct['Birthday']['Month'] == '03') print $selected ?>>March</option>
        <option value="04" <?php if ($acct['Birthday']['Month'] == '04') print $selected ?>>April</option>
        <option value="05" <?php if ($acct['Birthday']['Month'] == '05') print $selected ?>>May</option>
        <option value="06" <?php if ($acct['Birthday']['Month'] == '06') print $selected ?>>June</option>
        <option value="07" <?php if ($acct['Birthday']['Month'] == '07') print $selected ?>>July</option>
        <option value="08" <?php if ($acct['Birthday']['Month'] == '08') print $selected ?>>August</option>
        <option value="09" <?php if ($acct['Birthday']['Month'] == '09') print $selected ?>>September</option>
        <option value="10" <?php if ($acct['Birthday']['Month'] == '10') print $selected ?>>October</option>
        <option value="11" <?php if ($acct['Birthday']['Month'] == '11') print $selected ?>>November</option>
        <option value="12" <?php if ($acct['Birthday']['Month'] == '12') print $selected ?>>December</option>
       </select>
       <select id="BirthdayDay" class="<?php print $BirthdayDay_Class ?>" name="acct[Birthday][Day]">
        <option></option>
        <option <?php if ($acct['Birthday']['Day'] == '01') print $selected ?>>01</option>
        <option <?php if ($acct['Birthday']['Day'] == '02') print $selected ?>>02</option>
        <option <?php if ($acct['Birthday']['Day'] == '03') print $selected ?>>03</option>
        <option <?php if ($acct['Birthday']['Day'] == '04') print $selected ?>>04</option>
        <option <?php if ($acct['Birthday']['Day'] == '05') print $selected ?>>05</option>
        <option <?php if ($acct['Birthday']['Day'] == '06') print $selected ?>>06</option>
        <option <?php if ($acct['Birthday']['Day'] == '07') print $selected ?>>07</option>
        <option <?php if ($acct['Birthday']['Day'] == '08') print $selected ?>>08</option>
        <option <?php if ($acct['Birthday']['Day'] == '09') print $selected ?>>09</option>
        <option <?php if ($acct['Birthday']['Day'] == '10') print $selected ?>>10</option>
        <option <?php if ($acct['Birthday']['Day'] == '11') print $selected ?>>11</option>
        <option <?php if ($acct['Birthday']['Day'] == '12') print $selected ?>>12</option>
        <option <?php if ($acct['Birthday']['Day'] == '13') print $selected ?>>13</option>
        <option <?php if ($acct['Birthday']['Day'] == '14') print $selected ?>>14</option>
        <option <?php if ($acct['Birthday']['Day'] == '15') print $selected ?>>15</option>
        <option <?php if ($acct['Birthday']['Day'] == '16') print $selected ?>>16</option>
        <option <?php if ($acct['Birthday']['Day'] == '17') print $selected ?>>17</option>
        <option <?php if ($acct['Birthday']['Day'] == '18') print $selected ?>>18</option>
        <option <?php if ($acct['Birthday']['Day'] == '19') print $selected ?>>19</option>
        <option <?php if ($acct['Birthday']['Day'] == '20') print $selected ?>>20</option>
        <option <?php if ($acct['Birthday']['Day'] == '21') print $selected ?>>21</option>
        <option <?php if ($acct['Birthday']['Day'] == '22') print $selected ?>>22</option>
        <option <?php if ($acct['Birthday']['Day'] == '23') print $selected ?>>23</option>
        <option <?php if ($acct['Birthday']['Day'] == '24') print $selected ?>>24</option>
        <option <?php if ($acct['Birthday']['Day'] == '25') print $selected ?>>25</option>
        <option <?php if ($acct['Birthday']['Day'] == '26') print $selected ?>>26</option>
        <option <?php if ($acct['Birthday']['Day'] == '27') print $selected ?>>27</option>
        <option <?php if ($acct['Birthday']['Day'] == '28') print $selected ?>>28</option>
        <option id="BirthdayDay29" <?php if ($acct['Birthday']['Day'] == '29') print $selected ?>>29</option>
        <option id="BirthdayDay30" <?php if ($acct['Birthday']['Day'] == '30') print $selected ?>>30</option>
        <option id="BirthdayDay31" <?php if ($acct['Birthday']['Day'] == '31') print $selected ?>>31</option>
       </select>
       <select id="BirthdayYear" class="<?php print $BirthdayYear_Class ?>" name="acct[Birthday][Year]">
        <option></option>
        <?php foreach($Birthday_Year_Options as $Birthday_Year_Option):?>
         <option <?php if($Birthday_Year_Option == $acct['Birthday']['Year']) print $selected ?>><?php print $Birthday_Year_Option?></option>
        <?php endforeach;?>
       </select>
      </div>
     </li>
    <?php endif; ?>   

account_options_nav.tpl.php

  1. Change this:
    <?php if ($Remember_Me_Enabled): ?>
     <div class="valign_middle remember_me_outer">
      <a class="tip" title="This will keep you logged in if you close your browser (until you logout).">
       <label for="remember_me" >Remember me </label><input name="remember_me" id="remember_me" type="checkbox" value="1" <?php if ($Remember_Me_Default): ?>checked="checked"<?php endif;?> />
      </a>
     </div>
    <?php endif; ?>
  2. To:
    <?php if ($Remember_Me_Enabled): ?>
     <div class="valign_middle remember_me_outer tip" title="This will keep you logged in if you close your browser (until you logout).">
      <label for="remember_me" >Remember me </label><input name="remember_me" id="remember_me" type="checkbox" value="1" <?php if ($Remember_Me_Default): ?>checked="checked"<?php endif;?> />
     </div>
    <?php endif; ?> 

  

checkout_address_form.tpl.php

Version 4.5.0 adds support for including a Birthday field on the checkout address form. If you wish to use this field, make these changes:

  1. Find this:

    <?php if ($Show_Update_Account): ?>
  2. Add this above that line:
    <?php if ($Show_Bill_Birthday): ?>
     <li>
      <label>
       <?php print $Bill_Birthday_Icon ?><?php print $Bill_Birthday_Label ?>:
      </label>
      <div class="fields_box_field">
       <select id="Bill_BirthdayMonth" class="bdayMonth <?php print $Bill_BirthdayMonth_Class ?>" name="address[Bill_Birthday][Month]">
        <option></option>
        <option value="01" <?php if ($address['Bill_Birthday']['Month'] == '01') print $selected ?>>January</option>
        <option value="02" <?php if ($address['Bill_Birthday']['Month'] == '02') print $selected ?>>February</option>
        <option value="03" <?php if ($address['Bill_Birthday']['Month'] == '03') print $selected ?>>March</option>
        <option value="04" <?php if ($address['Bill_Birthday']['Month'] == '04') print $selected ?>>April</option>
        <option value="05" <?php if ($address['Bill_Birthday']['Month'] == '05') print $selected ?>>May</option>
        <option value="06" <?php if ($address['Bill_Birthday']['Month'] == '06') print $selected ?>>June</option>
        <option value="07" <?php if ($address['Bill_Birthday']['Month'] == '07') print $selected ?>>July</option>
        <option value="08" <?php if ($address['Bill_Birthday']['Month'] == '08') print $selected ?>>August</option>
        <option value="09" <?php if ($address['Bill_Birthday']['Month'] == '09') print $selected ?>>September</option>
        <option value="10" <?php if ($address['Bill_Birthday']['Month'] == '10') print $selected ?>>October</option>
        <option value="11" <?php if ($address['Bill_Birthday']['Month'] == '11') print $selected ?>>November</option>
        <option value="12" <?php if ($address['Bill_Birthday']['Month'] == '12') print $selected ?>>December</option>
       </select>
       <select id="Bill_BirthdayDay" class="<?php print $Bill_BirthdayDay_Class ?>" name="address[Bill_Birthday][Day]">
        <option></option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '01') print $selected ?>>01</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '02') print $selected ?>>02</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '03') print $selected ?>>03</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '04') print $selected ?>>04</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '05') print $selected ?>>05</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '06') print $selected ?>>06</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '07') print $selected ?>>07</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '08') print $selected ?>>08</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '09') print $selected ?>>09</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '10') print $selected ?>>10</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '11') print $selected ?>>11</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '12') print $selected ?>>12</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '13') print $selected ?>>13</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '14') print $selected ?>>14</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '15') print $selected ?>>15</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '16') print $selected ?>>16</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '17') print $selected ?>>17</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '18') print $selected ?>>18</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '19') print $selected ?>>19</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '20') print $selected ?>>20</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '21') print $selected ?>>21</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '22') print $selected ?>>22</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '23') print $selected ?>>23</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '24') print $selected ?>>24</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '25') print $selected ?>>25</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '26') print $selected ?>>26</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '27') print $selected ?>>27</option>
        <option <?php if ($address['Bill_Birthday']['Day'] == '28') print $selected ?>>28</option>
        <option id="BillBirthdayDay29" <?php if ($address['Bill_Birthday']['Day'] == '29') print $selected ?>>29</option>
        <option id="BillBirthdayDay30" <?php if ($address['Bill_Birthday']['Day'] == '30') print $selected ?>>30</option>
        <option id="BillBirthdayDay31" <?php if ($address['Bill_Birthday']['Day'] == '31') print $selected ?>>31</option>
       </select>
       <select id="Bill_BirthdayYear" class="<?php print $Bill_BirthdayYear_Class ?>" name="address[Bill_Birthday][Year]">
        <option></option>
        <?php foreach($Bill_Birthday_Year_Options as $Bill_Birthday_Year_Option):?>
         <option <?php if($Bill_Birthday_Year_Option == $address['Bill_Birthday']['Year']) print $selected ?>><?php print $Bill_Birthday_Year_Option?></option>
        <?php endforeach;?>
       </select>
      </div>
     </li>
    <?php endif; ?> 
  3. Find this:

    <?php if ($Show_Ship_VAT_Registration): ?>
  4. Add this above that line:
    <?php if ($Show_Ship_Birthday): ?>
    <li>
     <label>
      <?php print $Ship_Birthday_Icon ?><?php print $Ship_Birthday_Label ?>:
     </label>
     <div class="fields_box_field">
      <select id="Ship_BirthdayMonth" class="bdayMonth <?php print $Ship_BirthdayMonth_Class ?>" name="address[Ship_Birthday][Month]">
       <option></option>
       <option value="01" <?php if ($address['Ship_Birthday']['Month'] == '01') print $selected ?>>January</option>
       <option value="02" <?php if ($address['Ship_Birthday']['Month'] == '02') print $selected ?>>February</option>
       <option value="03" <?php if ($address['Ship_Birthday']['Month'] == '03') print $selected ?>>March</option>
       <option value="04" <?php if ($address['Ship_Birthday']['Month'] == '04') print $selected ?>>April</option>
       <option value="05" <?php if ($address['Ship_Birthday']['Month'] == '05') print $selected ?>>May</option>
       <option value="06" <?php if ($address['Ship_Birthday']['Month'] == '06') print $selected ?>>June</option>
       <option value="07" <?php if ($address['Ship_Birthday']['Month'] == '07') print $selected ?>>July</option>
       <option value="08" <?php if ($address['Ship_Birthday']['Month'] == '08') print $selected ?>>August</option>
       <option value="09" <?php if ($address['Ship_Birthday']['Month'] == '09') print $selected ?>>September</option>
       <option value="10" <?php if ($address['Ship_Birthday']['Month'] == '10') print $selected ?>>October</option>
       <option value="11" <?php if ($address['Ship_Birthday']['Month'] == '11') print $selected ?>>November</option>
       <option value="12" <?php if ($address['Ship_Birthday']['Month'] == '12') print $selected ?>>December</option>
      </select>
      <select id="Ship_BirthdayDay" class="<?php print $Ship_BirthdayDay_Class ?>" name="address[Ship_Birthday][Day]">
       <option></option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '01') print $selected ?>>01</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '02') print $selected ?>>02</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '03') print $selected ?>>03</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '04') print $selected ?>>04</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '05') print $selected ?>>05</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '06') print $selected ?>>06</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '07') print $selected ?>>07</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '08') print $selected ?>>08</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '09') print $selected ?>>09</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '10') print $selected ?>>10</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '11') print $selected ?>>11</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '12') print $selected ?>>12</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '13') print $selected ?>>13</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '14') print $selected ?>>14</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '15') print $selected ?>>15</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '16') print $selected ?>>16</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '17') print $selected ?>>17</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '18') print $selected ?>>18</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '19') print $selected ?>>19</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '20') print $selected ?>>20</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '21') print $selected ?>>21</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '22') print $selected ?>>22</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '23') print $selected ?>>23</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '24') print $selected ?>>24</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '25') print $selected ?>>25</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '26') print $selected ?>>26</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '27') print $selected ?>>27</option>
       <option <?php if ($address['Ship_Birthday']['Day'] == '28') print $selected ?>>28</option>
       <option id="ShipBirthdayDay29" <?php if ($address['Ship_Birthday']['Day'] == '29') print $selected ?>>29</option>
       <option id="ShipBirthdayDay30" <?php if ($address['Ship_Birthday']['Day'] == '30') print $selected ?>>30</option>
       <option id="ShipBirthdayDay31" <?php if ($address['Ship_Birthday']['Day'] == '31') print $selected ?>>31</option>
      </select>
      <select id="Ship_BirthdayYear" class="<?php print $Ship_BirthdayYear_Class ?>" name="address[Ship_Birthday][Year]">
       <option></option>
       <?php foreach($Ship_Birthday_Year_Options as $Ship_Birthday_Year_Option):?>
        <option <?php if($Ship_Birthday_Year_Option == $address['Ship_Birthday']['Year']) print $selected ?>><?php print $Ship_Birthday_Year_Option?></option>
       <?php endforeach;?>
      </select>
     </div>
    </li>
    <?php endif; ?> 

checkout_pay.tpl.php

  1. Change this:
    <?php if ($GW_Connection_Method != "Server to Server" && $GW_Connection_Method): ?>
  2. To:
    <?php if ($GW_Connection_Method != "Store Hosted / Server to Gateway" && $GW_Connection_Method): ?>

page_navigation.tpl.php

  1. Find the last closing <div> tag at the end of the file:
    </div>
  2. Add this above it:
    <?php if ($Number_of_Pages > 2):?>
     <a class="view_all" href="<?php print $View_All_URL ?>">View All <?php print $Number_of_Products?> Item<?php print $s?></a>
    <?php endif;?>

product_detail.tpl.php

In addition to the Slimbox changes mentioned at the top of this page, you will need to make the following changes:

  1. Change this:

    <div class="prod_section buy_now">
  2. To:
    <div class="prod_section buy_now" <?php print $SchemaOrg_Offer?>> 
  3. Change this:

    <?php print $Price_Label?> <?php print sc_price($Base_Price) ?>
  4. To:
    <?php print $Price_Label?> <span <?php print $SchemaOrg_Price?>><?php print sc_price($Base_Price) ?></span>
  5. Find this:

    <?php print $Reviews?>
  6. Add this below it:
    <?php if ($Show_Addl_Info):?>
     <div class="prod_section addtl">
      <h2>Additional Information</h2>
      
      <?php if ($Attachments):?>
       <div class="prod_attachments section">
        <h3>Attachments</h3>
        <ul class="reset">
         <?php foreach($Attachments as $Attachment):?>
          <li>
           <a href="<?php print $Attachment['URL']?>" target="_blank">
            <span class="ficons">
             <?php if ($Attachment['Type_Img']):?>
              <img src="<?php print $Attachment['Type_Img']?>" alt="<?php print $Attachment['Type']?>" />
             <?php endif;?>
             <span class="ftype"><?php print $Attachment['Type']?></span>
            </span>
            <span><?php print $Attachment['Display_Name']?></span>
            <span class="fsize">(<?php print $Attachment['Size']?>)</span>
           </a>
          </li>   
         <?php endforeach;?>
        </ul>
       </div>
      <?php endif;?>
      
      <?php if ($Show_Info):?>
       <div class="prod_data section">
        <h3>Product Data</h3>
        <ul class="reset">
         <?php if ($Brand):?>
          <li>
           <label>Brand:</label>
           <span><a href="<?print $Brand_URL?>"><?php print $Brand ?></a></span>
          </li>
         <?php endif;?>
         <?php if ($Condition):?>
          <li>
           <label>Condition:</label>
           <span><?php print $Condition ?></span>
          </li>
         <?php endif;?>
         <?php if ($Product_Code):?>
          <li>
           <label>Product Code:</label>
           <span><?php print $Product_Code ?></span>
          </li>
         <?php endif;?>
         <?php if ($SKU):?>
          <li>
           <label>SKU:</label>
           <span><?php print $SKU ?></span>
          </li>
         <?php endif;?>
         <?php if ($GTIN13):?>
          <li>
           <label>GTIN 13:</label>
           <span><?php print $GTIN13 ?></span>
          </li>
         <?php endif;?>
         <?php if ($ISBN):?>
          <li>
           <label>ISBN:</label>
           <span><?php print $ISBN ?></span>
          </li>
         <?php endif;?>
         <?php if ($Model_No):?>
          <li>
           <label>Model #:</label>
           <span><?php print $Model_No ?></span>
          </li>
         <?php endif;?>
         <?php if ($Mnf_Name):?>
          <li>
           <label>Manufacturer:</label>
           <span><a href="<?print $Mnf_URL?>"><?php print $Mnf_Name ?></a></span>
          </li>
         <?php endif;?>
         <?php if ($Mnf_Part_No):?>
          <li>
           <label>Mnf. Part #:</label>
           <span><?php print $Mnf_Part_No ?></span>
          </li>
         <?php endif;?>
        </ul>
       </div>
      <?php endif;?>
     </div>
    <?php endif;?>

search_results.tpl.php

  1. Change this:
    <?php if ($Category_Options): ?>
     <li>
      <label>In:</label>
      <div class="fields_box_field">
       <select name="search[cat]">
        <option value="">All Categories</option>
        <?php print $Category_Options ?>
       </select>
      </div>
     </li>       
    <?php endif; ?>
  2. To:
    <?php if ($Category_Options): ?>
     <li>
      <label>In category:</label>
      <div class="fields_box_field">
       <select name="search[cat]">
        <option value="">All Categories</option>
        <?php print $Category_Options ?>
       </select>
      </div>
     </li>       
    <?php endif; ?>
      
    <?php if ($Brand_Options): ?>
     <li>
      <label>Brand:</label>
      <div class="fields_box_field">
       <select name="search[brand]">
        <option value="">All Brands</option>
        <?php print $Brand_Options ?>
       </select>
      </div>
     </li>       
    <?php endif; ?>
      
    <?php if ($Mnf_Options): ?>
     <li>
      <label>Manufacturers:</label>
      <div class="fields_box_field">
       <select name="search[mnf]">
        <option value="">All Manufacturers</option>
        <?php print $Mnf_Options ?>
       </select>
      </div>
     </li>       
    <?php endif; ?>

store_footer.tpl.php

  1. Change this:

    <a href="http://validator.w3.org/check?uri=referer" title="Valid XHTML 1.0 Transitional - click to validate">
     <img src="<?php print $W3C_XHTML_Image['dyn'] ?>" width="<?php print $W3C_XHTML_Image['width'] ?>" height="<?php print $W3C_XHTML_Image['height'] ?>" alt="Valid XHTML 1.0 Transitional" />
    </a>
  2. To:
    <a href="http://validator.w3.org/check?uri=referer" title="Valid HTML 5 - click to validate">
     <img src="<?php print $W3C_HTML5_Image['dyn'] ?>" width="<?php print $W3C_HTML5_Image['width'] ?>" height="<?php print $W3C_HTML5_Image['height'] ?>" alt="Valid HTML 5" />
    </a>

store_main.tpl.php
store_restricted.tpl.php

  1. Change this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
  2. To:
    <!DOCTYPE html>
    <html <?php print $HTML_Attributes?>> 

style_main.css.php

As of version 4.0, it is usually not necessary to modify this file. See the section about extending CSS here for more info.

If you have a modified version of this file in your custom theme folder, you'll need to make these changes:

  1. Find this:
    .select_multi {
  2. Change to:
    .select_multi,
    ul.reset {
  3. Find this:
    .prod_img_outer {
  4. Add this above it:
    .prod_detail .addtl * {
     vertical-align: middle
    }

    .prod_detail .addtl li {
     padding: 7px 0;
    }

    .prod_detail .addtl li:nth-child(odd) {
     background-color: <?php print $ini['altRowBgColor']?>;
    }
  5. Find this:
    .sc_search_results label {
     width: 80px;
    }
  6. Change to:
    .sc_search_results label {
     width: 100px;
    }
  7. Find this:
    .cart_table,
    .cart_discounts,
    .address_box,
    .order_info_table {
     border: black solid 1px;
     margin-bottom: 15px;
     width: 100%;
     border-radius: <?php print $ini['borderRadius']?>;
     overflow: hidden;
     background: <?php print $ini['mainBgColor']?>;
    }
  8. Change to:
    .cart_table,
    .cart_discounts,
    .address_box,
    .order_info_table {
     border: black solid 1px;
     margin-bottom: 15px;
     border-radius: <?php print $ini['borderRadius']?>;
     overflow: hidden;
     background: <?php print $ini['mainBgColor']?>;
    }

    table.cart_table,
    table.order_info_table,
    table.order_history_table {
     width: 100%;
    }
  9. Find this:
    #print_friendly img {
     vertical-align: middle;
    }
  10. Add this below it:
    #order_ship_details p {
     margin-bottom: 0;
    }

    .print_friendly {
     page-break-before: always;
    }

    .print_friendly:first-of-type {
     page-break-before: auto;
    }

    .print_friendly h2 {
     margin-top: 0;
    }

    @media print {
     .sc_content {
      padding: 0;
     }
    }
  11. Add this to the bottom of the file:
    .ficons {
     margin: 0 10px 0 0;
     height: 20px !important;
     display: inline-block;
     border-right: <?php print $ini['rowBorderColor']?> dotted 1px;
     padding: 0 5px 0 5px;
     width: 65px;
    }

    .ficons:before {
     content: '';
     display: inline-block;
     width: 12px;
     height: 16px;
     vertical-align: middle;
     background: url(<?php print sc_img('download_arrow','dyn')?>) no-repeat;
    }

    .ftype {
     text-transform: uppercase;
    }

    .addtl .section {
     border: <?php print $ini['rowBorderColor'] ?> solid 1px;
     padding: 10px;
     margin-bottom: 20px;
     box-shadow: 0 0 2px #ddd;
     border-radius: 3px;
    }

    .addtl .section h3 {
     margin-top: 2px;
     padding-left: 5px;
     font-weight: normal;
    }

    .addtl .prod_data li {
     padding: 3px 3px 3px 5px;
    }

    .prod_data li * {
     vertical-align: middle;
    }

    .prod_data label {
     margin-right: 2px;
     display: inline-block;
     width: 20%;
     color: <?php print $ini['prodTitleColor']?>;
    }

 

 

 

 

 

 


© 2001-2017 Lighthouse Development. All Rights Reserved.