Skip to main content

Manual Shipping Configuration----Drop Down choices

13 years 11 months ago #78879 by jimylegg1
I have a manual shipping configured in my shop. I have something like 18 different Manual options though. It would look much cleaner and be easier for the customer to use if I could put all of these in to a single drop down box that they could choose their choice of shipping method. Is this possible?

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

13 years 11 months ago #78929 by Xavier
Hi,

Yes I think that it's possible, you can edit the view "checkout / shipping" in HikaShop > Display > Views.
And replace the radio buttons by the dropdown.

The dropdown should be like:
Code:
<select name="hikashop_shipping"> <option value="<?php echo $rate->shipping_type.'_'.$rate->shipping_id;?>"><?php echo $rate->shipping_name;?></option> </select>

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

12 years 1 week ago #178780 by mediax
Hi Xavier, I have tried your suggestion of replacing the radio button with a select field, but I get a select box now for each option instead of all the options in one select box. Is there any way around this? And this also breaks the Jscript for the shipping method, when you click on it, there is no response.

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

12 years 1 week ago #178792 by nicolas
Hi,

The code from Xavier is just a small code advice but you can't use it "as is". It requires to remove almost all the code of the shipping view file with more complex code than that. You need to loop through the shipping methods to add all the necessary options in the dropdown, and add an onclick on the select to handle the auto submit of the selection.
If you're not familiar with PHP, I would recommend to contact our partners for a quote on this customization:
www.hikashop.com/home/our-partners.html

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

Time to create page: 0.045 seconds
Powered by Kunena Forum