Categories Information

Question: How can I add images and text to the Category and Store Front pages?

Answer: To add images or text to your category list you will need to modify your
mmui.mv file. It is located in your Merchant/modules/ui directory on your
server. FTP the mmui.mv to your local machine and open it in any plain text
editor(Notepad works great, but do not open it in anything like Front Page).
Make a Backup First!
Then to add the image or text to the category list search for:

Category_tree

On the next line there will be </font>(you will probably want to use some
<br>'s after this so your text or image doesn't come immediately after your
last category).
Place your image or text on the line after this but before the </td></tr>
tags. Use html to add your text or image, so for example if you want to say
"Buy All of My Products!" use something like:

<FONT FACE = "Perpetua" SIZE = "4" COLOR = "246025">Buy All of My
Products</FONT>

And for images be sure to use the proper image tags.

Then save your changes and upload back to your server.

To add images to your Store Front page you will put html in your store front
welcome message in your admin screen. Minus the <html>, <head> and <body>
tags and their corresponding end tags.

Answered by Mike Crawford crawford@myhome.net

Question: How can I add a hyperlink to my Thumbnails?

Answer:  If you go to the link to my store you'll see an example of what you are
looking for, so it can be done - rather easily. If you know how to edit
the mmui.mv (make backup), you do a search for the word thumbnail. That
is the code where the thumbnail displays. Just wrap it with the same
href link that is wrapped around the products name which is within a few
lines of the thumbnail reference.

Answered by William Weiland @ http://wcw.simplenet.com

Question: How can I make the Left Category Frame Transparent?

Answer:  #ffffff - White is not the same as transparent. The table would be "White"
#000000- Black is not the same as transparent.
Leaving it blank is interpeted as black.

To make the catagory table transparent you have to edit the mmui.mv. When you open mmui.mv to edit
search for
"category_tree" it's the only unique word close to the line you need to edit. Look 4 lines above
the line with category_tree. Edit as follows;

To make category background transparent change;

<TD ALIGN = "left" VALIGN = "top" BGCOLOR = "&[ MMUI_Store.d.ctgy_bg:entities ]">

To

<TD ALIGN = "left" VALIGN = "top">
 

Answered by:  John Weaver

Question:  How can I add text below the Category List in the Left Frame?

Answer:  In the mmui.mv file, within the begin_screen function, you will see a
line similar to this:

<MvDO FILE = "{ g.Module_Library_Utilities }" NAME = "l.categories"
VALUE = "{ Category_Tree( Stores.d.code, l.category_id, l.category_id EQ
0 ) }">

After that line I added these lines:

<MvIF EXPR="{sexists('/Merchant/'$g.store_code$'cattext.html')}">
<MvDO FILE = "{'/Merchant/'$g.store_code$'cattext.html'}">
</MvIF>

I created a simple html file called cpgscattext.html (cpgs is the store
code) and put it in the main Merchant directory (the same one where
merchant.mv is located). When you want to make changes, all you do is
change the cpgscattext.html file and the changes show up on all the
pages.

Answered by Sherri Stekl

Question: How can I show the product description to the right of the thumbnail photo on the Category page?

Answer: Look for
MvFUNCTION NAME = "MMUI_ProductDisplay"
In it you will find
<FONT FACE = "&[ MMUI_Store.d.body_font:entities ]" SIZE =
&[ MMUI_Store.d.body_fsize:entities ]">
 <MvEVAL EXPR = "{ Products.d.desc }">
 </FONT>
You can just copy this code, and find a good place in
MvFUNCTION NAME = "MMUI_Category"
to insert it.

Answered by Adam  @  http://www.aaimporting.com

Question: How can I add the same product to numerous categories when updating with a flatfile import?

Answer:  The only way I could make it work was to duplicate the product and assign a different product code. i.e. ajc0001 and ajc1001

You can assign the same product number manually on line but not importing.

Answered by Luray

Question:  Why aren't categories being assigned when I import products?

Answer: The category has to exist before you import your products.
The import function will not create categories.

Answered by Luray

Question: Every time I upload a product to the Miva directory, it throws the products on-line uncategorized. How do I categorize my products in the Miva Merchant software?

Answer:  If you are uploading from a flat file include the category name in an additional field. You will need a separate field in your data for the category code. If you are entering your products via admin.mv, you need to either add products underneath that category or you can "Add existing product(s)" to that category.

Answered by Miva Corporation

Question:  I recently tried to change the code for a category. After changing it I recieved the error: Miva Merchant Encountered the Following Error:
 Category 'SovStone' not found
I tried to reedit the code but I can no longer reach the edit screen, I
recieve the same error. I also cannot delete the category because I can't
enter the edit screen. How do I fix this?

Answer: After you do any such, changes, it is very important that you pack the data
files. not doing so will result in the error that you received.

Answered by:  Emily Rose Nichols

Question:  How can I add text or html to the body of category pages?

Answer: An easier way to add html headers to categories
Return to Customizing Miva Merchant Tips Index


Here is a much simpler solution to the issue of adding
headers to categories than the one I previously proposed.

It does require you are running Miva Engine 3.5+ If you have
the ability to do file uploads in Miva Merchant then you are fine.


In the mmui.mv find the:
<MvFUNCTION NAME = "MMUI_Category"

then find this code in that function:

                <BR>
                <BLOCKQUOTE>
                        <FONT FACE = "&[ MMUI_Store.d.hdr_font ]" SIZE = "&[ MMUI_Store.d.hdr_fsize ]" COLOR = "&[ MMUI_Store.d.hdr_fg:entities ]"><B><MvEVAL EXPR = "{ Categories.d.name }"></B></FONT>

Replace all those lines with:

<MvIF EXPR="{sexists('/'$g.Store_Code$'_'$Categories.d.code$'_header.htm l')}">
        <MvDO FILE="{'/'$g.Store_Code$'_'$Categories.d.code$'_header.html'}">
                <BR>
                <BLOCKQUOTE>
<MvELSE>
                <BR>
                <BLOCKQUOTE>
                        <FONT FACE = "&[ MMUI_Store.d.hdr_font ]" SIZE = "&[ MMUI_Store.d.hdr_fsize ]" COLOR = "&[ MMUI_Store.d.hdr_fg:entities ]"><B><MvEVAL EXPR = "{ Categories.d.name }"></B></FONT>

</MvIF>

Then in the root of your site place a file named starting
with the store code of your store, then an underscore, then
the category code for the category you want it to appear
under followed by '_header.html' and if that file is
there it will load.

For Example. A store with a store code of 'TheCoolStore'
wants category headers to be loaded for the categories
with codes of 'FormalWear', 'Dresses', and 'Suits'. The
three files would be named:
TheCoolStore_FormalWear_header.html
TheCoolStore_Dresses_header.html
TheCoolStore_Suits_header.html

Answered by Jeff Hubber @ www.miva.com

Question:  Is it possible to use a custom image for the MAIN category, but still have  the subcategories pop up underneath as they do usually?

Answer: Yes. Just use an IMG tag for the category name.

Answered by Luray

Question:  How do I paginate Categories?

Answer:  Log into your admin --- Expand Stores --- Expand Your Store --- Expand
Categories --- Click on the name of the name of the Category you would like
to Paginate --- In the main screen, click "Pagination" --- This is where you
can specify how many products you want per page in a specific category.