Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   Category drop down & sales items (/showthread.php?t=4403)

vonspurter April 28th, 2011 11:46 AM

Category drop down & sales items
 
Having searched the forum it seems that this is possible. I do html and php but find integrating this into df a slight problem - can anyone shed any light on achieving this please?

Finally - the sales item custom view - how to use?

Eric April 28th, 2011 11:58 AM

Hi

Can you please expand and clarify your question? I have no idea what you want to do?

Also, please post 1 question per thread as per posting guidelines.

Eric

vonspurter April 28th, 2011 12:11 PM

Sorry about 2 questions. To save room on the sidebar, I'd like to have a dropdown list of available categories as opposed to the standard DF category widget which displays all categories in one long list.

Eric April 28th, 2011 12:23 PM

This works as a Widget View. Just create a new Widget here: The Factory > Your Store > VIEWS > WIDGETS > Add a new view

Then add a Category list module to your new view.

Then add the following code to your Text module.

HTML Code:

<script type="text/javascript">
        function redirectMe (sel) {
                var url = sel[sel.selectedIndex].value;
                window.location = url;
        }
</script>


<select name="myselect" onchange="redirectMe(this);">
        <option value="#">Select a category</option>
        [category.list before='' after='']
            <option value="[category.link]">[category.name]</option>
        [/category.list]
</select>


vonspurter April 28th, 2011 12:57 PM

I pasted that into a text widget - I get the dropdown but on clicking what I get is [category.name] without the values.

Eric April 28th, 2011 12:58 PM

It should be pasted into a Category List module.

vonspurter April 28th, 2011 01:00 PM

Disregard ! Know what you mean now....

meinehandtasche January 17th, 2012 02:27 PM

Store ID: 32722
Website URL: http://www.meinehandtasche.de/
URL to page in question: http://www.meinehandtasche.de/store/

Hi Eric,

how can I use your code in order to display not the categories but the brands?

Right now there are too many brands to show as separate menu link as you can see on my website.

Best regards,
Oliver

Eric January 17th, 2012 02:32 PM

Hi
Quote:

Originally Posted by meinehandtasche (Post 27931)
Store ID: 32722
Website URL: http://www.meinehandtasche.de/
URL to page in question: http://www.meinehandtasche.de/store/

Hi Eric,

how can I use your code in order to display not the categories but the brands?

Right now there are too many brands to show as separate menu link as you can see on my website.

Best regards,
Oliver

That is covered here: /showthread.php?t=4411

This post is off topic. Thread closed.

Eric


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

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