Hi,
I was trying to use following code snippet to include template(sisu.tpl) in another template(confirm.tpl):
{include file="default/template/checkout/sisu.tpl"}
the result is not what I expected(check attachment). Instead of seeing what sisu.tpl contains I the code snippet that I added to confirm.tpl: {include file="default/template/checkout/sisu.tpl"}
any idea what is wrong??
JR
I was trying to use following code snippet to include template(sisu.tpl) in another template(confirm.tpl):
{include file="default/template/checkout/sisu.tpl"}
the result is not what I expected(check attachment). Instead of seeing what sisu.tpl contains I the code snippet that I added to confirm.tpl: {include file="default/template/checkout/sisu.tpl"}
any idea what is wrong??
JR
Attachments
Bildschirmfoto vom 2016-02-26 15-39-25.png (24.06 KiB) Viewed 4461 times
Relatively easy to do, but your CODE would not be executed in such a Form, better, use a simple iFrame Solution.
My quick-try Example (without valid image links!!)
My cart.tpl File Content for this, as shown below on the image:
Good Luck
Ernie
can be seen here, momentarely, after adding an item to the Cart:
http://www.openshop.li/shop/
My quick-try Example (without valid image links!!)
My cart.tpl File Content for this, as shown below on the image:
Code: Select all
<div class="buttons">
<div class="right"><a href="<?php echo $checkout; ?>" class="button"><?php echo $button_checkout; ?></a></div>
<div class="center"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_shopping; ?></a></div>
--------- from here:
<div style="text-align:center;"><iframe id="custom-iframe" src="http://www.openshop.li/shop/new3.html" name="w-frame" width="100%" height="270" frameborder="0" noresize="noresize"></iframe></div>
--------- to here!
</div>
Ernie
can be seen here, momentarely, after adding an item to the Cart:
http://www.openshop.li/shop/
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
This will work:
Code: Select all
<?php require("catalog/view/theme/default/template/checkout/sisu.tpl"); ?>
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
well, I don't think, that the fellow is still waiting for a reply, after such a long time,
but it still would have to be 'formatted' in some way, to make it's content look,
where and as it should.
Ernie
but it still would have to be 'formatted' in some way, to make it's content look,
where and as it should.
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: Google [Bot] and 40 guests