Shipping method not found after upgrade

  • Posts: 14
  • Thank you received: 2
11 years 5 months ago #78343

Hello,

After upgrading Hikashop I get the message that the shipping method is not found. This only occurs when the weight = 0. For all other weights there is no problem.
I defined a shipping method for weight = 0 long ago and it always worked fine. Attached its config. Any idea?

I use Joomla 2.5.8


Groet,

René
Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #78361

Hi,

You have to enable the option "Force shipping regardless of weight" in HikaShop > Configuration > Display.
And the option "Virtual article.." in your shipping method configuration.

The following user(s) said Thank You: rwstout

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

  • Posts: 14
  • Thank you received: 2
11 years 5 months ago #78383

Thanks,

In fact the first setting is in Configuration | Checkout.

Question: now I see: Shipping cost: € 0.
Is there a way to don't show shipping costs when they are zero?


Groet,

René

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #78402

Hi,

Yes, you can edit the view "checkout / cart" and add an if/else condition to display or not the shipping costs if the price is equal to 0 or not.

The following user(s) said Thank You: rwstout

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

  • Posts: 26013
  • Thank you received: 4004
  • MODERATOR
11 years 5 months ago #78403

Hi,

You can override the view "checkout | cart" in order to display JText::_('PRICE_FREE') when the shipping price is 0.
Just replace

                if(isset($this->shipping->shipping_price)) {
                  if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax') || !isset($this->shipping->shipping_price_with_tax) ){
                    echo $this->currencyHelper->format(@$this->shipping->shipping_price,$this->shipping->shipping_currency_id);
                  }else{
                    echo $this->currencyHelper->format(@$this->shipping->shipping_price_with_tax,$this->shipping->shipping_currency_id);
                  }
                }
By
                if(isset($this->shipping->shipping_price)) {
                  if(empty($this->shipping->shipping_price)) {
                    echo JText::_('FREE_PRICE');
                  } else if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax') || !isset($this->shipping->shipping_price_with_tax) ){
                    echo $this->currencyHelper->format(@$this->shipping->shipping_price,$this->shipping->shipping_currency_id);
                  }else{
                    echo $this->currencyHelper->format(@$this->shipping->shipping_price_with_tax,$this->shipping->shipping_currency_id);
                  }
                }

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 11 years 5 months ago by Jerome.

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

  • Posts: 14
  • Thank you received: 2
11 years 5 months ago #78417

Thanks,

It's not quite what I would like to see. I prefer that the card does not show the shipping method at all when the costs are zero. As far as I can remember it was that way. Did it change in the latest Hikashop version?


Groet,

René

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #78440

Nothing changed since HikaShop 1.6.0 in the shipping system.
But it's possible that some options have been unset, and need to be set again.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum