A few issues after the upgrade to hikashop 6.5.0

  • Posts: 53
  • Thank you received: 6
  • Hikashop Business
2 weeks 6 days ago #372590

-- HikaShop version -- : 6.5.0
-- Joomla version -- : 5.4.6
-- PHP version -- : 8.2
-- Browser(s) name and version -- : Firefox (computer) Google chrome (mobile phone)

Hello,

I’m having a few issues since updating to the latest hikashop version 6.5.0 and joomla 5.4.6:

1/ On the mobile version, when I’m on the original artworks menu and see the list of images, the text that appears below each image is not always the same size : www.noelieceyralartstudio.com/index.php/en/original-artworks

2/ On the product page, when I clikc on the arrow to see the next image, the screen moves down and so the images are not visible anymore. I have noticed that this doesn’t happen with all products, but with most of them. Here is one example where this is happening : www.noelieceyralartstudio.com/index.php/...eyond-time-and-space

3/ I’m having an error on the checkout page when I add a product to the cart. See attached image.

4/ When I click on the product at the checkout page in order to change the characteristics’ values, the page doesn’t show up properly compared to how it used to look like. I have attached an image for this issue also.

Do you know where these problems are coming from and how to fix them ?

Many thanks !

Attachments:

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

  • Posts: 85988
  • Thank you received: 14154
  • MODERATOR
2 weeks 6 days ago #372596

Hello,

Thank you for the details and the screenshots, they point clearly to the cause.

The warning on your screenshot is the key:

Undefined variable $edit in .../templates/ja_blockk/html/com_hikashop/checkout/show_block_cart.php

That file is a HikaShop view override stored inside your template (ja_blockk). It is an old copy of our checkout cart view, made for a previous HikaShop version. In HikaShop 6.5.0 that view changed, so your outdated copy is now out of sync and breaks:

- issue 3 is the warning it prints in the cart
- issue 4 is the same file rendered in edit mode, which is why the "Edit product information in the cart" popup no longer looks right

Overrides are not updated automatically when you update HikaShop, so after a major update they have to be updated or removed by hand if they cause problems. To fix issues 3 and 4, edit or remove this file:
templates/ja_blockk/html/com_hikashop/checkout/show_block_cart.php

If you did not need a custom version, simply delete it and HikaShop will use its own up to date view.

Issues 1 and 2 are almost certainly the same thing: other outdated HikaShop overrides left in your template. To confirm it in one step, rename the whole override folder temporarily:
templates/ja_blockk/html/com_hikashop  ->  com_hikashop_old

Then reload the pages. If the listing text, the product image navigation and the checkout all go back to normal, the overrides were the cause. You can then either keep the default views, or re-apply your customizations one by one on top of the new 6.5.0 view files (copy the new file from components/com_hikashop/views/... and redo your changes in it). AI like claude code or ChatGPT code can do the work if necessary.

If a problem remains even with that folder renamed, tell me which one and I will look at it specifically, as it would then be a template CSS point rather than an override.

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

  • Posts: 53
  • Thank you received: 6
  • Hikashop Business
2 weeks 5 days ago #372613

Hi,

Thank you for your answer.

I have done quite a few changes to various view files. I guess that changing that folder name would remove all of these changes, isn’t it ? which would not be ideal for me… so I would prefer to avoid doing that if at all possible…

I have checked the show_block_cart.php view and I had made changes from line 234 to 260 which could maybe explain this particular problem. I made those changes to add some extra information about the product to the cart. I am including the view with the changes as an attached image so you can see the code on line 247. I am also copying it below :

$id = $product->product_id;
if(!empty($product->product_parent_id))
$id = $product->product_parent_id;
$productClass = hikashop_get('class.product');
$categories = $productClass->getCategories($id);
$firstCategoryId = reset($categories);
$categoryClass = hikashop_get('class.category');
$category = $categoryClass->get($firstCategoryId);
$this->fieldsClass = hikashop_get('class.field');
$field = $this->fieldsClass->getField('categoryname_forcart', 'category');
echo $this->fieldsClass->show($field, $category->categoryname_forcart);

Line 247 : echo '<p>'.$product->product_name;
if(empty($this->options) && $edit) {}else{echo '</p>';}

$id = $product->product_id;
if(!empty($product->product_parent_id))
$id = $product->product_parent_id;
$productClass = hikashop_get('class.product');
$categories = $productClass->getCategories($id);
$firstCategoryId = reset($categories);
$categoryClass = hikashop_get('class.category');
$category = $categoryClass->get($firstCategoryId);
$this->fieldsClass = hikashop_get('class.field');
$field = $this->fieldsClass->getField('cart_extra_info', 'product');
echo $this->fieldsClass->show($field, $product->cart_extra_info);

Maybe you can see what may be causing the issue I’m having ?

For problem 4, I have checked for modifications I may have done to cart / product_edit.php in the view files but there are none there and this file does not appear when I go onto the ftp in the folder you mentioned ; templates/ja_blockk/html/com_hikashop . But maybe the problem is also due to line 247 in show_block_cart.php view ?

Thank you !

Attachments:

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

  • Posts: 85988
  • Thank you received: 14154
  • MODERATOR
2 weeks 5 days ago #372616

Hi,

It's not that your changes are a problem. The problem is that you made your changes with an override of an old version of HikaShop. The rest of the code of the file you're seeing has changed in HikaShop to be able to adapt to newer versions of PHP, Joomla, changes in HikaShop. You don't have those changes in your override file.
So, you want to delete the override, and then recreate it based on the current version of HikaShop and add back your changes in the same place. You'll get the modifications we've made since then, and you'll still have your changes.

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

  • Posts: 53
  • Thank you received: 6
  • Hikashop Business
2 weeks 4 days ago #372629

Hi,

Thank you! I'm looking into that.

For the show_block_cart.php view, I have removed the modifications in the backend and then added the code I had added to the previous file in the new hikashop view and it is now showing normally. Do i also need to remove the file in the ftp folder you mentionned in order to make sure that there is no future problem with the overide or is it enough to remove it from the backend?

What about the other view files that seem to cause a problem or that I have done modifications to? Do I need to remove all of the modifications for all of these,then remove the document from the ftp and then add the modifications to the backend in the new hikashop version?

thank you!

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

  • Posts: 85988
  • Thank you received: 14154
  • MODERATOR
2 weeks 4 days ago #372632

Hi,

No need to do it via FTP if you already do it via the interface.

You don't necessarily need to do it for all the view overrides you have. Only the ones causing a problem. The best is to activate the "Display view files" setting in the HikaShop configuration and look at the pages with issues on the frontend. That should allow you to see which view files have problems to do the operation in the problematic ones.

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

  • Posts: 53
  • Thank you received: 6
  • Hikashop Business
1 week 4 days ago #372748

Hello,

Thank you ! I’m still looking into issue 1 and I’ve now sorted out issue 2 and 3.

With regards to issue 4, I went to :

/media/com_hikashop/css/hikashop.css via FTP

At line 290, I changed display from grid to block and that sorted the issue. However, the price doesn’t change automatically when we change the characteristics. I think it used to do that before though. Also, as I had to make that change via ftp, I guess that it will disappear from my files as soon as I update to the future new hikashop version. It seems that it might be a problem with the new hikashop version. I updated to 6.5.2 before I made this change.

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

  • Posts: 85988
  • Thank you received: 14154
  • MODERATOR
1 week 4 days ago #372753

Hi,

Yes, you should add your CSS via the backend or in your template's custom CSS (what I would recommend).
So, the first thing is to check how your template allow for custom CSS and then copy / paste the custom CSS you want to persist in it.

Regarding the price changing, I checked www.noelieceyralartstudio.com/index.php/...eyond-time-and-space which you provided before and the price is still changing when I change the variant selected. Could you please double check.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum