Glossary Item Box

Squirrelcart v6.1.0

v4.4.0

Overview

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

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.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.

options.tpl.php

This file should be reverted, by deleting your custom copy, or renaming it to disable it. If you need to modify this file, copy it from "squirrelcart/themes/squirrelcart" (from the new version) into your theme folder before modifying it.
  

order_detail_admin.tpl.php

  1. Find this:
    <?php if (empty($_REQUEST['print_order'])): ?>
       <button id="print_friendly" type="button" onclick="window.open('<?php print $Print_Friendly_URL?>&cp=1')"><img src="<?php print $Printer_Image['dyn'] ?>" width="<?php print $Printer_Image['width'] ?>" height="<?php print $Printer_Image['height'] ?>" alt="" /> Printer Friendly</button>
       <?php print $vCard_Button ?>
    <?php else: ?>
       <button id="print_friendly" type="button" onclick="window.print()"><img src="<?php print $Printer_Image['dyn'] ?>" width="<?php print $Printer_Image['width'] ?>" height="<?php print $Printer_Image['height'] ?>" alt="" /> Print Order</button>
    <?php endif; ?>

    <h2>Order #<?php print $Order_Number?></h2>
  2. Change to:
    <?php if ($State == 4):?>
       <?php if (empty($_REQUEST['print_order'])): ?>
          <button id="print_friendly" type="button" onclick="window.open('<?php print $Print_Friendly_URL?>&cp=1')"><img src="<?php print $Printer_Image['dyn'] ?>" width="<?php print $Printer_Image['width'] ?>" height="<?php print $Printer_Image['height'] ?>" alt="" /> Printer Friendly</button>
          <?php print $vCard_Button ?>
       <?php else: ?>
          <button id="print_friendly" type="button" onclick="window.print()"><img src="<?php print $Printer_Image['dyn'] ?>" width="<?php print $Printer_Image['width'] ?>" height="<?php print $Printer_Image['height'] ?>" alt="" /> Print Order</button>
       <?php endif; ?>
    <?php endif;?>

    <?php if ($State == 4):?>
       <h2>Order #<?php print $Order_Number?></h2>
    <?php elseif($State == 1):?>
       <h2>Active Cart #<?php print $record_number?></h2>
    <?php elseif($State == 2):?>
       <h2>Inactive Cart #<?php print $record_number?></h2>
    <?php endif;?>

  

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:
    .xtra_imgs a {
     display: block;
     width: <?php print $SC['settings']['Extra_Image_Thumb_Width']?>px;
     height: <?php print $SC['settings']['Extra_Image_Thumb_Height']?>px;
     overflow: hidden;
     float: left;
     border: silver solid 1px;
     text-decoration: none;
     margin-right: 10px;
     margin-bottom: 10px;
    }
  2. Remove the width attribute line as follows:
    .xtra_imgs a {
     display: block;
     height: <?php print $SC['settings']['Extra_Image_Thumb_Height']?>px;
     overflow: hidden;
     float: left;
     border: silver solid 1px;
     text-decoration: none;
     margin-right: 10px;
     margin-bottom: 10px;
    }

 

 

 

 


© 2001-2017 Lighthouse Development. All Rights Reserved.