1

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
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.
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.
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.
Ahaa, its pleasant conversation about this article here at this webpage, I have read all that, so now me also commenting at this place.
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.
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.
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.
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.
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.
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!
I am sure this piece of writing has touched all the internet viewers, its really really fastidious article on building up new weblog.
Ahaa, its fastidious discussion about this paragraph here at this webpage, I have read all that, so now me also commenting here.