Custom_field image not shown

  • Posts: 12
  • Thank you received: 3
  • Hikashop Business Hikashop Essential
3 days 23 hours ago #365718

-- url of the page with the problem -- : mijnpvcwinkel.nl/index.php/alle-merken/p...-heritage-plank-6120
-- HikaShop version -- : 5.1.3
-- Joomla version -- : 5.2.3
-- PHP version -- : 8.3.6
-- Browser(s) name and version -- : Safari 17.6

Hello,

We have two working shops mijninterieurwinkel.nl and mijnpvcwinkel.nl. The same product gives two different results.
Compare the two here:

mijninterieurwinkel.nl/index.php/overzic...ack-plank-kleur-6120
and
mijnpvcwinkel.nl/index.php/alle-merken/p...-heritage-plank-6120

At the bottom of the pages there is a field 'gebruikersklasse'. On the first the image is shown, but on the second it is not found. I have tried .png and .jpg files. I traced the code to the view product/show_block_custom_main.php. On both sites it shows the same code, and the same value in the database, so how can this be possible?

Where can I trace this further? And more important, how do I fix this?

EDIT: I tried to match the different source codes and I did notice why it is not showing:

On mijninterieurwinkel.nl (working site) I found:
<span id="hikashop_product_custom_value_38" class="hikashop_product_custom_value">
<img class="hikashop_custom_image_link" src="/index.php/component/hikashop/order/download/field_table-product/field_namekey-Z2VicnVpa2Vyc2tsYXNzZQ==/name-dmlzZ3JhYXQtcGl0LmpwZw==" alt="visgraat-pit.jpg">


On mijnpvcwinkel.nl (not working site) I found:
<span id="hikashop_product_custom_value_30" class="hikashop_product_custom_value">
<img class="hikashop_custom_image_link" src="/index.php/component/hikashop/order/download/field_table-product/field_namekey-Z2VicnVpa3NrbGFzc2U=/name-NjEwMHBpdC5qcGc=&order_token=" alt="6100pit.jpg"></span>


The big difference is that in the second there is an addition "&order_token=". When I remove this the image shows! The big question is: Where is this coming from. I can't find it, browsing the php files for how the line is built. Maybe there is some option I should have set of reset. I don't know.
Hope to hear from you guys.

Attachments:
Last edit: 3 days 20 hours ago by Mea Arte. Reason: New information

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

  • Posts: 83296
  • Thank you received: 13466
  • MODERATOR
3 days 19 hours ago #365723

Hi,

Thank you for the details on this issue.
This issue is a side effect of a previous fix we've added in HikaShop 5.1.3 to correct another problem with custom fields in another particular case:
www.hikashop.com/forum/checkout/909036-c...oad-file.html#365287
I was able to reproduce your issue and created a patch for it.
Please download again the install package of the latest version of HikaShop on our website, install it on yours, and you'll get the patch. The image should then display properly.

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

  • Posts: 12
  • Thank you received: 3
  • Hikashop Business Hikashop Essential
3 days 2 hours ago #365734

Nicolas,

Thanks for the quick reply (as always).
I have some overrides and therefore there is no change in my problem. Can you point me to the right files, so I can check if my overrides are still usefull and in place? Maybe I can merge some of my changes into a new file, to update my changes.

Thanks in advance.

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

  • Posts: 83296
  • Thank you received: 13466
  • MODERATOR
3 days 1 hour ago #365736

Hi,

It's not an override. The changes are in a core file of HikaShop.
However, upon further review, I can see I had messed up with one of the modifications I had to do. Sorry for that.
I've made a second patch for that.
Please download again the install package of the latest version of HikaShop on our website, install it on yours, and you'll get the new patch too.

The following user(s) said Thank You: Mea Arte

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

  • Posts: 12
  • Thank you received: 3
  • Hikashop Business Hikashop Essential
3 days 58 minutes ago #365740

Thanks Nicolas. This worked out!

The following user(s) said Thank You: nicolas

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

Time to create page: 0.065 seconds
Powered by Kunena Forum