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
Old January 19th, 2013, 09:05 PM
sasquach42 sasquach42 is offline
Join Date: Nov 2012
Posts: 10
Default Category-specific product detail page?

I am implementing several different categories for different product types. I am adding additional information to each product in a category using unused fields on the product record in order to be able to display a common summary of each product in a category in a custom category product listing. So far so good - this has been prototyped all the way through for the first category.

However, now I want to implement a category specific product detail page. (The semantics of the overloaded product record fields differ by category and require a different product detail page for each category)

Can one do this and if so, how does a clickthrough on the detail button for a product in the category product listing view know how to find the category specific product detail page?
Old January 19th, 2013, 09:14 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
Join Date: Feb 2008
Posts: 16,902


This is not possible. However, if you are comfortable with PHP if() conditionals, you could add a Text module to the Product Details view and serve up dynamic content based on the category that the product is in:

PHP Code:
<?php if ($product->cat_id == '123456') { ?>
    Display custom information about products in category ID: 123456
<?php } elseif ($product->cat_id == '987654') { ?>
    Display custom information about products in category ID: 987654
<?php } else { ?>
    Display information about products that fall in other categories than 123456 or 987654.
<?php ?>
Old January 19th, 2013, 09:18 PM
sasquach42 sasquach42 is offline
Join Date: Nov 2012
Posts: 10

Good idea - that can work if I just move the buy button under the added text. Thanks!

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
Linking from category page items directly to merchants product detail abbeydriving Questions 4 May 3rd, 2012 06:49 PM
Add Product Detail View to a specific category Sternberg Feature Requests 3 April 4th, 2012 10:53 AM
Custom Product Details Page for a Specific Category? kaje Questions 1 April 25th, 2011 01:31 PM
how do i make the category and product detail pages use a particular page template grooves1200 Questions 2 February 27th, 2011 10:12 AM

All times are GMT -5. The time now is 12:49 PM.

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