Post by wfragakis » Wed Jun 27, 2018 12:27 am

Wrestling with this one and the solution indicated above by straighlight did not work for me (yes, yes, flushed caches, etc.)

Did notice that my header displayed the proper wishlist count and, further, that it uses the same text variable. I also completely deleted any wishlist text strings in account.php and still had the Wishlist (%s) displayed which leads me to believe that there is a collision of test strings with account/account.php and common/header.php. If this helps those with a deeper understanding of ferreting out the issue...

Newbie

Posts

Joined
Mon Jun 25, 2018 11:00 pm

Post by cheeseus » Wed Jun 27, 2018 6:18 am

wfragakis wrote:
Wed Jun 27, 2018 12:27 am
Wrestling with this one and the solution indicated above by straighlight did not work for me (yes, yes, flushed caches, etc.)

Did notice that my header displayed the proper wishlist count and, further, that it uses the same text variable. I also completely deleted any wishlist text strings in account.php and still had the Wishlist (%s) displayed which leads me to believe that there is a collision of test strings with account/account.php and common/header.php. If this helps those with a deeper understanding of ferreting out the issue...
I have long abandoned this – it never worked for me either. But I hope they will fix this in the new version (indeed this page was altered a bit in the beta). And because it's been about a year since the last official release, it's high time a new version came out.

New member

Posts

Joined
Sat Apr 18, 2015 3:59 am

Post by cyclops12 » Thu Jun 28, 2018 12:18 am

cheeseus wrote:
Sun Mar 04, 2018 10:05 pm
Thank you for replying. However, your fix does not solve the problem.
When I add the lines you've written, a different text appears ("Modify your wish list"), which should not be displayed there – I suppose it should be displayed on the Account/Wishlist page or elsewhere.
What should display in the left-hand-side menu is "Wish List" – a plain link that does not contain a variable. I guess the easiest fix would be to find the actual text in the corresponding language file and remove the variable in brackets. But I don't know which language file to look in.
And, equally important – if this is an actual bug, it should be reported and fixed.
Bit late reply but to edit "Modify your wish list" you will find the file in catalog/language/en-gb/account/account.php

Active Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by straightlight » Thu Jun 28, 2018 2:09 am

Wrestling with this one and the solution indicated above by straighlight did not work for me (yes, yes, flushed caches, etc.)
What does that indicate?

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

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Post by xxvirusxx » Sun Jul 08, 2018 4:37 pm

Or another fix

Search in catalog/controller/account/account.php

Code: Select all

$data['wishlist'] = $this->url->link('account/wishlist');
add after

Code: Select all

if ($this->customer->isLogged()) {
			$this->load->model('account/wishlist');

			$data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist());
		} else {
			$data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0));
		}
Search in catalog/language/*/account/account.php
replace

Code: Select all

$_['text_wishlist']       = 'Modify your wish list';
With

Code: Select all

$_['text_wishlist'] = 'Wish List (%s)';

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by straightlight » Sun Jul 08, 2018 9:14 pm

This solution has now been addressed on GitHub. Thanks for posting this.

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

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Users browsing this forum: one2012 and 8 guests