Post by joannamiumiu » Wed Apr 28, 2021 5:51 pm

I hv the problems and don't know how to settle......pls help :( :(

public_html/catalog/controller/startup/startup.php on line 166
OpenCart Version 3.0.3.6

phpMyAdmin Version information: 4.9.5

https://www.miubuyshop.com/image/cache/ ... 00x500.png

Code from 160 to 174

Code: Select all

$this->registry->set('currency', new Cart\Currency($this->registry));
		
		// Tax
		$this->registry->set('tax', new Cart\Tax($this->registry));
		
		if (isset($this->session->data['shipping_address'])) {
			$this->tax->setShippingAddress($this->session->data['shipping_address']['country_id'], $this->session->data['shipping_address']['zone_id']);
		} elseif ($this->config->get('config_tax_default') == 'shipping') {
			$this->tax->setShippingAddress($this->config->get('config_country_id'), $this->config->get('config_zone_id'));
		}

		if (isset($this->session->data['payment_address'])) {
			$this->tax->setPaymentAddress($this->session->data['payment_address']['country_id'], $this->session->data['payment_address']['zone_id']);
		} elseif ($this->config->get('config_tax_default') == 'payment') {
			$this->tax->setPaymentAddress($this->config->get('config_country_id'), $this->config->get('config_zone_id'));

Attachments

4IOUFTJ(Q])C$QR92UFHJ[R.png

4IOUFTJ(Q])C$QR92UFHJ[R.png (144.24 KiB) Viewed 274 times


Newbie

Posts

Joined
Thu Mar 18, 2021 12:06 pm

Post by OSWorX » Wed Apr 28, 2021 6:34 pm

And what IS the problem?
Posting only code leads to nothing ..

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by JNeuhoff » Wed Apr 28, 2021 7:14 pm

There is nothing wrong with that code. In fact, you are not even telling us what the problem is!

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by straightlight » Wed Apr 28, 2021 8:16 pm

xxvirusxx wrote:
Wed Apr 28, 2021 6:47 pm
maybe is this

https://github.com/opencart/opencart/bl ... p.php#L175
Yes, this would be the solution for this error message.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by paulfeakins » Fri Apr 30, 2021 6:47 pm

straightlight wrote:
Wed Apr 28, 2021 8:16 pm
Yes, this would be the solution for this error message.
What error message? ???

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by straightlight » Fri Apr 30, 2021 7:43 pm

paulfeakins wrote:
Fri Apr 30, 2021 6:47 pm
straightlight wrote:
Wed Apr 28, 2021 8:16 pm
Yes, this would be the solution for this error message.
What error message? ???
viewtopic.php?t=217408#p784968

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


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: aaron.rosete and 19 guests