Hide system messages...

  • Posts: 37
  • Thank you received: 1
11 years 11 months ago #81876

Hi again,

Moving forward to my first HikaShop online shop :) ...

However, I'm having an issue with a system's message (see it live or in the screenshot attached) that are really not something I want the customers of this site to see.
It really looks like a bug, or something going wrong, and then it tends to remove confidence to move forward. :S

If you go on this site:
www.benedictecaillat.com/shop-home
...and clic on 'My Cart' without any product in there, the following message is then displayed:

'Warning: Creating default object from empty value in /homez.338/benedictz/www/components/com_hikashop/views/cart/view.html.php on line 314
Please login first'


1) Hide tech message
I want to hide all the 'technical part of the message (that is 'Warning: Creating default object from empty value in /homez.338/benedictz/www/components/com_hikashop/views/cart/view.html.php on line 314'). This is of utmost importance to me and the users of the website.
Please be kind enough to give me quite some details on how to do it (ex: if there's an edition in the PHP files in the 'Views' part, tell me which one as I don't know PHP at all).

2) Edit the look of the normal message
I want to be able to edit the view of the 'Please login', like center it , making it bold... In the CSS? Where?
It is slightly less a concern though.

3) Inconsistency in workflow
There is, on top of the mentioned issues / request, an inconsistency: if the cart is empty, I get the above mentioned message ('Please login'), BUT if the cart gets at least one item, then I can see it, and no more request to login... It is weird, not consistant, and makes me wonder what's going on... What do you think? What is wrong? What to do?

Many thanks in advance for you help,
Best to all,

D

Attachments:

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

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

Hi,

You can hide all the warning message with a Joomla option. In the joomla global configuration, in the tab settings, change the "Error reporting level".

To change the text, go in HikaShop > Configuration > Languages and edit your language file, search for the text to translate, and replacfe it.

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

  • Posts: 37
  • Thank you received: 1
11 years 11 months ago #81907

Hi Xavier,

Many thanks for your fast answer, appreciated.

Regarding my point n°1:
I turn it down, and indeed it is fine. But, there's a but.

For me, it is a problem to solve that issue like that.

I'm usually letting it on the 'Simple' setting, as it allows me to see what's going quicker in case of big issues...
Isn't there any quick term other solution on your side? I'm sure there's cleaner ways on your side than just shutting up the main system: it really doesn't help when there diagnostic to do on other things! Other extensions I'm using handle that... and I prefer it that way, allowing me to be informed of other most important issues directly.

What's your plan on this? Your opinion?
Thxs

Regarding my point n°2:
Actually this was not about translating it but being able to set it 'bold' and center it on screen, making it looking better and less worrying.
At the moment, it is really cold and very old fashion look...

How to tweak its display? Where?
Thxs

Regarding my point n°3:
You didn't answer to that one, while I think it is not normal behavior of the flow.


Many thanks in advance for further details in you answer,

Kind regards,
D.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #81962

Hi,

Please edit the file "components/com_hikashop/views/cart/view.html.php and change the code around line 314

else
   $user->id = 0;
By:
else {
   if(empty($user)) $user = new stdClass();
   $user->id = 0;
}
This modification would be include in the next HikaShop package.

HikaShop use a lot of "classname" on his HTML elements in order to help you to make some CSS customization.
www.hikashop.com/en/support/documentation/faq.html#css

If you want to add html content, you have to know that you can override all HikaShop views. In the backend, you can go into "Display > Views".
You would find all views and you would be able to edit a specific view for a specific template.

What page did you try to open to have the "please login first" message ?
We need to know the url in order to know the action you try to do.

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.
The following user(s) said Thank You: DomJam

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

  • Posts: 37
  • Thank you received: 1
11 years 10 months ago #83191

Hi Jérome,

I think I never thanked you for your answers.
Many thanks!! :)

The first code to avoid 'errors' works like a charm; it indeed allows me to leave the error report 'On' in Joomla. Perfect.
Good to hear that it will be included in next HikaShop pack.

For the other small customizations request, I'll get back to you in a separated topic; it is less important and it requires a bit better information from me (to help you to answer quickly).

Thanks again,
Kind regards,

D.

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

Time to create page: 0.084 seconds
Powered by Kunena Forum