Skip to main content

i change the price and ...

More
15 years 7 months ago #6717 by chaka
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.

More
15 years 7 months ago #6720 by nicolas
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.

More
15 years 7 months ago #6746 by chaka
thanks nicolas B)

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

More
15 years 7 months ago #6769 by chaka
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.

More
15 years 7 months ago #6786 by nicolas
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.

More
15 years 7 months ago #6829 by chaka

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

More
15 years 7 months ago #6831 by nicolas
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.

More
15 years 7 months ago #6839 by chaka
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.

More
15 years 7 months ago #6841 by nicolas
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.

More
15 years 7 months ago #6842 by chaka
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.256 seconds
Powered by Kunena Forum