Empty cart message
- brainforge
-
Topic Author
- Offline
Less
More
15 years 3 months ago #18806
by brainforge
Empty cart message was created by brainforge
Please Log in or Create an account to join the conversation.
15 years 3 months ago #18820
by nicolas
Replied by nicolas on topic Re: Empty cart message
There is an option in the cart module to change the cart empty message so you should be able to remove that one. You could also enter the message in that option and then change the translation of the other one CART_EMPTY to remove it. That way, you would have the message in the cart module and not on the page.
Please Log in or Create an account to join the conversation.
- brainforge
-
Topic Author
- Offline
15 years 3 months ago #18870
by brainforge
Replied by brainforge on topic Re: Empty cart message
The empty cart message override in the module did not appear to work.
In the language override I set:
Then had to modify the product cart.php template.
In the language override I set:
Code:
CART_EMPTY=""
MY_CART_EMPTY="The cart is empty"
Then had to modify the product cart.php template.
Code:
$desc = $this->params->get('comp_description');
if(empty($desc)){
$this->params->set('comp_description',JText::_('MY_CART_EMPTY'));
}
Please Log in or Create an account to join the conversation.
15 years 3 months ago #18872
by nicolas
Replied by nicolas on topic Re: Empty cart message
Mmm. I had a look at the code. It should be msg instead of comp_description. Could you try with that (3 places in that file)?
Please Log in or Create an account to join the conversation.
- brainforge
-
Topic Author
- Offline
15 years 3 months ago #18875
by brainforge
Replied by brainforge on topic Re: Empty cart message
That fixed it, thanks.
I have got rid of MY_CART_EMPTY.
I have got rid of MY_CART_EMPTY.
Please Log in or Create an account to join the conversation.
15 years 3 months ago #18876
by nicolas
Replied by nicolas on topic Re: Empty cart message
great. We'll add that to next release !
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33044
by alex_ciss
Replied by alex_ciss on topic Re: Empty cart message
Hi
Have had a read through of posts on this. I'd like to do a similar thing - completely remove the message that appears on the page: "the cart is empty". I have options set to show mini cart all the time so no need for message really. Could you advise - didn't really understand the instructions above.
Thanks for your help
Have had a read through of posts on this. I'd like to do a similar thing - completely remove the message that appears on the page: "the cart is empty". I have options set to show mini cart all the time so no need for message really. Could you advise - didn't really understand the instructions above.
Thanks for your help
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33061
by nicolas
Replied by nicolas on topic Re: Empty cart message
Hi,
To remove the message, you can just override its translation, as any text in HikaShop:
www.hikashop.com/en/download/languages.html#modify
To remove the message, you can just override its translation, as any text in HikaShop:
www.hikashop.com/en/download/languages.html#modify
Please Log in or Create an account to join the conversation.
13 years 1 month ago #117094
by ximbo
Replied by ximbo on topic Empty cart message
Joomla 3.1, hikashop 2.2
Info that may prove useful to others - another way of editing this message is via the products / cart.php override, especially if you want to add additional html markup or customisation rather than just removing the message.
Info that may prove useful to others - another way of editing this message is via the products / cart.php override, especially if you want to add additional html markup or customisation rather than just removing the message.
Code:
if($cart_type == 'wishlist'){
...
}
else {
$empty= <edit this to customise>
}
Please Log in or Create an account to join the conversation.
Time to create page: 0.193 seconds