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

Featured product to category page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-16-2013, 08:50 AM
 
sadra.ho sadra.ho is offline
 

Member
  
Join Date: Jul 2009
Posts: 12
 

Question Featured product to category page

Hi guys

We have featured products available on the first page however we are trying to change the link so that when the user clicks the product they are taken to the products category page rather than the products page. Does anyone know how to accomplish this?

Thanks in advance
__________________
4.4.2
Reply With Quote
  #2  
Old 02-16-2013, 02:44 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Featured product to category page

You will have to modify the featured products tmeplate and change the <a> tag to point to the category but I am not sure why you want it like this - as a customer if I click on product I will expect to see the product page not the category page

Not test but something like this
<a href="home.php?cat={$product.categoryid}">
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 02-16-2013, 02:51 PM
 
sadra.ho sadra.ho is offline
 

Member
  
Join Date: Jul 2009
Posts: 12
 

Default Re: Featured product to category page

Cheers for you reply. I know what you mean however our client wants it this way. Unfortunately the code you gave didn't work, it just comes up with cat= and it doesn't find the id.
__________________
4.4.2
Reply With Quote
  #4  
Old 02-16-2013, 02:57 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Featured product to category page

Either the array is not called product or the categoryid is not available in it. Use the webmaster mode to find out
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 02-16-2013, 03:22 PM
 
sadra.ho sadra.ho is offline
 

Member
  
Join Date: Jul 2009
Posts: 12
 

Default Re: Featured product to category page

I believe the array is called product however categoryid doesn't seem to work. Not really sure what to do
__________________
4.4.2
Reply With Quote
  #6  
Old 02-17-2013, 01:16 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,129
 

Default Re: Featured product to category page

Move to X-Cart Customization > Storefront Design & Template Editing in v 4.4.x
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
  #7  
Old 02-19-2013, 03:36 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Featured product to category page

categoryid may not be available in Featured Products. Dump $products in featured_products.php to see what's there. You may have to adjust featured_products.php or include/search.php to include categoryid.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
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:25 PM.

   

 
X-Cart forums © 2001-2020