Post by jakub.rojek » Fri Feb 26, 2016 10:45 pm

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

Attachments

Bildschirmfoto vom 2016-02-26 15-39-25.png

Bildschirmfoto vom 2016-02-26 15-39-25.png (24.06 KiB) Viewed 4461 times


Newbie

Posts

Joined
Fri Feb 26, 2016 10:33 pm

Post by IP_CAM » Mon Feb 29, 2016 8:44 am

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:

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>
Good Luck ;)
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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by swguy » Sun Jun 18, 2017 2:25 am

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.


User avatar
New member

Posts

Joined
Mon Apr 15, 2013 4:13 am

Post by IP_CAM » Sun Jun 18, 2017 3:16 am

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

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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: Google [Bot] and 40 guests