- Posts: 82
- Thank you received: 1
Message for weight in check out
6 years 10 months ago #313018
by lensky
Message for weight in check out was created by lensky
-- 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
-- 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.
6 years 10 months ago #313020
by Philip
Replied by Philip on topic Message for weight in check out
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
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.
6 years 10 months ago #313511
by lensky
Replied by lensky on topic Message for weight in check out
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
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.
6 years 10 months ago #313518
by nicolas
Replied by nicolas on topic Message for weight in check out
Hi,
In the file "show_block_cart", that you can edit via the menu Display>Views, you would need to add such code:
In the file "show_block_cart", that you can edit via the menu Display>Views, you would need to add such code:
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.206 seconds