Message for weight in check out

  • Posts: 82
  • Thank you received: 1
5 years 1 week ago #313018

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.12

Hi,
I set some delivery methods based on weight.
Is it possible to show in cart messages like "you can add up to xxxx kg more without pay more for delivery''?
thank you
Elena

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
5 years 1 week ago #313020

Hello,

We see several solutions to fit your needs, but can you define more precisely your idea ?
- Does this message have to be trigger or always be present, just to be sure.
- Detail some concrete cases

Awaiting details from you to better answer you.
Regards

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

  • Posts: 82
  • Thank you received: 1
4 years 11 months ago #313511

Hi,
I set delivery method - e.g. - for a weight between 0 and 10kg and a method for a weight between 10.01 kg and 20.
Supposing a customer to have 7 kg of products in the cart, I'd like to have a message in the cart (or at least in the checkout) like ' you have 3kg more without paying more for shipping fees'
of course I aim to make people buying more...
do you think is possible?
thank you

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 11 months ago #313518

Hi,

In the file "show_block_cart", that you can edit via the menu Display>Views, you would need to add such code:

if($cart->package[weight']['value'] < 10) {
 echo 'you have '.(10-$cart->package[weight']['value']).'kg more without paying more for shipping fees';
}

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

Time to create page: 0.058 seconds
Powered by Kunena Forum