Post by tillieb » Mon Jun 25, 2012 3:39 pm

I know this has been covered, but I've been searching all day through search results and just want to clarify a few things.

I just upgraded from 1.5.2.1 to 1.5.3.1,
I am receiving many errors, and I believe it's due to me trying to be smart and remove some of the required and non-required text fields during checkout.
I followed the tutorial from the FAQ/Tutorial section, (which is a little confusing to begin with)

Then saw another comment suggesting that instead of removing the field, to just make it say input type="hidden"
which makes sense (does this also work with textareas? I want to remove the comment text areas at checkout, too. textareas don't have a type). And after that, going into the .php file and removing the validation code...?

?? so I should only worry about removing this

Code: Select all

		if (isset($this->session->data['guest']['fax'])) {
			$this->data['fax'] = $this->session->data['guest']['fax'];				
		} else {
			$this->data['fax'] = '';
		}
?? It's an if else statement, so why do I need to remove it? Won't it just say "if there is something there, get that, if not, get nothing?

I don't know what I'm thinking ;D :-\ :-[

I know this is a lot...
But while hunting a trying to learn, i went into my error.log file and found all this (just a sample of the mess I've made)

Code: Select all

2012-06-25 1:45:43 - PHP Notice:  Undefined index:  banner_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/module/banner.php on line 13
2012-06-25 2:10:58 - PHP Notice:  Undefined index:  banner_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/admin/view/template/module/banner.tpl on line 36
2012-06-25 2:11:47 - PHP Notice:  Undefined index:  banner_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/module/banner.php on line 13
2012-06-25 2:11:51 - PHP Notice:  Undefined index:  banner_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/module/banner.php on line 13
2012-06-25 2:12:31 - PHP Notice:  Undefined index:  banner_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/module/banner.php on line 13
2012-06-25 2:36:30 - PHP Notice:  Undefined index:  banner_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/module/banner.php on line 13
2012-06-25 3:07:58 - PHP Notice:  Undefined index:  banner_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/module/banner.php on line 13
2012-06-25 6:31:36 - PHP Notice:  Undefined index:  banner_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/module/banner.php on line 13
2012-06-25 6:31:36 - PHP Notice:  Undefined index:  banner_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/module/banner.php on line 13
2012-06-25 7:16:04 - PHP Notice:  Undefined index:  fax in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/checkout/guest.php on line 256
2012-06-25 7:16:04 - PHP Notice:  Undefined index:  company_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/checkout/guest.php on line 261
2012-06-25 7:16:04 - PHP Notice:  Undefined index:  tax_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/checkout/guest.php on line 262
2012-06-25 7:16:08 - PHP Notice:  Undefined index:  comment in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/checkout/shipping_method.php on line 151
2012-06-25 7:16:11 - PHP Notice:  Undefined index:  comment in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/checkout/payment_method.php on line 192
2012-06-25 7:20:08 - PHP Notice:  Undefined index:  fax in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/checkout/guest.php on line 256
2012-06-25 7:20:08 - PHP Notice:  Undefined index:  company_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/checkout/guest.php on line 261
2012-06-25 7:20:08 - PHP Notice:  Undefined index:  tax_id in /hermes/bosweb/web094/b946/ipg.healingthroughillnes/storefront/catalog/controller/checkout/guest.php on line 262
Does anyone have any advice for me? :( (no yelling please :) )

Everything is working, but... What to do with these errors...
Last edited by tillieb on Wed Jun 27, 2012 4:01 pm, edited 1 time in total.

Newbie

Posts

Joined
Mon Jun 18, 2012 9:40 am

Post by tillieb » Mon Jun 25, 2012 3:43 pm

btw, the fax, tax_id, and comment errors are probably my fault.
I'm puzzled by the banner_id error though.
I went into that file and looked at line 13

Code: Select all

		$results = $this->model_design_banner->getBanner($setting['banner_id']);
*sigh
Don't know what to do... :(


Maybe I'll have to start from scratch for the checkout fields.
Can anyone confirm if this tutorial is accurate?
http://ffct.cc/removing-checkout-fields-in-opencart/

Newbie

Posts

Joined
Mon Jun 18, 2012 9:40 am

Post by tillieb » Wed Jun 27, 2012 4:02 pm

Anybody? especially the banner_id

What would cause that, and how do I fix that?

My error log is filling up with that one. :(

Thanks

Newbie

Posts

Joined
Mon Jun 18, 2012 9:40 am
Who is online

Users browsing this forum: No registered users and 34 guests