Jump to content

Undefined index and non-object errors after change template


Recommended Posts

Hi,

 

I made two changes to the standard template:

1. Added the option to select a certain quantity in the product listing

2. Added the weight in the checkout

 

Both changes work fine, but do produce errors in the logs which I like to solve.

 

In the first case I get the following error:

PHP Notice: Undefined index: display_qties in /home/domain.com/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 385, referer: https://www.domain.com/3-iron
PHP Notice: Trying to get property of non-object in /home/domain.com/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 385, referer: https://www.domain.com/3-iron

 

I think these two errors are part of the same problem.

 

 

In the second case the error is almost the same, an other variable: PHP Notice: Undefined index: weightUnit

 

How can I solve this?

 

Thanks very much!

Edited by Squashtoppertje (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...