Maunal shipping module: Adding "mandatory" options

  • Posts: 56
  • Thank you received: 0
13 years 1 month ago #32330

Hi,

I would like to add a choice of insurance options to the checkout process in the shop I'm currently working on. There are two choices, basic and comprehensive.

The cost of basic insurance is 10% of total SHIPPING cost, with a minimum of 1.00 EUR.

The cost of comprehensive insurance is 1.5% of total MERCHANDISE cost, with a minimum of 3.65 EUR.

Insurance is MANDATORY -- you can choose between them, but the choice "no insurance" is not available.

How can I set this up best in the shop?

If it is possible to avoid creating more "shipping methods" to accommodate these choices, I'll be very happy, I already have several thousand.

Can HikaShop handle adding an item to the cart based on % of shipping cost or % of merchandise cost?

Can it handle making a choice of one of two items mandatory for every order?

Thanks for any practical advice.


HikaShop Business 2.3.2 on Joomla 1.5.26 + JoomFish 2.1.6 - Multilingual site

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

  • Posts: 83156
  • Thank you received: 13430
  • MODERATOR
13 years 1 month ago #32368

Hi,

One solution would be to duplicate all your shipping methods so that you would see two shipping methods each time with the insurance price included in it.
If you have thousands of shipping methods already, that's indeed not practical.

Another option would be to create a custom order field so that the user could select his insurance and then have some custom code add in the views of the checkout to add a insurance product to the cart automatically (that can be done quite easily with few lines of code) and a quantity price calculation override plugin (you can see the developer documentation for more information on that) to set the price of that product dynamically based on the selection of the user and the cart/shipping.
That however requires to know PHP and have a grasp of HikaShop's internals.

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

  • Posts: 56
  • Thank you received: 0
13 years 1 month ago #32390

Hmmm... I have three days to finish my shop and launch the website (before a trade fair the end of next week), so I will take the "duplicate shipping methods" trail if possible. That's the only thing I can really get a handle on in such short order.

It would be hard to find a PHP coder I can trust so quickly.

But maybe I'll have to?

Am I right that a few lines of PHP code would be the only way to base the price of one insurance option on the total merchandise value in the order?

The other ("basic") insurance option is simple, I just increase the original shipping prices by 10% and it's finished.

Thanks for your quick response, time is running very short and I need to get a realistic solution on track ASAP -- I need to know very realistically the job that I'm looking at.

Cheers


HikaShop Business 2.3.2 on Joomla 1.5.26 + JoomFish 2.1.6 - Multilingual site

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

  • Posts: 83156
  • Thank you received: 13430
  • MODERATOR
13 years 1 month ago #32404

The modifications are not really complex, but that would still require to write around 50 lines of code. It's not something you can undertake easily if you're not a programmer.
If you're running short in time, duplicating the shipping methods and changing the prices of the duplicates should take less time than finding a coder and then waiting for him to understand HikaShop and do the job. You could speed up the process by exporting the hikashop_shipping table to a CSV, modify it via excel to add your new shipping methods and import it back.

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

  • Posts: 56
  • Thank you received: 0
13 years 1 month ago #32498

Not practical at the moment, so we've changed shipping companies now to one with a simpler fee structure. Not a plan I like two days before launch, but you gotta do what you gotta do...


HikaShop Business 2.3.2 on Joomla 1.5.26 + JoomFish 2.1.6 - Multilingual site

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

Time to create page: 0.040 seconds
Powered by Kunena Forum