i change the price and ...

  • Posts: 135
  • Thank you received: 0
13 years 1 month ago #6717

i update my hikahsop to 1.4.4 essential

and change some price and udpdate my stock of some products and now in product detail show this.





Notice: Undefined property: stdClass::$images in /components/com_hikashop/views/product/tmpl/show.php on line 177

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
13 years 1 month ago #6720

You can change the line:
if($this->config->get('thumbnail') && count($variant->images)>1){
to:
if($this->config->get('thumbnail') && count(@$variant->images)>1){
in that file to remove the notice.

Please note that you should not run your website with the display_error setting on as may reveal security information to end users, such as file paths on your Web server, your database schema or other information.

On our end, we'll change the code there to avoid that notice.

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

  • Posts: 135
  • Thank you received: 0
13 years 1 month ago #6746

thanks nicolas B)

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

  • Posts: 135
  • Thank you received: 0
13 years 1 month ago #6769

hi nicolas

i was change and update again some product and in the backend sometimes i see this text



went this happens the Characteristic dont appear , and i need to remove and add again .


oo and thanks for you advice

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
13 years 1 month ago #6786

Could you check that you have the line:
if(!empty($new) || (empty($results)&&!empty($main_ids))){
On line 427 of the same file ?

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

  • Posts: 135
  • Thank you received: 0
13 years 1 month ago #6829

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
13 years 1 month ago #6831

Are you sure that you're text editor displays the lines correctly?
On line 436, you should have that code:
foreach($element->characteristics as $characteristic){
and few lines before, you should have either :
if(!empty($new) || (empty($results)&&!empty($main_ids))){
or:
if(!empty($new) || empty($results)){

If that's the second case, you should change it to the first case to solve the problem.

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

  • Posts: 135
  • Thank you received: 0
13 years 1 month ago #6839

sorry :( nicolas i dont see this code in my file in : /administrator/components/com_hikashop/classes/product.php


this is my file : uploading.com/files/d29fa6mc/product.php/

sorry i dont but i dont see the code in this file

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
13 years 1 month ago #6841

You indeed have the old code on the line 427. You could redownload hikashop and install it over your previous version. That should fix the problem.

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

  • Posts: 135
  • Thank you received: 0
13 years 1 month ago #6842

aaassshhh well :dry: . i do it later

thanks B)

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

Time to create page: 0.078 seconds
Powered by Kunena Forum