Multiple product name gets shown.

  • Posts: 1
  • Thank you received: 0
8 years 4 months ago #260436

Hi guys,

I'm struggling with a minor Hikashop issue.

Every time i'm echoing the product name, the product name is added
multiple times at the bottom of the page. How do i fix it?

I'm using the standard Hikashop way of echoing the product name, as you see
below. The problem is that it prints the product name, for each variant also. So
i end up with the product name 2-4 four times, depending on the item. I really
don't understand way?

<?php
  if (hikashop_getCID('product_id')!=$this->element->product_id && isset ($this->element->main->product_name))
    echo $this->element->product_name;
  ?>

I made a gist of the page mentioned here.

gist.github.com/mikejakobsen/f197cec68979d96ed7abbb013edcba8d

You can see the issue live here.

jupiterdesign.s1.hoeks.dk/udsalg/produkt/3658-acid-29-hjul

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
8 years 4 months ago #260443

Hello,

I think about an override issue, can you go to check this:
- In Components => HikaShop=> Configuration
- On Display dropdown select Views
- Use the three dropdown filter to find your "show_block_img" view
- If you have a little trash icon, save your code on your side, then click on the little icon to delete your custom code.



If that solve your issue, your override view is the root issue.
Awaiting news from you.

Regards

Attachments:
Last edit: 8 years 4 months ago by Philip.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum