How I change the show product code?

  • Posts: 7
  • Thank you received: 0
11 years 10 months ago #84042

Hi,

I'm working right now in this page,



but I wont edit this code page, but I dont find the file, some one can help me?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 10 months ago #84064

Hi,

If you want to edit your product page, you'll have to:
- Go to "Hikashop->Display->Views"
- Edit the "Show_default" file of the "product" view of your front-end template.

Hope this will help you.

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

  • Posts: 7
  • Thank you received: 0
11 years 10 months ago #84075

I try several times, but nothing change.

my last try I use this code

<script type="text/javascript">alert('Hello');</script>


but the alert does not exist in the source code of page.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 10 months ago #84076

1. Are you sure that you are in an HIKASHOP product page ?
2. Are you sure that you are editing the good file of the good view of the good front-end template ?

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

  • Posts: 7
  • Thank you received: 0
11 years 10 months ago #84077

Im in this folder : ./components/com_hikashop/views/product/tmpl
And Im editing this file : show_default.php

actualization -> this is the URL of that printscreen : ./index.php?option=com_hikashop&ctrl=product&task=show&cid=2729&name=prateleira-em-melamina-com-furos&Itemid=59

I think i do it like you said

Last edit: 11 years 10 months ago by incograf.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #84331

Hi,

Please do not edit files directly, you should use the override interface in HikaShop.
Editing directly the file have several bad effects:
- The override have an higher priority so you're modification would not be display if there is already an override.
- You would loose all of your modification when updating HikaShop.

So please check which template is used by your front-end and edit the right view (for the right template) in the HikaShop backend (Display > Views).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 7
  • Thank you received: 0
11 years 10 months ago #84352

Thanks,

i find it now :D



In product > show.php

i try add one option to select on top of select box with text "SELECT A CHARACTERISTIC", i find the printer in the line 89 of that file
echo $this->characteristic->displayFE($this->element,$this->params);

But i dont know how can I add that,

someone can helpme



thanks for help from all of you,

i solve the problem width Jquery :D

thanks :D

Last edit: 11 years 10 months ago by incograf. Reason: Problem Solved

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

Time to create page: 0.231 seconds
Powered by Kunena Forum