Cách chỉnh sửa giới hạn upload limit 300kb / 1000 x 1000px Opencart

Posted by admin 07/11/2015 23 Comment(s)

Giới hạn upload 300kb và kích thước lớn nhất 1000px x 1000px của Opencart tất nhiên là tương đối hợp lý vì với kích thước quá lớn thì cũng không view hết trên màn hình mà dung lượng lớn quá thì dẫn đến việc xử lý ảnh và load cũng chậm. Tuy nhiên việc kích thước ảnh lớn và dung lượng lớn cũng có nhiều cái lợi nhất là khi bạn là nhà phân phối bạn phải cung cấp hình ảnh ở độ phân giải tốt nhất và sắc nét nhất cho đại lý. Việc cung cấp hình ảnh rõ ràng, chất lượng cao giúp cho khách hàng của bạn xem hình ảnh rõ nhất.

Cách chỉnh sửa giới hạn upload limit 300kb / 1000 x 1000px Opencart tương đối đơn giản. Bạn chỉ cần mở file admin/controller/common/filemanager.php tìm đoạn:

if ($this->request->files['image']['size'] > 300000) {
    $json['error'] = $this->language->get('error_file_size');
}

Sửa 300000 sửa số này thành số bạn muốn. Chúc các bạn thành công!

23 Comment(s)

Kathleen Richardson:
03/10/2025, 09:50:09 PM, levited.com
Reply

Hi, I do believe this is an excellent web site. I stumbledupon it ; ) I will come back yet again since I book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

Richard Adams:
07/10/2025, 12:30:31 AM, antibact.sbs
Reply

I'm not sure where you are getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for magnificent info I was looking for this info for my mission.

Richard Adams:
07/10/2025, 03:52:22 AM, antibact.sbs
Reply

I'm not sure where you are getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for magnificent info I was looking for this info for my mission.

Terry Higgins:
10/10/2025, 03:35:57 AM, dapoxetined.org
Reply

I all the time used to study paragraph in news papers but now as I am a user of web therefore from now I am using net for content, thanks to web.

Robert Lopez:
10/10/2025, 03:24:48 PM, amoxibest.top
Reply

I’ll immediately seize your rss feed as I can not find your e-mail subscription link or newsletter service. Do you have any? Kindly permit me recognize in order that I could subscribe. Thanks.

Amber Casey:
11/10/2025, 12:40:49 AM, medshop24h.top
Reply

I am sure this piece of writing has touched all the internet people, its really really fastidious post on building up new website.

Maxwell Gutierrez:
11/10/2025, 08:57:02 PM, tadalah.com
Reply

Everything is very open with a clear explanation of the challenges. It was definitely informative. Your site is extremely helpful. Thanks for sharing!

James Hernandez:
12/10/2025, 04:52:34 AM, sildenafiil.cc
Reply

There's certainly a lot to learn about this subject. I like all the points you made.

Teresa Alvarado DDS:
12/10/2025, 04:04:59 PM, propeciaa.sbs
Reply

I am sure this post has touched all the internet visitors, its really really good paragraph on building up new webpage.

Cory Richards:
12/10/2025, 10:32:59 PM, sildenaguide.com
Reply

Good post. I am facing many of these issues as well..

Fuhrerschein kaufen:
28/10/2025, 01:25:57 AM, xn--fhrerscheinabteilung-pec.de
Reply

Wir sind autorisierte Führerscheinvermittler und arbeiten mit den Datenbankverwaltern und Behörden beim Kraftfahrt-Bundesamt (KBA) in Flensburg und mit der Zentralen Fahrerlaubnisregister (ZFER) zusammen.

Mr. Michael Johnson:
28/10/2025, 02:14:31 AM, zithromax24h.sbs
Reply

Hello! I've been reading your site for a long time now and finally got the bravery to go ahead and give you a shout out from Atascocita Texas! Just wanted to say keep up the good job!

Tara Trujillo:
29/10/2025, 07:34:05 AM, kamagras.shop
Reply

Everyone loves what you guys are usually up too. Such clever work and exposure! Keep up the wonderful works guys I've incorporated you guys to my blogroll.

William Santos:
07/11/2025, 02:57:33 AM, sildenawin.shop
Reply

You made some decent points there. I checked on the internet for more information about the issue and found most people will go along with your views on this site.

Danielle Morgan:
07/11/2025, 06:16:08 PM, kamagradirect.shop
Reply

It's very effortless to find out any matter on web as compared to books, as I found this paragraph at this web page.

Tara Reese:
09/11/2025, 05:19:45 PM, tadalix.shop
Reply

I just couldn't go away your web site prior to suggesting that I actually loved the usual information a person supply on your guests? Is going to be again frequently to inspect new posts

Eric Bryant:
13/11/2025, 11:12:02 PM, ivermactin.sbs
Reply

These are really fantastic ideas in regarding blogging. You have touched some nice things here. Any way keep up wrinting.

Tammy Davis:
28/11/2025, 07:12:53 AM, avanafil.online
Reply

I really like what you guys tend to be up too. This sort of clever work and reporting! Keep up the very good works guys I've included you guys to my own blogroll.

Denise Lynch:
28/11/2025, 08:23:48 PM, bupropion150mg.shop
Reply

I will right away snatch your rss feed as I can not to find your email subscription link or newsletter service. Do you have any? Kindly permit me realize so that I could subscribe. Thanks.

Angela Ramirez:
30/11/2025, 07:35:12 AM, acyclovir-400-mg.store
Reply

I'll right away snatch your rss feed as I can't to find your e-mail subscription link or newsletter service. Do you have any? Kindly permit me recognize so that I may subscribe. Thanks.

Kayla Mata:
03/12/2025, 07:03:41 PM, playastronaut.cc
Reply

Hi, I do think this is an excellent web site. I stumbledupon it ;) I will return yet again since i have book-marked it. Money and freedom is the best way to change, may you be rich and continue to guide other people.

Dustin Gould:
06/12/2025, 07:51:10 PM, zolomeds.shop/zoloft-for-sale.html
Reply

This is a topic that is close to my heart... Best wishes! Exactly where are your contact details though?

Brandi Smith:
07/12/2025, 05:11:46 AM, fluco.store/fluconazole-150-mg.html
Reply

Amazing! This blog looks just like my old one! It's on a entirely different topic but it has pretty much the same page layout and design. Outstanding choice of colors!

Write a Comment