Can't find what you're looking for? Try our AI Chat Bot in the bottom right corner!

Articles in this section

Quote Page Templates

Quote Page Templates

The quote custom fields are available on any of the quote emails, as well as the two new quote pages:

  • QUOT - Quote Information
  • QUOH - Quote History List

When the Manage Quotes module is installed, it automatically creates these two page templates. These page templates can be customized to match your store’s look and feel.

On this Page

Template Customization

There are five areas of your site that need to be updated and/or customized when setting up Manage Quotes:

  1. New Page Templates - QUOH and QUOT should be styled to match your store's look and feel.
  2. Add link to the Quote History List (QUOH) on the Account Landing page (ACLN) .
  3. Modify Customer Login page (LOGN) to take customer to QUOT page upon login.
  4. Show link if a customer has any active quotes (optional).
  5. Submit Quote Form.

Styling Page Templates

The new pages are pre-styled to match that of the Shadows theme styles.

Caution

If your store does not use the Shadows ReadyTheme, there are additional page template changes you can optionally make.

Go to User Interface>Pages and add the following code to BASK, OCST, OSEL, OPAY, INVC and any email templates you are using. It should immediately follow this line:

The new code is below:

Copy
<mvt:if expr="l.settings:option:attr_code EQ 'Part of Quote'">
    <mvt:assign name="l.settings:option:attr_prompt" value="l.settings:option:attr_code" />
    <mvt:assign name="g.quote_item" value="'1'" />
<mvt:else>
    <mvt:assign name="l.settings:option:attr_prompt" value="l.settings:option:attr_prompt" />
</mvt:if>

Adding Link to Quote History List

To add a link to the Quote History page from the Account Landing page, add the following line of code to the ACLN page template:

Copy
<a href="&mvte:urls:QUOH:auto;">View Quote History</a>

Note

This link can be added globally to any page

Modify Customer Login Page

Add the following code to the LOGN page template.

Copy
<mvt:if expr="NOT ISNULL g.QuoteCode">
    <mvt:assign name="l.settings:url" value="l.settings:urls:QUOT:secure" />
<mvt:elseif expr="g.Customer_Temporary_Password">
    <mvt:assign name="l.settings:url" value="l.settings:urls:CPWD:secure" />
<mvt:elseif expr="g.Order">
    <mvt:assign name="l.settings:url" value="l.settings:urls:OINF:secure" />
<mvt:else>
    <mvt:assign name="l.settings:url" value="l.settings:urls:ACLN:secure" />
</mvt:if>
<form method="post" action="&mvte:url;">
    <fieldset>
        <legend>&mvt:page:name;</legend>
        <input type="hidden" name="Action" value="LOGN" />
        <input type="hidden" name="QuoteCode" value="&mvte:global:QuoteCode;" />

Show Link for Active Quotes

You can add the Manage Quotes module as an extension to any global item. For example, to add Manage Quotes to the global_minibasket , perform the following steps:

  1. Go to the User Interface>Items .
  2. Find the global_minibasket in the list and click the Edit button.
  3. Click on the Extensions tab.
  4. Select Manage Quotes module from the Module list.
  5. Add the following code globally or to any page to which the mini basket is assigned:
Copy
<mvt:if expr="(l.settings:global_minibasket:active_quote EQ 1) AND (g.Basket:cust_id)">
    <a href="&mvte:urls:QUOH:auto;">View Your Active Quotes</a>
</mvt:if>

When the customer logs into the store, they will see the “View Your Active Quotes” link in the navigation bar.

Submit Quote Form

The Manage Quotes module provides a flow to let your customers add items to their cart and submit them for your quote.

The preferred way to provide a way for cusotmers to request a quote is to assign the request_quote item to the page you want it to display on.

Add the following item tag to the page template:

Copy
<mvt:item name="request_quote" param="request_quote" />

Next, assign the messages item to the page.

Copy
<mvt:comment><!-- Default Informational and Error Messages --></mvt:comment>
<mvt:if expr="l.settings:messages:error_message_count AND g.Action NE 'LOGN'">
    <p class="x-messages x-messages--error">
        <mvt:foreach iterator="error" array="messages:error_messages">
            &mvt:error;<br>
        </mvt:foreach>
    </p>
</mvt:if>
<mvt:if expr="l.settings:messages:information_message_count AND g.Action NE 'UCSB'">
    <p class="x-messages x-messages--info">
        <mvt:foreach iterator="message" array="messages:information_messages">
            &mvt:message;<br>
        </mvt:foreach>
    </p>
</mvt:if>

 

Finally include a Messages Array on the page to output any errors.

Your page will look like the following when complete.

Another method is below. This form is flexible and can be put on any page in Miva. You can download a template for the quote form at the following link: https://snippets.cacher.io/snippet/f5313b45e4bd1429b828

Caution

The country field only accepts the 2-digit country code. We recommend that you use a drop-down list to collect the country designation.

The following link includes the HTML code to create a drop-down of country codes: https://snippets.cacher.io/snippet/c1f712fdb3da3b835b70

Was this article helpful?
0 out of 0 found this helpful