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 966 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/

Attachments

html_page_in_iframe_in_oc_cart_tpl.jpg

incluse a html File in the OpenCart Checkout / Cart Section. - html_page_in_iframe_in_oc_cart_tpl.jpg (154.86 KiB) Viewed 955 times


Ernie's OpenCart LIGHT with responsive Bootstrap Themes:
http://www.bigmax.ch - http://www.ipc.li - http://www.openshop.li
Image


User avatar
Guru 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

Ernie's OpenCart LIGHT with responsive Bootstrap Themes:
http://www.bigmax.ch - http://www.ipc.li - http://www.openshop.li
Image


User avatar
Guru Member

Posts

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

Users browsing this forum: No registered users and 24 guests