Hi,
i am having this error:
Notice: Undefined variable: language in /home2/kiteboar/public_html/thekiteplace/store/catalog/view/theme/YooDark/template/common/header.tpl on line 31Notice: Undefined variable: search in /home2/kiteboar/public_html/thekiteplace/store/catalog/view/theme/YooDark/template/common/header.tpl on line 31
this is what i have on line 31: <div class="div3"><?php echo $language; ?><?php echo $search; ?></div>
any idea how to fix it?
thanks
charley
Never mind, i got it!
what i am finding in the basket is this
Notice: Undefined variable: success in /home2/kiteboar/public_html/thekiteplace/store/catalog/view/theme/YooDark/template/checkout/cart.tpl on line 11
and
Notice: Undefined variable: text_coupon in /home2/kiteboar/public_html/thekiteplace/store/catalog/view/theme/YooDark/template/checkout/cart.tpl on line 65
can someone help me with this?
what i am finding in the basket is this
Notice: Undefined variable: success in /home2/kiteboar/public_html/thekiteplace/store/catalog/view/theme/YooDark/template/checkout/cart.tpl on line 11
and
Notice: Undefined variable: text_coupon in /home2/kiteboar/public_html/thekiteplace/store/catalog/view/theme/YooDark/template/checkout/cart.tpl on line 65
can someone help me with this?
You'd better give us your version of OpenCart, different version of Template and OpenCart App is the wrong way. Maybe the template is not suit your current OpenCart version.
Ady.
Ady.
TRAIT-TECH.COM Wholesale electronics with factory price, dropshipper from China
I have a different template, but was having the same errors. Based on the leads I got from another thread I'm guessing it is because the templates we are using are for an older version of OpenCart and the "success", "text_coupon", and "button coupon" variables are not used in the new version.
What I did was open up the default cart.tpl and the template cart.tpl side-by-side, identified the divergences in code, and pulled out anything referencing "success" and "text_coupon" etc. This fixed it right up.
Specifically, go to catalog/view/theme/TEMPLATENAME/template/checkout/cart.tpl and remove:
and
...or thereabouts depending on your template and errors. I'm just a person who mods code like Dr. Frankenstein though, so if someone who actually writes this stuff has a more accurate solution, please post! 
What I did was open up the default cart.tpl and the template cart.tpl side-by-side, identified the divergences in code, and pulled out anything referencing "success" and "text_coupon" etc. This fixed it right up.
Specifically, go to catalog/view/theme/TEMPLATENAME/template/checkout/cart.tpl and remove:
Code: Select all
<?php } ?>
<?php if ($success) { ?>
<div class="success"><?php echo $success; ?></div>
Code: Select all
<div style="width: 558px; display: inline-block;">
<div style="float: left; width: 274px;">
<div style="border: 1px solid #6A5ACD; min-height: 125px;">
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="coupon">
<div style="background: #000000 url('catalog/view/theme/default-NoTab/image/discount.png') 8px 8px no-repeat; border-bottom: 1px solid #6A5ACD; padding: 8px 8px 8px 29px;"><span style="text-transform: uppercase; font-size: 14px; font-weight: bold;"><?php echo $text_discount; ?></span></div>
<div style="padding: 8px;"><?php echo $text_coupon; ?><br />
<input type="text" name="coupon" value="<?php echo $coupon; ?>" />
<a onclick="$('#coupon').submit();" class="button"><span><?php echo $button_coupon; ?></span></a></div>
</form>
</div>
</div>
</div>

Who is online
Users browsing this forum: No registered users and 10 guests