Post by charleytc » Wed Apr 14, 2010 11:12 am

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

Newbie

Posts

Joined
Wed Apr 14, 2010 1:49 am

Post by charleytc » Fri Apr 16, 2010 1:53 am

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?

Newbie

Posts

Joined
Wed Apr 14, 2010 1:49 am

Post by trait » Fri Apr 16, 2010 5:06 pm

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.

TRAIT-TECH.COM Wholesale electronics with factory price, dropshipper from China


User avatar
New member

Posts

Joined
Sat Apr 03, 2010 10:38 am


Post by charleytc » Sun Apr 18, 2010 12:04 am

I got the last version of open cart and even without template still can't checkout.

charley

Newbie

Posts

Joined
Wed Apr 14, 2010 1:49 am

Post by mirana » Tue May 04, 2010 11:33 am

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:

Code: Select all

<?php } ?>
    <?php if ($success) { ?>
    <div class="success"><?php echo $success; ?></div>
and

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>
...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! :)

Newbie

Posts

Joined
Tue May 04, 2010 11:22 am
Who is online

Users browsing this forum: No registered users and 16 guests