Product Code

  • Posts: 12
  • Thank you received: 0
13 years 1 month ago #26504

Hello

On the front end on my site, when viewing a product is displays the Product Code beside the product title. How can I remove the Product code from the front end?

See Jpeg example.

Attachments:

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

  • Posts: 82822
  • Thank you received: 13368
  • MODERATOR
13 years 1 month ago #26518

It's probably because of your template:
www.hikashop.com/en/support/forum/4-how-...de-in-the-title.html

By default, the product code should not be displayed on that page unless you changed the CSS to display it.

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

  • Posts: 12
  • Thank you received: 0
13 years 1 month ago #26529

OK

I am using Modulus by RocketTheme and by Turning off 'Build Titles Spans' it solves the problem - which is Good.

But. . .Is there a way to keep 'Build Titles Spans' On and not have to Problem????

Hope you can help!! - as my site looks better with it ON.

Cheers. ~ Dave.

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

  • Posts: 82822
  • Thank you received: 13368
  • MODERATOR
13 years 1 month ago #26530

Sure, it's possible. You need to edit the file show of the view product via Display->Views and remove the span of the product_code:
<span id="hikashop_product_code_main" class="hikashop_product_code_main">
<?php
echo $this->element->product_code;
?>
</span>

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

  • Posts: 12
  • Thank you received: 0
13 years 1 month ago #26662

Hey

As editing code is beyond me - I asked my brother to have a look, he did, but could not get it to work. He went on to write the below message.


"Somewhere between the JavaScript from the hikashop, and the JavaScript from the site templates there appears to be a conflict.
The source code shows the heading 1 with the correct span tags nested inside. See screenshot: ‘source.png’.
However when viewed from the front end this breaks as shown in the second screenshot ‘rendered source.png’. As this screen grab shows, the spans within are either removed or closed prematurely – looks like classes/ids are removed to.
When JavaScript was switched off the page rendered as expected (although to show the site the wrapper div needed edited with Firebug to set opacity to 1 – for some reason this defaults to 0 meaning that nothing is visible when JavaScript is disabled)."

I hope this mains something to you and you can help!!

If you would be happy to look at the site, this can be arranged. If so what rate would you charge?

Hope to hear from you soon!

Cheers. ~ Dave. (feeling a bit overwhelmed by code!!!!)

File Attachment:

File Name: Source.png
File Size:142 KB

Attachments:

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

  • Posts: 82822
  • Thank you received: 13368
  • MODERATOR
13 years 1 month ago #26681

It's not a problem in HikaShop. The problem comes from the js of your template for the spans processing which breaks the HTML of HikaShop. Because of that, the CSS is not applied properly and thus the product code is displayed.

The modification I proposed above will do the trick by not displaying the product code at all.

If it didn't work it's probably because you didn't do the modification for the correct template.
You don't need to know PHP for that change. You just need to find the piece of code I pasted in my previous post in the file I mentioned and remove it.

We can of course do it for you for a small fee. If you're interested, you can contact us in private via PM or our contact page to arrange it.

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

  • Posts: 48
  • Thank you received: 2
12 years 6 months ago #50470

Hi, I have the same issue. Can you be more clear about which files to edit?

What is the specific path? I've looked in:

/components/com_hikashop/views/product/tmpl

I can't find the file with the specific code you posted.


I love Hikashop and will eventually upgrade to professional version. Still getting my bearings.

Thanks

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

  • Posts: 82822
  • Thank you received: 13368
  • MODERATOR
12 years 6 months ago #50532

You need to edit the file 'show_default' of the view 'product' via Display->Views. You should not edit the file directly via FTP as you will loose your changes when you update HikaShop.

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

  • Posts: 48
  • Thank you received: 2
12 years 6 months ago #50564

Perfect, thank you!

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

Time to create page: 0.079 seconds
Powered by Kunena Forum