SearchFit - Ecommerce Platform Live Chat Call Us Today! 888.398.4703

DYNAMIC_INCLUDE(PRODUCT_PREV_NEXT)

 
Post new topic   Reply to topic    forums.searchfit.com Forum Index -> SearchFit Questions and Suggestions
View previous topic :: View next topic  
Author Message
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Tue Mar 09, 2010 7:15 am GMT    Post subject: DYNAMIC_INCLUDE(PRODUCT_PREV_NEXT) Reply with quote

It is not clear to me how to use this field and what it does.
I tried to place it on my product detail template and it is not doing anything.
Back to top
View user's profile Send private message
kris@searchfit
2


Joined: 20 Aug 2009
Posts: 32
Location: San Diego, CA

PostPosted: Tue Mar 09, 2010 12:41 pm GMT    Post subject: Reply with quote

The prev/next feature allows you to have a product show a previous and next link that will take the user to the products that come before and after that product in the current category. Here is an example of how to use it:
DYNAMIC_INCLUDE(PRODUCT_PREV_NEXT,
mainTemplate=<div><div style="float: left;">PREV_CONTENT</div><div style="float: right;">NEXT_CONTENT</div><div style="clear: both;">&nbsp;</div></div>,
prevAltTemplate=&nbsp;,
nextAltTemplate=&nbsp;,
prevTemplate=<a href="PREV_URL">PREV_NAME</a>,
nextTemplate=<a href="NEXT_URL">NEXT_NAME</a>)

the arguments to pass are as follows:
mainTemplate = the template to use to show the links. This template can use the following variables: PREV_CONTENT and NEXT_CONTENT
prevAltTemplate = the html to use for the PREV_CONTENT variable in the main template when there is no previous product. (first product in a category)
nextAltTemplate = the html to use for the NEXT_CONTENT variable in the main template when there is no next product. (last product in a category)
prevTemplate = the html to use to make the link for the previous product. The following variables are available: PREV_URL and PREV_NAME
nextTemplate = the html to use to make the link for the next product. The following variables are available: NEXT_URL and NEXT_NAME

The reason for allowing html is so you can customize this for your design specifically and maybe use images for the links if you wanted.
_________________
Kris Bailey
SearchFit
Back to top
View user's profile Send private message Visit poster's website
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Tue Mar 09, 2010 12:43 pm GMT    Post subject: Reply with quote

Kris, what will happen if they don't provide those arguments? Do we have default values in such case?
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kris@searchfit
2


Joined: 20 Aug 2009
Posts: 32
Location: San Diego, CA

PostPosted: Tue Mar 09, 2010 12:44 pm GMT    Post subject: Reply with quote

No. If they do not provide arguments we do not output anything.
_________________
Kris Bailey
SearchFit
Back to top
View user's profile Send private message Visit poster's website
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Tue Mar 09, 2010 12:47 pm GMT    Post subject: Reply with quote

We will change things a little and will provide default values, so only those store owners can work with the arguments that would like to change them.
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.searchfit.com Forum Index -> SearchFit Questions and Suggestions All times are GMT - 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum