Post by beipink » Mon Apr 27, 2015 9:56 am

Hello There,
I noticed that the email confirming the order has a long form of the has a "date added" as per below.
has anyone experience a similar issue?
In every other place the date is correct ie. 27 Apr 2015.
It's only on the email that is not correct as far as I can tell.

OC 2.0.2
PHP 5.3

Date Added: 27am30Country/City_f2015Mon, 27 Apr 2015 08:57:30 +100004am30_30082015Mon, 27 Apr 2015 08:57:30 +10030

solution from OC 2.0.2.1RC: https://github.com/opencart/opencart/bl ... /order.php
line 409 and 810 should be -> $language->load($order_info['language_directory']);
Last edited by beipink on Mon Apr 27, 2015 5:19 pm, edited 1 time in total.

Active Member

Posts

Joined
Tue Mar 20, 2012 7:43 pm

Post by OSWorX » Mon Apr 27, 2015 3:03 pm

There are already a few post about this and solutions also - use the search.

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

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

Post by npn2531 » Fri May 08, 2015 4:29 am

OSWorX, it would probably take you less time to post a link than post a lecture. If you are unfamiliar with how to fix the issue, you are probably unfamiliar with what to search for. I have been searching for a solution to this for 30 minutes, and your condescending post is as close as I have gotten to a finding a solution.

http://www.niora.com


New member

Posts

Joined
Tue May 19, 2009 11:56 am

Post by OSWorX » Fri May 08, 2015 5:32 am

npn2531 wrote:OSWorX, it would probably take you less time to post a link than post a lecture.
Maybe .. but it is boring to read such messages only because people are too lazy to use the search!

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

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

Post by npn2531 » Fri May 08, 2015 5:42 am

If I beg would you be willing to give me a clue? I am giving it my best, but either I don't know how to use the forum properly, or I don't know what to search for, but all I come up with is your admonishment to 'use the search forum'.

Maybe you guys are just a tough crowd over at OpenCart.

http://www.niora.com


New member

Posts

Joined
Tue May 19, 2009 11:56 am

Post by OSWorX » Fri May 08, 2015 5:54 am

Basically all what to say is in the first post already written.
More technical here: https://github.com/opencart/opencart/issues/2919
or https://github.com/opencart/opencart/issues/2908
or https://github.com/opencart/opencart/issues/2903
and finally this here https://github.com/opencart/opencart/issues/2863

So, now I am too lazy to do your work.

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

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

Post by npn2531 » Fri May 08, 2015 6:13 am

Thank you!

The first post is the link to about 850 lines of code of the entire page of opencart/upload/catalog/model/checkout/order.php.

Being nice is always better, just maybe not as much fun.

Btw, 'Global Moderator' sounds pretty important, maybe I should be nicer!

http://www.niora.com


New member

Posts

Joined
Tue May 19, 2009 11:56 am

Post by npn2531 » Fri May 08, 2015 6:48 am

Here is the fix from this link, https://github.com/opencart/opencart/issues/2919 that the moderator posted above:

in following files:

catalog/model/checkout/order.php,
catalog/model/checkout/voucher.php,
catalog/model/openbay/ebay_order.php
admin/model/sale/voucher.php
system/library/openbay.php

replace:

Code: Select all

$language->load('default');
with

Code: Select all

$language->load($order_info['language_directory']);
Worked perfectly for me.

http://www.niora.com


New member

Posts

Joined
Tue May 19, 2009 11:56 am

Post by silentmercy » Fri May 29, 2015 12:36 am

Hello,

I changed all the instances as suggested and still had same result. I decided to drop in a default.php language file from another OC 2.0.x.x. install and now the date shows correctly.

Where else might the default language file be defined to display the order confirmation date added field ?

Newbie

Posts

Joined
Sat Jun 16, 2012 4:30 am

Post by veve_design » Wed Jan 27, 2016 7:45 pm

Thank you for your last post, it made things clear to me. In my case, there are 2 languages, english is not the default one, and in my admin/language the default one was missing. A quick way to solve it was to duplicate the english folder and rename it with my default one. I also renamed the file inside it, english.php with my default language.

Newbie

Posts

Joined
Wed Jan 27, 2016 7:40 pm

Post by supak111 » Wed Feb 03, 2016 3:51 am

.
I can confirm that for OC 2.0.1.1 you have to replace the line in all 5 files like it says above

AND

you also have to make a copy of your English language folder and rename it Default.
If you don't do both it wont work

.

Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by hitechpals » Fri May 06, 2016 7:08 am

I found it more convenient to add an additional check above the existing language options in the system/library/language.php file as below. No other files need to change in this case. As a programmer myself, I feel this could have been done at the first place as a compatibility option.

Note first 3 lines are existing code to help you find the location. Next 5 lines are new. They may look the same as old lines, but they are new. Another thing to keep in mind is that this is done on v2.0.2.0 code base. Yours may look different if you are at a different version.

File: system/library/language.php

Code: Select all

        public function load($filename) {
                $_ = array();

                $file = DIR_LANGUAGE . $this->default . '/' . $this->default. '.php';

                if (file_exists($file)) {
                        require($file);
                }
Little Explaining: In this file, $this-default = 'english'; Therefore the above code is effectively setting $file to english/english.php file that we all know exists and is good.

Newbie

Posts

Joined
Mon Feb 01, 2016 12:36 am

Post by IP_CAM » Fri May 06, 2016 10:33 pm

it's likely more a problem, for Users, because they still try to get all those LONG OVERDUE pre-final v.2.x Versions to work.

But No DEV is still working on those old releases, and meanwhile, OC-2 has reached Developer Version v.2.2.x, as one can find out, when downloading the latest Developer-Edition from the Download Site, all DEV Tools are still part of it...

Personally, I feel, that most UPGRADERS dream of selling more, better, or easier, after installing latest Developer-Versions, and most of them seem to be unaware, that latest Version, like WINDOWS, and other well-named Brands, usually show some problems, to be found, and fixed, after tested by a large Crowd of 'regular' users.

Honest SHOP Users would be aware of such, no PRO in the whole world would use new, untested DEV Software, to run his daily business, or employ untested Workers, to work on 'system-relevant' Production Equipment. But when it comes to OC, they all believe, hope, or at least expect, that it would, on impact, and without a single problem as well. By not even mentioning the uncounted amounts of Modification and Themes, the same Peoples probably expect, to further do their Job, like ever before...

And all this only, just because OC comes for free.
What a bunch of silly Dreamers... :'(
just to add my lousy 2 Cents to this.
Ernie

Please don't send me OC Forum Personal Messages, just contact: jti@jacob.ch
---
OC 1.5.6.5 LIGHT Test Site: http://www.bigmax.ch/shop/
OC 1.5.6.5 V-PRO Test Site: http://www.openshop.li/shop/
My Github OC Site: https://github.com/IP-CAM
2'600+ FREE OC Extensions on the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 6 guests