![]() |
list all products
Anyone know how to put an extra page in that lists all products from all categories?
Cheers |
Hey, that would be great! We could also use that to create a .PDF catalog of all our items. Hope somebody replies. :)
|
Hate to sound like an idiot, but can you be a bit more specific?
|
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 |
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:
<TABLE ALIGN=CENTER VALIGN=TOP WIDTH=100%> |
Thankyou.
I will be able to sort this now - cheers for the code. |
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:
{elseif $main eq "listall"} 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. |
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. |
Wow Funkydunk.
You've completed the script. Now I'll try to implement it.... Cool :P |
cyberactive,
It doesnt split by category like your list did but it is integrated. :) |
All times are GMT -8. The time now is 05:27 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.