Displaying Items names in cart during checkout MKB - 0071 Follow
By default, MyOrderDesk shows the Job Form name on the cart checkout screen. This may not be preferable when using a DocMart menu.
Below is an screenshot of how to include the DocMart Menu item name on the cart check out page.
In this knowledge base article we will be learning how to add the DocMart name to the cart checkout screen utilizing the Project Name field.
1. Below is a screen shot of the minimum Form Fields needed to complete this example
2. Enabled the Cart for the JobForm. Cart > Enable Shopping Cart features on this form
3. Mark the JobDescription field as Hidden
4. Add a DocMart Menu field to your Job Form
5. Open the Cart options again and map the Quantity to the name of your DocMart Menu field
6. Add a "Script" field to the Job Form, name it CopyToProjectName" and insert the following code (screen shot below).
Be sure to replace DOCMARTFIELDNAME in the two spots indicated below with the name of the DocMart Menu field on your form
<script type="text/javascript">
<!--
$(document).ready(function(){
function CopyText() {
$('#mod_JobDescription').val($('#invlist_DOCMARTFIELDNAME option:selected').text());
}
$('#invlist_DOCMARTFIELDNAME').bind('change', function() {
CopyText();
});
CopyText();
});
-->
</script>
7. You are all set! Now, when adding a DocMart Menu item to your cart the item name will appear under the Project Name column.