Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 3rd, 2011, 01:06 PM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default How Can I One Category Parent Link to Product Listing?

I would like to add a "see more like this" link on just below the go to store button on this page. and I would like it to link only to the category it belongs (not all the parent categories)

I would like this for each of the products listed on this page.

Is there a way to do this?

So it would read, see more like this and then it would link to the category where the product is placed.

Any thoughts?
  #2  
Old February 3rd, 2011, 01:28 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

This code provides a URL to the category page of a specific product:

[server.url query='c=$product->cat_id&view=category']

To use that in an anchor tag you would do this:

<a href="[server.url query='c=$product->cat_id&amp;view=category']">View more products like this.</a>

And to use the category name in there you could do this:

<a href="[server.url query='c=$product->cat_id&amp;view=category']">
<?php echo datafeedr()->category_name($product->cat_id); ?>
</a>


That code must be used within a product loop (ie. between: [product.each] and [product.end]).

Eric
  #3  
Old February 3rd, 2011, 01:46 PM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

That works, but I was working under the V1 model where the last category the product was placed was the category it belonged.

I see that the products end up in the category the user travels. Nice job! So thank you but sadly will not work for what I am wanting to do.
  #4  
Old February 3rd, 2011, 05:08 PM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

It actually works very well on the right page .....On the right page.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show all sub-categories for a specific parent category ayorofrance Questions 17 January 27th, 2011 08:31 PM
Category link not clickable when viewing product detail ayorofrance Problems 6 January 10th, 2011 12:34 PM


All times are GMT -5. The time now is 01:02 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.