Dear friends,
finally, I found a working solution - the example below is for request creation:
- Go to ...\view\webapps\usm\explorer\request\ and copy request_create.xsl to the ...\filestore\custom\explorer\request\ folder (for request edit it is request_edit.xsl file)
- Now you have to find a correct place to insert the panel with Submit button - in my case it was following block of code:
<xsl:if test="$hasOneClickSubmitServiceType and not(count(
<xsl:variable name="expandTitle" select="concat($xslcontent/clickToExpand,' ', $xslcontent/req_conversation)" />
<xsl:variable name="collapseTitle" select="concat($xslcontent/clickToCollapse,' ', $xslcontent/req_conversation)" />
<conversation title="{$xslcontent_1/req_conversation}" id="req_conv" class="parent_conv_tbl" showAttachments="true" expand-title="{$expandTitle}" collapse-title="{$collapseTitle}"></conversation>
</xsl:if>
</panel>
- After the </panel> copy the code which creates the header with the Submit button (this is for 17.1 release, may be slightly different for other releases):
<header class="ca-catalog-req-header" label="" description="{/xmlRoot/COLLECTION/usm_offering/description/LITERAL}" id="{/xmlRoot/COLLECTION/usm_offering/offering_id/LITERAL}" aria-labelledby="{/xmlRoot/COLLECTION/usm_offering/offering_id/LITERAL}">
<actions>
<xsl:choose>
<xsl:when test="count(
<!-- prevent submission of offerings with wf forms or when there is an error or no sogs or no permission
or single offering per cart or all info rows -->
</xsl:when>
<xsl:when test="/xmlRoot/COLLECTION/usm_offering/type/LITERAL='3'">
<xsl:choose>
<xsl:when test="count(/xmlRoot/COLLECTION/COLLECTION/COLLECTION/COLLECTION/COLLECTION)>2">
<portal_button id="submitcartlessbtn_top" label="{$xslcontent_1/submit}" />
</xsl:when>
<xsl:otherwise>
<xsl:variable name="itemid">
<xsl:choose>
<xsl:when test="count(/xmlRoot/COLLECTION/COLLECTION/COLLECTION/COLLECTION/COLLECTION)>1"><xsl:value-of select="/xmlRoot/COLLECTION/COLLECTION/COLLECTION/COLLECTION/COLLECTION[2]/usm_rate_definition/item_id/LITERAL"/></xsl:when>
<xsl:otherwise><xsl:value-of select="/xmlRoot/COLLECTION/COLLECTION/COLLECTION/COLLECTION/COLLECTION[1]/usm_rate_definition/item_id/LITERAL"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="itemname">
<xsl:choose>
<xsl:when test="count(/xmlRoot/COLLECTION/COLLECTION/COLLECTION/COLLECTION/COLLECTION)>1"><xsl:value-of select="/xmlRoot/COLLECTION/COLLECTION/COLLECTION/COLLECTION/COLLECTION[2]/usm_rate_definition/item_text/LITERAL"/></xsl:when>
<xsl:otherwise><xsl:value-of select="/xmlRoot/COLLECTION/COLLECTION/COLLECTION/COLLECTION/COLLECTION[1]/usm_rate_definition/item_text/LITERAL"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="offeringid" select="/xmlRoot/COLLECTION/usm_offering/offering_id/LITERAL"/>
<portal_button id="submitcartlessbtn_top" label="{$xslcontent_1/submit}" />
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:if test="/xmlRoot/COLLECTION/INFO/allow_only_one_offering_per_request/LITERAL='false'">
<portal_button id="addbtn_top" label="{$xslcontent_1/add_to_cart}" />
</xsl:if>
<portal_button id="addcheckoutbtn_top" label="{$xslcontent_1/checkout}" />
</xsl:otherwise>
</xsl:choose>
</actions>
</header>
- In my case, I've deleted the header label
After some tests, everything seems to be OK..
For request edit form the steps are similar.
Hope this will help someone,
Jakub