Manual Shipping Configuration----Drop Down choices

  • Posts: 3
  • Thank you received: 0
12 years 1 day ago #78879

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.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 day ago #78929

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:

<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.

  • Posts: 8
  • Thank you received: 0
10 years 2 weeks ago #178780

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.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
10 years 2 weeks ago #178792

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.078 seconds
Powered by Kunena Forum