VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: andrai2 on August 25, 2016, 22:07:47 PM

Title: Drop Down select for shiping methods!
Post by: andrai2 on August 25, 2016, 22:07:47 PM
Hello!

I am a developing a new virtuemart site, i have client who wants to deliver products via post offices in my country:

The problem ir that I have aproxemetly 50 shippment methods in list and it creates a long, long list in shippment methods (these 50 shippment  methodes ar post offices where client can get his product)

Is it possible some have to make Drop Down select for shiping methods!...?

May be there is some shipment plugin to do that..?

Joomla 3.6
VirtueMart 3.0.16

<select>
  <option value="Shipment1">Shipment1</option>
  <option value="Shipment2">Shipment2</option>
  <option value="Shipment3">Shipment3</option>
  <option value="Shipment4">Shipment4</option>
</select>
 
Title: Re: Drop Down select for shiping methods!
Post by: GJC Web Design on August 25, 2016, 22:48:51 PM
you need to recode the display of the various methods into a select.. look at how the ship methods are displayed in the administrator\components\com_virtuemart\plugins\vmpsplugin.php

protected function getPluginHtml ($plugin, $selectedPlugin, $pluginSalesPrice)

this can be over ridden in a ship plugin

or code a plugin that is singly configurable for all 50 methods and displays the list as a select

do u have no automation? e.g. if the shipto postcode is xxx it shows the nearest postoffice?

What country is this?   Latvia?

I have a fully automated ship plugins for Omniva & Post24 that give a dropdown list of collection points (offices)

You can test it on http://test.gjcwebdesign.com/joomla336


Title: Re: Drop Down select for shiping methods!
Post by: andrai2 on August 26, 2016, 09:19:45 AM
Well basicly this is exatly what I need drop down with post offices. Yes country is Latvia! And Ominiva and post 24, has a lot off, pick up places to pick up the product, i have not yet made automation

Well i look at administrator\components\com_virtuemart\plugins\vmpsplugin.php and via fire bug try make some changes to get the drop down, but i am far from custom php  expert to make custom changes as this

I dont know if thats possible, maybe you could share these php modified files via private messege or public..? So that i could uploud via ftp and makedrop down possible...

Respecting your custom work, as i am making shop for my client, we can pay some symbolic money, but it is low budget project.

Are you Latvian...?
Title: Re: Drop Down select for shiping methods!
Post by: GJC Web Design on August 26, 2016, 12:09:19 PM
Latvian no...

but the Ominiva and post 24 shipping plugins are both standard installable VM shipping plugins that are for sale

PM or email me if interested
Title: Re: Drop Down select for shiping methods!
Post by: GJC Web Design on July 06, 2022, 15:34:32 PM
These plugins have now been upgraded for Joomla 4 /VM4