Post by RobDavis » Tue Sep 26, 2017 11:11 am

Although I tried and tried, I could not get a download to show after completing Free Checkout. Then I noticed:

After logging in as Returning Customer, Add an item to the cart, then go to Downloads link. It says "Your shopping cart is empty!".

1. That's not correct, and 2. Shouldn't it say "You have no downloads.."?

Newbie

Posts

Joined
Sun Sep 24, 2017 8:26 am

Post by straightlight » Tue Nov 14, 2017 6:11 am

No OC versions provided.

As for the text_empty, it would rather display:

Code: Select all

You have not made any previous downloadable orders!
Although, the reason it doesn't is because a product has been added to the cart and Opencart uses the site body to add a product. Since the removal keys of the text definitions from the controllers, Opencart takes the last passed definition entry which then outputs: Your shopping cart is empty! message instead.

If the language text definition would of remained in those controller files as they were supposed to in the first place, the right 'text_empty' key from the languages would be displayed instead. ;)

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Guru Member

Posts

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

Post by Johnathan » Tue Nov 14, 2017 11:34 pm

This is a bug common to some OpenCart 3.0 pages. You can usually fix it by adding this line in the controller file:

Code: Select all

AFTER THE FIRST INSTANCE OF:
$this->load->language(

ADD:
$data['heading_title'] = $this->language->get('heading_title');

I suspect it'll be fixed in a future update of 3.0.

Image
Image Image Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 17 guests