Hiển thị sản phẩm của danh mục con trong danh mục cha Opencart

Posted by adminthuylieu16 07/11/2015 13 Comment(s) Thủ thuật,

Như tiêu đề bài viết, hôm nay mình sẽ hướng dẫn show các sản phẩm của danh mục con trong danh mục cha Opencart một cách tự động. Từ giờ khi đăng sản phẩm các bạn chỉ cần chọn danh mục con, không cần mất công chọn danh mục cha nữa.

Để hiển thị các sản phẩm của danh mục con trong danh mục cha Opencart một cách tự động các bạn mở file catalog/controller/product/category.php lên tìm:

 
1
 
'filter_category_id' => $category_id,

và chèn đoạn code dưới đây phía dưới đoạn code vừa tìm được

 
1
 
'filter_sub_category' => true,

Bài hướng dẫn khá ngắn và dễ thực hiện nên mình nghĩ các bạn sẽ không phải gặp khó khăn gì, chúc các bạn thành công!

Nguồn: opencart84

13 Comment(s)

AbWBLmMq:
18/10/2024, 04:36:08 AM, www.example.com
Reply

1

Roberta Jackson:
03/10/2025, 09:50:31 PM, levited.com
Reply

Ahaa, its pleasant discussion on the topic of this paragraph here at this web site, I have read all that, so at this time me also commenting at this place.

Jennifer Nguyen:
07/10/2025, 12:33:12 AM, antibact.sbs
Reply

I will right away seize your rss as I can not in finding your email subscription hyperlink or newsletter service. Do you have any? Please allow me recognize so that I may just subscribe. Thanks.

Jennifer Nguyen:
07/10/2025, 03:52:06 AM, antibact.sbs
Reply

I will right away seize your rss as I can not in finding your email subscription hyperlink or newsletter service. Do you have any? Please allow me recognize so that I may just subscribe. Thanks.

Emily Deleon:
10/10/2025, 03:36:16 AM, dapoxetined.org
Reply

Ahaa, its pleasant conversation about this article here at this webpage, I have read all that, so now me also commenting at this place.

Martha Lopez:
10/10/2025, 03:25:10 PM, amoxibest.top
Reply

Hi, I do believe this is an excellent blog. I stumbledupon it ;) I'm going to revisit yet again since I bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.

Robin Miller:
11/10/2025, 12:41:17 AM, medshop24h.top
Reply

Hello, Neat post. There’s an issue with your site in internet explorer, would check this? IE nonetheless is the market chief and a big component of people will miss your excellent writing because of this problem.

Wayne Green:
11/10/2025, 08:57:22 PM, tadalah.com
Reply

I’ll immediately snatch your rss feed as I can not in finding your e-mail subscription hyperlink or newsletter service. Do you have any? Kindly permit me recognize in order that I may just subscribe. Thanks.

Amy Williams:
12/10/2025, 04:53:58 AM, sildenafiil.cc
Reply

I’ll immediately snatch your rss as I can not to find your e-mail subscription hyperlink or newsletter service. Do you’ve any? Kindly allow me realize so that I may subscribe. Thanks.

Cheryl Livingston:
12/10/2025, 04:05:23 PM, propeciaa.sbs
Reply

Hello, Neat post. There’s a problem along with your web site in internet explorer, may test this? IE still is the market chief and a good section of other folks will leave out your fantastic writing due to this problem.

Jon Powell:
12/10/2025, 10:33:24 PM, sildenaguide.com
Reply

I was suggested this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble. You're incredible! Thanks!

Jordan Prince:
28/10/2025, 02:14:51 AM, zithromax24h.sbs
Reply

I am sure this piece of writing has touched all the internet viewers, its really really fastidious article on building up new weblog.

Mrs. Kathy Reeves DDS:
29/10/2025, 07:34:24 AM, kamagras.shop
Reply

Ahaa, its fastidious discussion about this paragraph here at this webpage, I have read all that, so now me also commenting here.

Write a Comment