X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   More Items link (https://forum.x-cart.com/showthread.php?t=53520)

sabinudash 04-29-2010 07:27 PM

More Items link
 
Hi, would anyone please give a direction?

I would like to add 'More items" link under each thumbnail linking to the main category of that item.

I added a link at the bottom of skin1/customer/main/buy_now.tpl. But it didn't work.

How do I add link to the 'main category'? I really appreciate script for this link. I am using x-cart gold, 4.3.1

Thank you very much.

Shamun 04-29-2010 08:12 PM

Re: More Items link
 
If you're wanting it under a thumbnail on the product page, then you will want to look in /skin1/customer/main/product.tpl
If you're wanting it under a thumbnail on the category page, then you will want to look in /skin1/customer/main/products.tpl (or if you display products in columns, then look in /skin1/customer/main/products_t.tpl )

sabinudash 04-29-2010 08:23 PM

Re: More Items link
 
Thank you for your response.

Would you possibly give me some hints on script linking to the main category as well?

Thank you.

Shamun 04-30-2010 01:31 AM

Re: More Items link
 
The variable {$cat} contains the category number of a product when viewing single products. So you could do something such as this link (note: havent tested this myself. Its a guess):

{$http_location}/{$xcartdir}/home.php?cat={$cat}

If you're website isnt installed to root. If it is..
{$http_location}/home.php?cat={$cat}


All times are GMT -8. The time now is 06:43 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.