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']);
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.
There are already a few post about this and solutions also - use the search.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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.
Maybe .. but it is boring to read such messages only because people are too lazy to use the search!npn2531 wrote:OSWorX, it would probably take you less time to post a link than post a lecture.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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.
Maybe you guys are just a tough crowd over at OpenCart.
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.
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.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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!
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!
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:
with
Worked perfectly for me.
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');
Code: Select all
$language->load($order_info['language_directory']);
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 ?
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 ?
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.
.
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
.
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
.
~ OC 3.0.3.2 and OCmods only ~
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
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.
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);
}
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
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
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: No registered users and 120 guests