Skip to main content

List of all our extensions

Create an account

Using parcel locker vmshipment plugin with VMuikitX

Using parcel locker vmshipment plugin with VMuikitX was created by keep2000

Posted 9 months 1 week 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
Code:
<select name="locker">   <option value="locked_1_id">Locker 1 location</option>   <option value="locked_2_id">Locker 2 location</option> </select>
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:
    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;     }

 

Please Log in or Create an account to join the conversation.

Replied by joomlapro on topic Using parcel locker vmshipment plugin with VMuikitX

Posted 9 months 1 week 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

Please Log in or Create an account to join the conversation.

Replied by keep2000 on topic Using parcel locker vmshipment plugin with VMuikitX

Posted 9 months 1 week ago #64
okay, thanks

This message contains confidential information

Please Log in or Create an account to join the conversation.

Replied by keep2000 on topic Using parcel locker vmshipment plugin with VMuikitX

Posted 8 months 3 weeks 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.

Please Log in or Create an account to join the conversation.

Replied by keep2000 on topic Using parcel locker vmshipment plugin with VMuikitX

Posted 8 months 1 week ago #116
Hej. Were you able to check it?

Please Log in or Create an account to join the conversation.

Replied by keep2000 on topic Using parcel locker vmshipment plugin with VMuikitX

Posted 7 months 4 days ago #189
Hej. Is it possible to allow <select><option> tags in onepage.js line 2608?

Please Log in or Create an account to join the conversation.

Time to create page: 0.674 seconds
Powered by Kunena Forum
Joomla 4.0 supported
6 months support & updates
6 months of access to support and downloads/updates. The extensions will keep working after this period.
Joomla 3.10 supported
Unlimited Websites
You can install all our extensions on as many websites as you like.
Wordpress version available
Custom Development
If you encounter any problems with your website that does not cover support we might offer you a custom quote to help you.
Look for these icons for available supported platforms:
Joomla 4.0 supported
Joomla® 5.x support
New Joomla® 5 supported!
Joomla 3.10 supported
Joomla® 3.x support
Joomla® 3.9 / 3.10 supported
Wordpress version available
Wordpress version
Alternative WP version available

Extension list

yootheme

ecommerce

joomla