PDA

View Full Version : Search Results Layout


dabooshart
03-31-06, 11:31 PM
When a visitor clicks on a category, I want to be able to display products in this category in groups of ten using, displaying just the image. There should be a next/previous links available if there are more than 10 products.

Any help would be appreciated.

Vic - WolfPaw Computers
04-01-06, 12:48 AM
Edit your CTGY page.

In the edit section, on the right, click on the link for Category Product List Layout.

Switch to advanced mode (down near the bottom).

Edit the code to display the products as needed. Sounds like you'd be removing everything except the part of the code that displays the thumbnail and link to the PROD screen.

<a href="&mvt:global:sessionurl;Screen=PROD&Store_Code=&mvta:store:code;&Product_Code=&mvta:product:code;&Category_Code=&mvta:category:code;"><img src="&mvte:product:thumbnail;" border=0></a>

You can set how many products are displayed using the category pagination feature.

You will find this below the template code edit box.

dabooshart
04-03-06, 10:06 PM
Hey Vic,

Thanks for the input.

I tried following your recommendation. I copied and paste the code within the catgory template.

It did not however link over to the product page correctly.

Does this code need to be entered between MIVA include tags?

I am new to Miva, but not web development, if I need to edit the code you provided to fit my needs, is it possible for you explain what each part does.

You can visit the site at www.dabooshart.com (http://www.dabooshart.com). If you go to landscape you can see where I was editing the code. (Only 1 product in database currently)

Thank you,

Neiv

Vic - WolfPaw Computers
04-03-06, 11:02 PM
Start simple.

Restore the original template code.

If all you want to display is a thumbnail, remove sections of code other than the thumbnail display and test it.

dabooshart
04-06-06, 05:58 AM
I wen tback to the original code. the problem I seem to find is that the only way to display all the products in the category is with the following code: <mvt:item name="product_list" />

And this automatically loads a preset product display template. If i remove this code, no products lists are displayed at all.

When I try to add the code you provided it is does not pick up the product code in the url.

Is there a way to display the product list for a category as only thumbnail images that then link over to the main porduct page?

Vic - WolfPaw Computers
04-06-06, 06:10 AM
You need to click on the tab for Category Product Display Layout, that will allow you to edit the product_list item.

Bruce - PhosphorMedia
04-06-06, 06:15 AM
Another way of putting it, is that when you call the display_list element, you are calling a function that will return items based on the admin settings for the Category Product list layout. Here, you'll find checkboxes and drop downs to control the elements of the Product Listing.