In app/design/frontend/aw_mobile/iphone/layout/page.xml
- Code: Select all
<action method="addJs"><script>lib/ccard.js</script></action>
Magento ver. 1.4.0.1 doesn’t have js/lib/ccard.js so Magento was throwing exceptions.
I’ve removed the layout line from my page.xml, but you might want to consider this fix for Magento 1.4.0.1 which will stop the thrown exceptions: https://forum.aheadworks.com.
Meta viewport
app/design/frontend/aw_mobile/iphone/template/page/html/head.phtml
- Code: Select all
<meta id="viewport" name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
The content pairs should be separated by commas, not semi-colons. See https://forum.aheadworks.com. Otherwise mobile Safari throws errors/warnings in the console.
Image gallery
This displays the main image twice, to fix add the if statement:
app/design/frontend/aw_mobile/iphone/template/catalog/product/view/iphone/media.phtml
- Code: Select all
<?php foreach ($this->getGalleryImages() as $_image): ?>
<?php if($_product->getImage() != $_image->getFile()): ?>
<div class="image">
...
</div>
<?php endif; ?>
<?php endforeach; ?>