When I turn on the new Admin template in Virtuemart 4 then the sendcloud module stops working.
It seems that when the new Admin template is turned on then any form tag that is added by a plugin is filtered out.
Normally the rupostel_sendcloud.php file returns this
$html = '<form action="index.php" method="post" id="adminFormSendCloud" name="adminFormSendCloud">
<fieldset style="float: left; clear:both;"><legend>SendCloud</legend>'.$msg_u.$ret.'<div id="sendcloud_form" >'.$dobierka.$submit.'</div></fieldset>
<input type="hidden" name="task" value="edit" />
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="orders" />
<input type="hidden" name="virtuemart_order_id" value="'.(int)$order_id.'" />
Is there a way to solve this?
But when I look in the order page I see this
<td colspan="4">
<fieldset style="float: left; clear:both;">
<legend>SendCloud</legend>
<select name="sendcloud_service" id="selH1E" style="display: none;" class="chzn-done">
<option value="9">DHLForYou</option>
<option value="16">DHL Europlus</option>
<option value="115">DHLForYou to ParcelShop</option>
<option value="117">DHLForYou Drop Off</option>
<option value="340">DHLForYou Letterbox</option>
<option value="356">DHL Parcel Connect 15-31.5kg</option>
<option value="357">DHL Parcel Connect 5-15kg</option>
<option value="358">DHL Parcel Connect 2-5kg</option>
<option value="359">DHL Parcel Connect 0-2kg</option>
<option value="492">DHLForYou Letterbox Drop Off</option>
<option value="1315">DHL Parcel Connect 0-2kg to ParcelShop</option>
<option value="1316">DHL Parcel Connect 2-5kg to ParcelShop</option>
<option value="1317">DHL Parcel Connect 5-15kg to ParcelShop</option>
<option value="1318">DHL Parcel Connect 15-31.5kg to ParcelShop</option>
<option value="1344">DHLForYou with signature, home address only</option>
<option value="8020">DHLForYou Drop Off - Agecheck 18+</option>
<option value="8021">DHLForYou - Agecheck 18+</option>
<option value="8022">DHLForYou with evening delivery - Agecheck 18+</option>
<option value="1" selected="selected">PostNL Standard 0-23kg</option>
<option value="2">PostNL with signature 0-23kg</option>
<option value="3">PostNL abroad 0-23kg</option>
<option value="5">PostNL signature on delivery + home address only 0-23kg</option>
<option value="6">PostNL home address only 0-23kg</option>
<option value="7">PostNL service point 0-23kg</option>
<option value="39">PostNL Mailbox 0-2kg</option>
<option value="84">PostNL GlobalPack</option>
<option value="97">PostNL evening delivery + signature on delivery + home address only 0-23kg</option>
<option value="98">PostNL evening delivery + home address only 0-23kg</option>
<option value="273">PostNL Standard 23-31.5kg</option>
<option value="291">PostNL evening delivery + home address only 23-31.5kg</option>
<option value="292">PostNL evening delivery + signature on delivery + home address only 23-31.5kg</option>
<option value="293">PostNL service point 23-31.5kg</option>
<option value="294">PostNL home address only 23-31.5kg</option>
<option value="295">PostNL signature on delivery + home address only 23-31.5kg</option>
<option value="297">PostNL with signature 23-31.5kg</option>
<option value="2242">PostNL abroad NMG</option>
<option value="3802">PostNL Pakket Nederland België - Home Address Only</option>
<option value="3804">PostNL Pakket Nederland België to Servicepoint</option>
<option value="4171">PostNL Pakket Nederland België - Home Address Only 23-31.5kg</option>
<option value="4204">PostNL Pakket Nederland België Signature + Insurance 0-23kg</option>
<option value="4205">PostNL Pakket Nederland België Signature + Insurance 23-31.5kg</option>
<option value="68">DPD Home 0-31.5kg</option>
<option value="109">DPD Pickup Point</option>
<option value="3357">DPD Home 0-31.5kg - incoterm DAP NP</option>
<option value="4202">DPD Home 0-31.5kg + Agecheck 18</option>
<option value="4203">DPD Classic 0-31.5kg + Agecheck 18</option>
<option value="8">Unstamped letter</option>
</select>
<div id="selH1E_chzn" class="chzn-container chzn-container-single" style="width: 220px;">
<a href="javascript:void(0)" class="chzn-single">
<span>PostNL Standard 0-23kg</span>
<div><b></b></div>
</a>
<div class="chzn-drop" style="left: -9000px; width: 218px; top: 28px;">
<div class="chzn-search"><input type="text" autocomplete="off" style="width: 183px;"></div>
<ul class="chzn-results">
<li id="selH1E_chzn_o_0" class="active-result" style="">DHLForYou</li>
<li id="selH1E_chzn_o_1" class="active-result" style="">DHL Europlus</li>
<li id="selH1E_chzn_o_2" class="active-result" style="">DHLForYou to ParcelShop</li>
<li id="selH1E_chzn_o_3" class="active-result" style="">DHLForYou Drop Off</li>
<li id="selH1E_chzn_o_4" class="active-result" style="">DHLForYou Letterbox</li>
<li id="selH1E_chzn_o_5" class="active-result" style="">DHL Parcel Connect 15-31.5kg</li>
<li id="selH1E_chzn_o_6" class="active-result" style="">DHL Parcel Connect 5-15kg</li>
<li id="selH1E_chzn_o_7" class="active-result" style="">DHL Parcel Connect 2-5kg</li>
<li id="selH1E_chzn_o_8" class="active-result" style="">DHL Parcel Connect 0-2kg</li>
<li id="selH1E_chzn_o_9" class="active-result" style="">DHLForYou Letterbox Drop Off</li>
<li id="selH1E_chzn_o_10" class="active-result" style="">DHL Parcel Connect 0-2kg to ParcelShop</li>
<li id="selH1E_chzn_o_11" class="active-result" style="">DHL Parcel Connect 2-5kg to ParcelShop</li>
<li id="selH1E_chzn_o_12" class="active-result" style="">DHL Parcel Connect 5-15kg to ParcelShop</li>
<li id="selH1E_chzn_o_13" class="active-result" style="">DHL Parcel Connect 15-31.5kg to ParcelShop</li>
<li id="selH1E_chzn_o_14" class="active-result" style="">DHLForYou with signature, home address only</li>
<li id="selH1E_chzn_o_15" class="active-result" style="">DHLForYou Drop Off - Agecheck 18+</li>
<li id="selH1E_chzn_o_16" class="active-result" style="">DHLForYou - Agecheck 18+</li>
<li id="selH1E_chzn_o_17" class="active-result" style="">DHLForYou with evening delivery - Agecheck 18+</li>
<li id="selH1E_chzn_o_18" class="active-result result-selected" style="">PostNL Standard 0-23kg</li>
<li id="selH1E_chzn_o_19" class="active-result" style="">PostNL with signature 0-23kg</li>
<li id="selH1E_chzn_o_20" class="active-result" style="">PostNL abroad 0-23kg</li>
<li id="selH1E_chzn_o_21" class="active-result" style="">PostNL signature on delivery + home address only 0-23kg</li>
<li id="selH1E_chzn_o_22" class="active-result" style="">PostNL home address only 0-23kg</li>
<li id="selH1E_chzn_o_23" class="active-result" style="">PostNL service point 0-23kg</li>
<li id="selH1E_chzn_o_24" class="active-result" style="">PostNL Mailbox 0-2kg</li>
<li id="selH1E_chzn_o_25" class="active-result" style="">PostNL GlobalPack</li>
<li id="selH1E_chzn_o_26" class="active-result" style="">PostNL evening delivery + signature on delivery + home address only 0-23kg</li>
<li id="selH1E_chzn_o_27" class="active-result" style="">PostNL evening delivery + home address only 0-23kg</li>
<li id="selH1E_chzn_o_28" class="active-result" style="">PostNL Standard 23-31.5kg</li>
<li id="selH1E_chzn_o_29" class="active-result" style="">PostNL evening delivery + home address only 23-31.5kg</li>
<li id="selH1E_chzn_o_30" class="active-result" style="">PostNL evening delivery + signature on delivery + home address only 23-31.5kg</li>
<li id="selH1E_chzn_o_31" class="active-result" style="">PostNL service point 23-31.5kg</li>
<li id="selH1E_chzn_o_32" class="active-result" style="">PostNL home address only 23-31.5kg</li>
<li id="selH1E_chzn_o_33" class="active-result" style="">PostNL signature on delivery + home address only 23-31.5kg</li>
<li id="selH1E_chzn_o_34" class="active-result" style="">PostNL with signature 23-31.5kg</li>
<li id="selH1E_chzn_o_35" class="active-result" style="">PostNL abroad NMG</li>
<li id="selH1E_chzn_o_36" class="active-result" style="">PostNL Pakket Nederland België - Home Address Only</li>
<li id="selH1E_chzn_o_37" class="active-result" style="">PostNL Pakket Nederland België to Servicepoint</li>
<li id="selH1E_chzn_o_38" class="active-result" style="">PostNL Pakket Nederland België - Home Address Only 23-31.5kg</li>
<li id="selH1E_chzn_o_39" class="active-result" style="">PostNL Pakket Nederland België Signature + Insurance 0-23kg</li>
<li id="selH1E_chzn_o_40" class="active-result" style="">PostNL Pakket Nederland België Signature + Insurance 23-31.5kg</li>
<li id="selH1E_chzn_o_41" class="active-result" style="">DPD Home 0-31.5kg</li>
<li id="selH1E_chzn_o_42" class="active-result" style="">DPD Pickup Point</li>
<li id="selH1E_chzn_o_43" class="active-result" style="">DPD Home 0-31.5kg - incoterm DAP NP</li>
<li id="selH1E_chzn_o_44" class="active-result" style="">DPD Home 0-31.5kg + Agecheck 18</li>
<li id="selH1E_chzn_o_45" class="active-result" style="">DPD Classic 0-31.5kg + Agecheck 18</li>
<li id="selH1E_chzn_o_46" class="active-result" style="">Unstamped letter</li>
</ul>
</div>
</div>
<script>
function submitSendcloud(el)
{
var container = document.getElementById('sendcloud_form');
console.log(container);
var input = document.createElement('input');
input.type = 'hidden';
input.value = '1';
input.name = 'process_sendcloud';
container.appendChild(input); // put it into the DOM
document.adminFormSendCloud.submit();
return false;
}
</script>
<div id="sendcloud_form"><label for="request_shipping"><input type="checkbox" id="request_shipping" name="request_shipping" value="1">Request Shipping (tracking ID)</label><input type="button" value="Register Parcel" onclick="return submitSendcloud(this);"></div>
</fieldset>
<input type="hidden" name="task" value="edit">
<input type="hidden" name="option" value="com_virtuemart">
<input type="hidden" name="view" value="orders">
<input type="hidden" name="virtuemart_order_id" value="4984">
<input type="hidden" name="e93748657e8dd431cbb43333bc7d3193" value="1">
</td>