| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding Product Listing to Detailed Product Page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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!!
__________________
Vi8e Interactive X-Cart Gold 4.1.9 |
|||||||
#2
|
|||||||
|
|||||||
![]() So you want to show all the products in a category at the product detail level?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() 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: {assign var="count_per_row" value=3} - Specifies the number of products displayed in a row. |
|||||||||
#4
|
|||||||
|
|||||||
![]() 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?
__________________
Vi8e Interactive X-Cart Gold 4.1.9 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() At a detailed product page? Or where?
|
|||||||||
#6
|
|||||||
|
|||||||
![]() 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?
__________________
Vi8e Interactive X-Cart Gold 4.1.9 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#8
|
|||||||
|
|||||||
![]() 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
__________________
-- X-cart Version 4.1.9 |
|||||||
#9
|
|||||||||
|
|||||||||
![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|