![]() |
Adding Product Listing to Detailed Product Page
Hi I'm a new user to X-Cart, but I'll like to know how is it possible to have a product listing of the category at a detailed product page?
This is something like what I'm referring to : http://www.ahavaus.com/site/body_handcream.html I'm not sure if I'm doing this right, but I think this would mean that I have to edit home.tpl to include the codes from products_t.tpl right? But I'm having a problem because home.tpl will know recognise the $product array variable from products.tpl or product_t.tpl. Any help on this would be greatly appreciated!! Thanks a lot for your time!! |
Re: Adding Product Listing to Detailed Product Page
So you want to show all the products in a category at the product detail level?
|
Re: Adding Product Listing to Detailed Product Page
1 Attachment(s)
Quote:
For version 4.1.9, I would have done so: In the file "product.php" insert the following lines (before - "# Assign the current location line"): PHP Code:
In the end file "skin1\customer\main\product.tpl" insert the following lines: PHP Code:
Result: Attachment 852 {assign var="count_per_row" value=3} - Specifies the number of products displayed in a row. |
Re: Adding Product Listing to Detailed Product Page
Hi Yurij,
Thanks a lot! It works! One more question: Supposing you want to have multiple pages on the product listing? What additional code will you need to add? |
Re: Adding Product Listing to Detailed Product Page
At a detailed product page? Or where?
|
Re: Adding Product Listing to Detailed Product Page
Hi Yurij,
For the multiple pages for the products listing. I actually amended a bit of your code, so now the product listings will be reflected on the right column. But what if there are too many products in the category and I'll like to have a page selector? |
Re: Adding Product Listing to Detailed Product Page
I see no sense in that.
In this unit output products for selected product categories. The same, we will see if we select the product category (with page navigation). Maybe it makes sense to withdraw the first 5-10 products, and then to link at the bottom (View all product), which will rely on the product category. |
Re: Adding Product Listing to Detailed Product Page
Yurij,
I'm really interested in doing something similar to this, but to display all products in a specific category in a little table on the homepage, rather than in every product template. Do you think this could be done by adapting your code, and if so what would I need to alter? Many thanks, Rachael |
Re: Adding Product Listing to Detailed Product Page
|
| All times are GMT -8. The time now is 08:46 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.