| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
list all products | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
list all products
Anyone know how to put an extra page in that lists all products from all categories?
Cheers
__________________
ex x-cart guru |
|||||||
#2
|
|||||||
|
|||||||
Hey, that would be great! We could also use that to create a .PDF catalog of all our items. Hope somebody replies.
__________________
- okdpm X-Cart Gold Version: 3.5.1 Things are more like they are now than they have ever been before... |
|||||||
#4
|
|||||||
|
|||||||
Quote:
Hi Boomer, I am building a shop and they require one page that lists all products, no matter what category the product is in. Ideally this would have a few other details as follows: SKU | Item Description | Category | Link to view | Add to Cart ?? I know someone did something like this for a printable product list but could find it on the forum. Thanks
__________________
ex x-cart guru |
|||||||
#5
|
|||||||
|
|||||||
Here's my php code to create a product list.
I've made a seperate php file for this. But I don't know how to integrate it into the look and feel of X-cart.... Code:
__________________
Dennis Shop @ http://www.cyberlease.nl Version shop: 3.4.4 (shop is NOT life anymore) Mods: - Dutch language - Changed payment methods and shipping methods - Package tracking system for Dutch TPGpost. |
|||||||
#6
|
|||||||
|
|||||||
Thankyou.
I will be able to sort this now - cheers for the code.
__________________
ex x-cart guru |
|||||||
#7
|
|||||||
|
|||||||
Sorted.
Had to create a new php file based upon home.php. I called it list_all.php Code:
This includes another file based upon products.php Code:
It also includes a template customer/list_all.tpl which is identical to home.tpl except that I hard coded the page title. customer/home_main.tpl was amended by adding: Code:
and creating a template as customer/main/show_all.tpl This is effectively the original product listing in customer/main/product.tpl but I split it out so that I could show additional columns such as the category name and also to add the dialog box. I could be bothered to fully integrate this part. You will see what I mean when you run it.
__________________
ex x-cart guru |
|||||||
#8
|
|||||||
|
|||||||
forgot to say that the file is called by going to yourdomain.com/total_list.php?main=listall
Also that I have sorted it by category name but this can be changed by amending the sql order by code in all_products.php.
__________________
ex x-cart guru |
|||||||
#9
|
|||||||
|
|||||||
Wow Funkydunk.
You've completed the script. Now I'll try to implement it.... Cool :P
__________________
Dennis Shop @ http://www.cyberlease.nl Version shop: 3.4.4 (shop is NOT life anymore) Mods: - Dutch language - Changed payment methods and shipping methods - Package tracking system for Dutch TPGpost. |
|||||||
#10
|
|||||||
|
|||||||
cyberactive,
It doesnt split by category like your list did but it is integrated.
__________________
ex x-cart guru |
|||||||
|
|||
X-Cart forums © 2001-2020
|