Start a new topic

Customization of input type for "Allow QV Qty Change" items?

We like the new feature of having a line item attribute for "Allow QV Qty Change", however we'd like to modify the default "textbox" style to be a drop-down list that is friendlier for a customer to adjust quantites of an item.


In the QV template, we're basically changing this:


[DI_QtyBase}


To this:


[DI_QtyBase:InputType=DropDownList,ListItems=0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31;32;33;34;35;36;37;38;39;40;41;42;43;44;45;46;47;48;49;50;51;52;53;54;55;56;57;58;59;60;61;62;63;64;65;66;67;68;69;70;71;72;73;74;75;76;77;78;79;80;81;82;83;84;85;86;87;88;89;90;91;92;93;94;95;96;97;98;99;100;101;102;103;104;105;106;107;108;109;110;111;112;113;114;115;116;117;118;119;120;121;122;123;124;125;126;127;128;129;130;131;132;133;134;135;136;137;138;139;140;141;142;143;144;145;146;147;148;149;150;151;152;153;154;155;156;157;158;159;160;161;162;163;164;165;166;167;168;169;170;171;172;173;174;175;176;177;178;179;180;181;182;183;184;185;186;187;188;189;190;191;192;193;194;195;196;197;198;199;200]


Whenever we change the [DI_QtyBase} attribute in the template, it changes ALL quantities on the quote to be the dropdown input type, not just the ones that are set with the Allow QV Qty Change attribute turned on.


Is this a known issue?  Or are additional macros needed in QV to accomplish this?  Something along the lines of [Begin_LineItemAllowQVQtyChange] and [End_LineItemAllowQVQtyChange] so that we could have both formats in the quote template?


The standard HTML is:

<td class="col-qty">

[DI_QtyBase]

</td>


Looking at the code on a quote for a 'regular' item:

<td class="col-qty">

1

</td>


Looking at the code on a quote for a 'QV QTY Adjust' item:

<td class="col-qty">

<input name="DI_QtyBase___1" type="text" value="3" id="DI_QtyBase___1" inputtype="textbox" class="valid">

</td>


So, it does appear QW is 'feeding' QV with additional information with that attribute enabled - I can't, off the top of my head, see how we can interrupt/change that without QW implementing something like you've outlined.



1 person likes this

Was looking for something else I answered a while ago for reference and stumbled across this old post tonight.  You could always use a script to get the line attribute to kind of over-write the native behavior with

 

    <script type="text/javascript">
        var intLineAttributes = [DI_LineAttributes];
        var blnIsQtyChange = false;
        blnIsQtyChange = ((parseInt(intLineAttributes) & 1024) == 1024);

        if (blnIsQtyChange == true) { stuff here }
        if (blnIsQtyChange == false) { stuff here}
 </script>

 

I didn't run through and do the whole thing because I'm in the middle of a different project but maybe this little snippet offers an idea. 


1 person likes this
Login or Signup to post a comment