Upgrade Info - Appendix 1 (v1.0 to v1.1)

Below are the template changes in v1.1. You will need to deploy the changes manually if you made template changes and are using a different theme. Note that the details will reference data in the original theme, so you`ll need to find the corresponding information in your own templates. Language files should be copied to all language folders.

New files should be added to your setup from the latest download zip file.
New Files
content/language/english/email-templates/contact-form-auto.txt
content/language/english/1.1.php
content/*theme*/html/captcha.htm
content/*theme*/fonts/Comfortaa-Light.ttf
content/*theme*/images/gateways/bitcoin.png
content/*theme*/images/gateways/gw-apirone.png
content/*theme*/images/gateways/litecoin.png
content/*theme*/checkout-qrcode.tpl.php
content/*theme*/checkout-tandc.tpl.php
CSS
1 In the 'content/*theme*/css/mobile.css' file, to all media tags add the following:

.popularrow .product .price,.relatedrow .product .price, .footbar .latest .price {
  font-size: 24px;
  font-weight: bold;
}
2 At the bottom of the 'content/*theme*/css/msw.css' file add the following:

.footbar .latest .price {
  font-size: 14px;
  font-weight: bold;
}
.footbar .latest .price .offer {
  font-weight: normal;
  font-style: italic;
  color: #c0c0c0;
  text-decoration: line-through;
}
.tandc {
  font-weight: bold;
  text-transform: uppercase;
}
.capimg img {
  cursor:pointer;
  margin-bottom:10px;
  border:1px dashed #ccc;
  padding:1px;
}

3 At the bottom of the 'content/*theme*/css/msw-base.css' file add the following:

.msw-box-spinner-left {
  background: #fff url(../images/animated/spin-small.gif) no-repeat 2% 50% !important;
}
.msw-box-spinner-right {
  background: #fff url(../images/animated/spin-small.gif) no-repeat 95% 50% !important;
}

4 From the latest 'content/*theme*/css/plugins.css' file, add the block of code to your own css file for the QR code styling (line 344).
Javascript
1 From the latest 'content/*theme*/js/ops.js' file add the following function to your own ops.js file.

mswCptRld();
2 From the latest 'content/*theme*/js/ops.js' file replace the following function in your own ops.js file.

mswSend();
Template Files
For the template files, refer to the latest files if you aren`t sure what code is being mentioned:
1 Open the 'content/*theme*/footer.tpl.php' file. After the textarea "form-group" div, add the following:

<?php
// Load basic captcha if enabled.
// html/captcha.htm
echo $this->CAPTCHA;
?>
2 Open the following files:

content/*theme*/html/footer-latest-products.htm
content/*theme*/html/product/product-popular-link.htm
content/*theme*/html/product/product-recently-viewed-link.htm
content/*theme*/html/product/product-related-link.htm

After the following code:

<a href="{url}" title="{title}">{text}</a>
Add

<div class="price">{price_html}</div>
3 Open the following files:

content/*theme*/checkout-no-shipping.tpl.php
content/*theme*/checkout-none-gateway.tpl.php
content/*theme*/checkout-shipping.tpl.php

After the following code:

<div class="panel panel-default">
  <div class="panel-body">
    <div class="form-group">
      <textarea name="fm[notes]" rows="5" cols="20" class="form-control"></textarea>
    </div>
  </div>
</div>
Add

<?php   // Is terms and conditions enabled?
  if ($this->SETTINGS['tandc'] == 'yes' && $this->SETTINGS['tandc_txt']) {
  ?>
  <div class="panel panel-default">
    <div class="panel-body">
      <input type="checkbox" name="fm[tandc]" value="yes"> <?php echo $this->TEXT[29]; ?>
    </div>
  </div>
  <?php
}
?>
4 Open the 'content/*theme*/view-order.tpl.php' file.

Wrap the 'infopdfbutton' class div for the PDF in an if statement.

<?php
if ($this->PDF->visprint == 'yes') {
?>
<div class="text-right marginbottom50 infopdfbutton">
  <button class="btn btn-success" type="button" onclick="mswPDF('<?php echo $this->order['id']; ?>')"><i class="fa fa-file-pdf-o fa-fw"></i> <?php echo $this->TEXT[11]; ?></button>
</div>
<?php
}
?>
5 Open the 'content/*theme*/right-panel-view-order.tpl.php' file.

After the following code:

<?php echo $this->order['status']; ?>
Add

<br><br>
<b><?php echo $this->TEXT[18][3]; ?></b>:<br>
<?php echo $this->order['c_currency'] . $this->order['c_amount']; ?>
6 Open the 'content/pdf/invoice/total-grand.htm' file.

Add a second table row as follows:

<tr style="line-height:30px">
  <td colspan="3" style="font-size:12px;text-align:right;color:#555">( <b>{RECEIVED}</b>: {CRYPTO} )</td>
</tr>
Something Missing?
Was a template update not shown here that caused something to break? Please let me know, thank you.
Back to Appendix
Back to Upgrades