PDA

View Full Version : Sebenza Category Template Manager Custom Product Field Filtering


papi34
07-27-08, 06:57 PM
I'm using Custom Product Field Sorting (i.e. Filtering) with Sebenza's Category Template Manager. I have two questions (using the sample code below):

1) After the user selects a particular field (e.g. USA Toys), the drop-down box always reverts to Manufacturers. How can I make it stay on USA Toys so the user knows that is the current selection?
2) Is there a way to include an option in the drop-down box to revert to showing all (i.e. no filtering) ?


<form method="post" action="&mvt:global:sessionurl;">
<input type="hidden" name="Screen" value="CTGY">
<input type="hidden" name="Store_Code" value="&mvt:global:Store_Code;">
<input type="hidden" name="Offset" value="&mvt:global:Offset;">
<input type="hidden" name="Category_Code" value="&mvt:global:Category_Code;">
<input type="hidden" name="CpField" value="Manufacturer">
<select onChange="submit();" name="CpValue">
<option value="">Manufacturers</option>
<option value="Acme 123">Acme 123</option>
<option value="BlueSky Widgets">BlueSky Widgets</option>
<option value="USA Toys">USA Toys</option>
</select>
</form>


If it helps, here's my specific implementation:
http://www.bronsondesign.com/category/sale.html

Club RSX.com
08-04-08, 05:01 PM
Here is the way to keep the highlight.


<form method="post" action="&mvt:global:sessionurl;">
<input type="hidden" name="Screen" value="CTGY">
<input type="hidden" name="Store_Code" value="&mvt:global:Store_Code;">
<input type="hidden" name="Offset" value="&mvt:global:Offset;">
<input type="hidden" name="Category_Code" value="&mvt:global:Category_Code;">
<input type="hidden" name="CpField" value="Manufacturer">
<select onChange="submit();" name="CpValue">
<mvt:if expr="g.SortBy EQ ''">
<option value="" selected>Manufacturers</option>
<mvt:else>
<option value="">Manufacturers</option>
</mvt:if>
<mvt:if expr="g.SortBy EQ 'Acme 123'">
<option value="Acme 123" selected>Acme 123</option>
<mvt:else>
<option value="Acme 123">Acme 123</option>
</mvt:if>
<mvt:if expr="g.SortBy EQ 'BlueSky Widgets'">
<option value="BlueSky Widgets" selected>BlueSky Widgets</option>
<mvt:else>
<option value="BlueSky Widgets">BlueSky Widgets</option>
</mvt:if>
<mvt:if expr="g.SortBy EQ 'USA Toys'">
<option value="USA Toys" selected>USA Toys</option>
<mvt:else>
<option value="USA Toys">USA Toys</option>
</mvt:if>
</select>
</form>

NinaLeon
08-09-08, 08:43 PM
Does adding


<option value="">Show All</option>


work to show all and clear the filter?

(I think that's what we did.)

papi34
08-09-08, 09:06 PM
Yes, I got it working 1 - 2 weeks ago and that's what I ended up doing. You can see it in action and view source code at:
http://www.bronsondesign.com/category/murray-feiss.html

Thanks all!

papi34
08-24-08, 05:39 AM
What am I doing wrong???

Say I want to create a Category Page of Widgets that only displays Widgets Manufactured by ACME (i.e. no dropbox to select from). My custom product field is named "Manufacturer". I put the following form on my Category Page, and it shows Widgets from All manufacturers!


<form method="post" action="&mvt:global:sessionurl;">
<input type="hidden" name="Screen" value="CTGY">
<input type="hidden" name="Store_Code" value="&mvt:global:Store_Code;">
<input type="hidden" name="Offset" value="&mvt:global:Offset;">
<input type="hidden" name="Category_Code" value="&mvt:global:Category_Code;">
<input type="hidden" name="CpField" value="Manufacturer">
<input type="hidden" name="CpValue" value="ACME">
</form>

Club RSX.com
08-25-08, 05:38 PM
your CpValue is a hidden option, you need to make that a clickable option in order for it to work.

papi34
08-25-08, 05:43 PM
your CpValue is a hidden option, you need to make that a clickable option in order for it to work.


That's the thing...I purposely made it hidden because I don't want it to be selectable. There is only one choice and that is the one that shoule be executed. Is there not a way to do this with a form? Or is there a better way to make this work within the confines of Sebenza Category Template Manager?

Club RSX.com
08-25-08, 05:58 PM
I guess I don't understand then, why even list the hidden field then? Are you trying to autopopulate the drop down or hard code it? If you are trying to hard code it then just give them the option that you want and don't worry about the rest.

papi34
08-25-08, 06:12 PM
I guess I don't understand then, why even list the hidden field then? Are you trying to autopopulate the drop down or hard code it? If you are trying to hard code it then just give them the option that you want and don't worry about the rest.

Yes, I would like to hard code it, but not display the drop down box.
How would I go about doing that?

Club RSX.com
08-25-08, 06:14 PM
so you are trying to have a link, say on the side menu, that links to manufacturers. When a customer clicks on it you want it to pull up all the products that have that manufacturer based upon the field data? Is that correct?

papi34
08-25-08, 07:35 PM
so you are trying to have a link, say on the side menu, that links to manufacturers. When a customer clicks on it you want it to pull up all the products that have that manufacturer based upon the field data? Is that correct?


Not exactly...I already have links to the different brands. Each brand has it's own category page.

What I'm trying to do (without creating a bunch of new categories) is filter a category page to show a items containing a particular custom field value.

I've essentially done this with Sebenza Category Template Manager's variable Custom Product Field Filtering as seen here:
http://www.bronsondesign.com/category/tiffany.html (http://www.bronsondesign.com/category/tiffany.html)

The difference is, I want to be able to pre-select (if you will) a particular custom field to show all Tiffany table lamps for instance (i.e. not show the drop down box). ‘Tiffany’ is the category and ‘table-lamps’ is a custom product field value to be filtered. Then I could create a link to the desired results. Is that possible?

Club RSX.com
08-26-08, 12:14 AM
I am not sure if it is or isn't. I haven't played around with that enough. It would be nice if it was because it would add some nice featurers but I am not sure how to do it. I will give it some thought and see if it is possible.

Club RSX.com
08-27-08, 12:21 AM
I tried to figure it out and I am not sure that it really can be done without using their SearchSpring feature. I could be wrong and it would be cool if I was but I don't see how it could be done otherwise.

papi34
08-27-08, 12:53 AM
I tried to figure it out and I am not sure that it really can be done without using their SearchSpring feature. I could be wrong and it would be cool if I was but I don't see how it could be done otherwise.

Thanks for trying. It really seems like it should not be such a big deal, since I'm already doing it via Sebenza's Dynamic Sorting List by Custom Product Field feature....just that now I want hard code the custom field selection.

totaram
08-28-08, 08:49 AM
Hello Papi34,

I am not sure if this is the right way to contact you or not, if its not I really appologise. I have seen many threads where someone is asking to PM someone else, I have no idea how to do that, else, I would have sent this as a PM to you. I came to this thread following a very old thread of yours regarding the server being very slow, from there I visited your website, its GREAT. I am curious to know if you implemented the phospormedia module to create static pages or are you just using the SEO feature of miva. I have all the modules that you are using and have the same problems, site being very slow, we are on a dedicated server, 2.4 GHz Celeron Processor and perform regular deletion and pack of data files (twice a day, everyday) and hosted at olm.net. Any suggestions, pointers would be really greatly appericiated. Again, I deeply appologise for bumping inbetween the thread, I am a newbee here and like many others, very frustrated and dont know what to do.

papi34
08-28-08, 10:32 PM
The first (and best) piece of advice I received from this forum was to seek out a host who specializes in hosting Miva Merchant sites. I went with Hostasaurus and could not be happier. They are a first class organization with very fast servers. Switching to Hostasaurus made all the difference in the world for us.

I do not have any modules from phospormedia, but I am using MM5.5’s SEO features.

To send someone a Personal Message (PM), just click on the person’s username and you’ll see the option.

Good Luck!