Post by mcurtis » Wed Dec 14, 2011 7:02 am

Hi,

I am on Open Cart Version Version 1.5.1.3
When using points (setup up under Reward Points and under options)
When i put something in the shopping cart i get this message under the item (does this for all of the items):

Notice: Undefined index: points in /home2/offthec2/public_html/thebottlecapshop/catalog/view/theme/default/template/checkout/cart.tpl on line 53

When i go look at line 53 at that path, this is what it is:

<?php if ($product['points']) { ?>

Any ideas on what is going on or more than likely what i am doing wrong?

Any help would be greatly appreciated!

Thanks, Matt

New member

Posts

Joined
Mon Dec 12, 2011 8:49 pm

Post by straightlight » Wed Dec 14, 2011 10:43 am

replace:

Code: Select all

<?php if ($product['points']) { ?>
with:

Code: Select all

<?php if (isset($product['points'])) { ?>

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Daniel » Wed Dec 14, 2011 11:12 am

your using an old template. or you installed an extension which replaced the cart template.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by mcurtis » Wed Dec 14, 2011 11:57 am

WOW.. your a code ninja. Thank you very much for the fix! I replaced code and it works perfectly!

New member

Posts

Joined
Mon Dec 12, 2011 8:49 pm

Post by ALANNIS » Wed Dec 14, 2011 12:59 pm

<?php if (isset($product['points'])) ?> i have the error in this code can any help me. Also i need the explanation for the code i want to use.

final year ieee projects


Newbie

Posts

Joined
Wed Dec 14, 2011 12:56 pm

Post by straightlight » Thu Dec 15, 2011 5:41 am

Just make the replacement on the above and this error should no longer be shown after submitting the form. :)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 65 guests