Using parcel locker vmshipment plugin with VMuikitX
Using parcel locker vmshipment plugin with VMuikitX was created by keep2000
Posted 1 year 8 months ago #60
Hi. I use a vmshipment plugin which offers parcel locker shipping. For that the vmshippment plugin overrides the getPluginHtml() method and populates a html <select> list based on a database source, like
When the order is placed, the plugin's plgVmConfirmedOrder() method catches the selected locker and stores it via storePSPluginInternalData();
When I try to use it in a VMuikitX cart, it is rendered well at the first time, but when I switch a shipping method or payment method, the cart is realoaded via ajax and in the result the html tags are striped, so instead of the html dropdown I get a pure string: "Locker 1 location Locker 2 location"
I think this is because of plugins/system/vmuikitx_onepage/cart/onepage.js strip_tags() when I remove this, or allow <select> and <option> tags in line 2607, I get the dropdowns.
Also when I select the locker shipping, choose an option and the ajax reloads the cart, it forgets which option I chosed.
Do you have a suggestion how should I build this plugin? I'm open to rewrite it according to your suggestions.
For the current testing just add this to weight_countries.php
Code:
<select name="locker">
<option value="locked_1_id">Locker 1 location</option>
<option value="locked_2_id">Locker 2 location</option>
</select>
When I try to use it in a VMuikitX cart, it is rendered well at the first time, but when I switch a shipping method or payment method, the cart is realoaded via ajax and in the result the html tags are striped, so instead of the html dropdown I get a pure string: "Locker 1 location Locker 2 location"
I think this is because of plugins/system/vmuikitx_onepage/cart/onepage.js strip_tags() when I remove this, or allow <select> and <option> tags in line 2607, I get the dropdowns.
Also when I select the locker shipping, choose an option and the ajax reloads the cart, it forgets which option I chosed.
Do you have a suggestion how should I build this plugin? I'm open to rewrite it according to your suggestions.
For the current testing just add this to weight_countries.php
Code:
protected function getPluginHtml ($plugin, $selectedPlugin, $pluginSalesPrice) {
$html = parent::getPluginHtml($plugin, $selectedPlugin, $pluginSalesPrice);
$html .= '<select name="locker">
<option value="locked_1_id">Locker 1 location</option>
<option value="locked_2_id">Locker 2 location</option>
</select>';
return $html;
}
by keep2000
Please Log in or Create an account to join the conversation.
Replied by joomlapro on topic Using parcel locker vmshipment plugin with VMuikitX
Posted 1 year 8 months ago #62
Hi, We understand your requirement. Please share the login credentials of the back end site with "Super User" access and FTP as a confidential message, so that we can check and give you a better solution. Thank you,
For urgent help please create a support ticket extensions.joomlapro.com/support/tickets
by joomlapro
Please Log in or Create an account to join the conversation.
Replied by keep2000 on topic Using parcel locker vmshipment plugin with VMuikitX
Posted 1 year 8 months ago #64
okay, thanks
This message contains confidential information
by keep2000
Please Log in or Create an account to join the conversation.
Replied by keep2000 on topic Using parcel locker vmshipment plugin with VMuikitX
Posted 1 year 8 months ago #94
hej, any update with this? I should publish a site with this type of shipping, this is the only thing which is missing.
by keep2000
Please Log in or Create an account to join the conversation.
Replied by keep2000 on topic Using parcel locker vmshipment plugin with VMuikitX
Posted 1 year 7 months ago #116
Hej. Were you able to check it?
by keep2000
Please Log in or Create an account to join the conversation.
Replied by keep2000 on topic Using parcel locker vmshipment plugin with VMuikitX
Posted 1 year 6 months ago #189
Hej. Is it possible to allow <select><option> tags in onepage.js line 2608?
by keep2000
Please Log in or Create an account to join the conversation.
Time to create page: 0.518 seconds