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 April 13th, 2014, 03:08 AM
spstore spstore is offline
 
Join Date: Apr 2014
Posts: 10
Default How to show different types of products?

Hi,

I want to show three different types of products:

Products On Sale
Products Coupons
Other Products

So these are actually three different categories of products on my store.

Now, I have updated the default view of category and product detail pages for "Products on Sale" category.

how can I assign default views for other two types of products?

Coupons
and other products.

I created one coupons category and created a new view which shows coupons. If I have to add 10 coupon categories, it seems like I'll have to create 10 copies of the same view and assign to each category!

Is there some better way, so I could use three different views for three different types of products?
  #2  
Old April 13th, 2014, 05:39 AM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

See how you can set up custom views on a per category basis in this video: http://www.datafeedr.com/videos/?vid...rc=yt#videotop
  #3  
Old April 13th, 2014, 06:39 AM
spstore spstore is offline
 
Join Date: Apr 2014
Posts: 10
Default

Hi Stefan,

My question is a bit different.

I do not want to apply customer view on a single category. That's what I have already done. The problem is I have two groups of categories and each group has multiple categories. See example below:

Group 1. Products on Sale -> Contains 10 Categories -> Uses Default View
Group 2. Coupons -> Contains 10 Categories -> Do you mean I have to create a separate customer view for each category in group 2? Although, this is fine for one time, but what if I have to change something later? I'll have to change it in the custom view created for each category.

Could you please look into this more thoroughly? I would really appreciate that.

Last edited by spstore : April 13th, 2014 at 06:41 AM.
  #4  
Old April 13th, 2014, 10:27 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Unfortunately category styling does not 'cascade' down to subcategories. You would have to modify each category view.

The other option is to put a conditional statement into your Default category view so as to show specific stylings in specific categories:

PHP Code:
<?php if ( $category->id == 123 || $category->id == 456 ) : ?>

HTML and code here for category 123 and 456

<?php elseif ( $category->id == 789 || $category->id == 012 ) : ?>

HTML and code here for category 789 and 012

<?php endif; ?>
That would be another option.

Eric
  #5  
Old April 14th, 2014, 11:03 AM
spstore spstore is offline
 
Join Date: Apr 2014
Posts: 10
Default

Hi Eric,

That seems a workable option.

Just a quick one: is it possible that instead of adding all the HTML for both/multiple options in a single place (it will make things messy), I could create a separate widget/view/module and then just call that after each condition? This will make things quite manageable.
  #6  
Old April 14th, 2014, 12:04 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Yes, I think that will work but I'm not sure pagination will work at that point.

Eric
 


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 more products Dennis Problems 1 August 3rd, 2012 04:11 AM
show count of Products Task001 Questions 2 May 19th, 2012 09:47 PM
Is there any way to show only refurbished and used products? sandeep821 Questions 1 April 26th, 2012 10:34 AM


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


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