Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

More Items link

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-29-2010, 07:27 PM
 
sabinudash sabinudash is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 66
 

Default 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.
Reply With Quote
  #2  
Old 04-29-2010, 08:12 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default 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 )
__________________
- Shane Munroe
Reply With Quote

The following user thanks Shamun for this useful post:
sabinudash (04-29-2010)
  #3  
Old 04-29-2010, 08:23 PM
 
sabinudash sabinudash is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 66
 

Default 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.
__________________
X-Cart 5.3.3.4 Multivendor
X-Cart 5.3.3.4 Business (Testing)
Reply With Quote
  #4  
Old 04-30-2010, 01:31 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default 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}
__________________
- Shane Munroe
Reply With Quote

The following user thanks Shamun for this useful post:
sabinudash (05-04-2010)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:34 AM.

   

 
X-Cart forums © 2001-2020