some code disappeared when choose variant

  • Posts: 24
  • Thank you received: 0
11 years 6 months ago #73038

Hi,

I copy show_default.php to my template folder to override hika default template.
I want to modify some.
For example,I want to place code and price to another div, and put some text before it.
It works when refresh product detail page,
but when I choose a variant, these texts before code and price will disappear.
I think maybe it caused by ajax,but I didn't know how to fix it.



Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #73049

Hi,

I think that you should also edit the show file of the product view of your front-end template (where your variants are added).

Hope this will help you.

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

  • Posts: 24
  • Thank you received: 0
11 years 6 months ago #73094

I just put show file to my front-end template/html/com_hikashop/product.
The texts will disappear after I choose variants.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #73097

Your product's variants are being displaid trough your "show" file so you'll have to edit this file to add your text.

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

  • Posts: 24
  • Thank you received: 0
11 years 6 months ago #73124

thks,
I mean that,
I have to edit show.php also.
It works.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum