Advanced Development Solutions Home
Advanced Development Solutions Home
Advanced Development Solutions Home

Description / Features
Read Me First
Installation / Upgrade
NEW FEAFURES!
Global Configuration
Category Configuration
Template Layouts
FAQ

     

Category Master Module Help for MIVA Merchant v5

New Features

New in v5.06 - You can now display Product Pagination on Product Pages, using New Template code. The Previous and Next buttons will allow users to go to the Next and Previous products in the category without having to go back to the category and making another selection. Here is the sample template code to be used:

<mvt:item name="ads_catmaster" param="prodpaging" />
<mvt:if expr="l.settings:ADS_PREVPRODUCT">
<A HREF="&mvt:global:sessionurl;Screen=PROD&Product_Code=&mvt:ADS_PREVPRODUCT:code;&Category_Code=&mvta:ADS_PREVPRODUCT:CAT_CODE;">< Prev</A>&nbsp;
</mvt:if>
<mvt:if expr="l.settings:ADS_NEXTPRODUCT">
<A HREF="&mvt:global:sessionurl;Screen=PROD&Product_Code=&mvt:ADS_NEXTPRODUCT:code;&Category_Code=&mvta:ADS_NEXTPRODUCT:CAT_CODE;">Next ></A>
</mvt:if>

You can use the code above to insert Product Pagination Navigation anywhere in your Product Page(PROD) Product Display Layout Templates.


New in v5.04 - You can now display Category Breadcrumbs and Subcategory Listing on Product Pages, using Item Render Tokens or New Template code. Module uses Category or Global level settings to control the layout.

You can use the same Category Page(CTGY) Item Render Tokens or below provided templates to insert Breadcrumb Navigation and Subcategory Listing in to your Product Page(PROD) Templates.


New in v5.04 - MivaScript Parameter Functions(MvASSIGN & MvEVAL). These functions provide an ability to execute or assign new variables from any template, at run time. This can be very useful in creating a short titles or descriptions, checking for existence of an image, or making a quick discount calculation, all by executing built-in MivaScript functions at run time, right from the template.

This is done by passing passing Merchant variables, by reference, and executing build-in MivaScript functions.
Here is a complete example for displaying short product titles on category pages:
<mvt:item name="ads_catmaster" param="mvassign|l.all_settings:namelength|len(l.all_settings:product:name)" />
<mvt:if expr="l.settings:namelength GE 25">
    <mvt:item name="ads_catmaster" param="mveval|(substring(l.all_settings:product:name, 1, 25))$'...'" />
<mvt:else>
     &mvt:product:name;
</mvt:if>

You can use the same technique to check for existence of images, calculate percent discounts, etc...

More MivaScript API Documentation can be found here: http://smallbusiness.miva.com/support/docs/api/

NOTE: Caution should be taken in using MivaScript parameter Functions, since they allow you to directly create and modify Merchant Variables, Arrays, and Execute Built-In functions, right from the template, at run time.


New in v5.04 - Optional Template Level control of Category Breadcrumbs, Subcategory Listing with Title Images, and Category Paging is now available. Now all links can be modified to be search engine friendly.

New version provides alternate templates that provide greater control and flexibility of Category Breadcrumbs, Subcategory Listing and Category Paging. These templates will still be controlled using the module. Below is a list of links and instructions on implementing these new features.

NOTE: The files are in Text format, so you may want to right click and save, or select and view source.

Category Breadcrumbs - Modify the CTGY Page Template, replacing the current Item Render Tokens with provided templates.

  • Replace: <mvt:item name="ads_catmaster" param="cbtop" /> with this Template
  • Replace: <mvt:item name="ads_catmaster" param="cbbottom" /> with this Template

Subcategory Listing - Modify the CTGY Page Template, replacing the current Item Render Tokens with provided templates.

  • Replace: <mvt:item name="ads_catmaster" param="sltop" /> with this Template
  • Replace: <mvt:item name="ads_catmaster" param="slbottom" /> with this Template

Category Paging - Modify the CTGY Page Template, replacing the current Item Render Tokens with provided templates.

  • Replace: <mvt:item name="ads_catmaster" param="pctop" /> with this Template
  • Replace: <mvt:item name="ads_catmaster" param="pcbottom" /> with this Template

"architects of the web since 1998"
Learn more about our services

Build Your Business Online!

SERVICES | CONTACT US | HOME