Start a new topic

Line Item # on QuoteValet Template

Hi Folks,


I've got a request to have  "Line Item #" appear in the Line Item Detail section of our QuoteValet quote template. Right now the columns that appear are "Qty", "Description", "Picture", Unit Price" and "Ext Price".


I'm moderately good with CSS.  I was going to clone the current template and take a close look at how the code is set up for "Qty", "Description", etc., etc. and use that as a roadmap.  Has anyone does this edit before? 


Thanks!


It'd be easy to do, however, the Line Item # isn't a value stored in the database, so QuoteValet can't reference that field.

We'd need a script to populate the Line Number in something like a CustomText field (which QW can reference) and then we're sorted. I've had this sort of stuff (although not this in particular) loads of times, reach out if you'd like some assistance on this.

Quick and dirty mockup here.

Obviously got too much space etc.. but shows it can be done.


image


[DI_&LINENUMBER]

[DI_&LINENUMBERACTUAL]

[DI_&LINENUMBERACTUALPADDED]

[DI_&LINENUMBERPADDED]

Are actually available macros for QuoteValet so you just need to drop in a column in your table for  [DI_&LINENUMBER]  (that is the one most people use since you can exclude certain line types like group members from being numbered).  Snippet of how to start:


       <div id="line-items-section" class="section">
            <table id="line-item-detail-table" class="table-001 [Begin_HasLineItemVideo]qv-has-line-item-videos[End_HasLineItemVideo]">
                <tr>
                    <th>
                    </th>
                    <th>
                       Line #
                    </th>
                    <th class="col-th-price">
                        Qty
                    </th>
                    <th>
                        Description
                    </th>
                    <th>
                        Picture
                    </th>
                    <th class="col-qv-line-item-video">
                        Video
                    </th>
                    <th class="col-th-price">
                        Unit Price
                    </th>
                    <th class="col-th-price">
                        Ext Price
                    </th>
                </tr>
                [Begin_LineItem]
                [Begin_LineTypeProduct]
                <tr class="row-product">
                    <td class="col-option-box">
                        [QV_OptionBox]
                    </td>
                    <td class="col-number">
                        [DI_&LINENUMBER]
                    </td>
                    <td class="col-qty">
                        [DI_QtyBase]
                    </td>




Make sure you add the column all the way down or your lines won't line up.  :)




Thanks Cat - you learn something every day! Certainly didn't see that in any release notes anywhere.


As a low priority task, could the documentation on this be updated to include these references (and any others recently added)?

https://www.quotewerks.com/helpfilelatest/quotevalet_macros.htm

Hi Matt, 


I've become so used to going to this forum topic I didn't think about the documentation.  I'll make a note to get it updated in one of the next times we push a new help file.


https://tickets.quotewerks.com/support/discussions/topics/9000026064

Login or Signup to post a comment