[Skip to main content](#vessel-content)

#   some code disappeared when choose variant

##

- **[wzyefd](/forum/user/9587-wzyefd "View wzyefd's Profile")**
- [![wzyefd's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9587-wzyefd "View wzyefd's Profile") Topic Author
- [ Offline](/forum/user/9587-wzyefd)

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 2 weeks ago [\#73038](#73038) by [wzyefd](/forum/user/9587-wzyefd "View wzyefd's Profile")  *[some code disappeared when choose variant](/forum/2-general-talk-about-hikashop/73038-some-code-disappeared-when-choose-variant#73038 "Hi,  I copy show&#95;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.")* was created by *[wzyefd](/forum/user/9587-wzyefd "View wzyefd's Profile")*

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.

[ ![QQ20121030180737.jpg](/forum/attachment/6560) ](/forum/attachment/6560 "...1030180737.jpg")

[ ![QQ20121030180712.jpg](/forum/attachment/6561) ](/forum/attachment/6561 "...1030180712.jpg")

- [ ![QQ20121030180737.jpg](/forum/attachment/6560) ](/forum/attachment/6560 "...1030180737.jpg") [ ](/forum/attachment/6560?download=1 "...1030180737.jpg")
- [ ![QQ20121030180712.jpg](/forum/attachment/6561) ](/forum/attachment/6561 "...1030180712.jpg") [ ](/forum/attachment/6561?download=1 "...1030180712.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzczMDM4LXNvbWUtY29kZS1kaXNhcHBlYXJlZC13aGVuLWNob29zZS12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 2 weeks ago [\#73049](#73049) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: some code disappeared when choose variant](/forum/2-general-talk-about-hikashop/73038-some-code-disappeared-when-choose-variant#73049 "Hi,  I copy show&#95;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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzczMDM4LXNvbWUtY29kZS1kaXNhcHBlYXJlZC13aGVuLWNob29zZS12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wzyefd](/forum/user/9587-wzyefd "View wzyefd's Profile")**
- [![wzyefd's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9587-wzyefd "View wzyefd's Profile") Topic Author
- [ Offline](/forum/user/9587-wzyefd)

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 2 weeks ago [\#73094](#73094) by [wzyefd](/forum/user/9587-wzyefd "View wzyefd's Profile")  Replied by *[wzyefd](/forum/user/9587-wzyefd "View wzyefd's Profile")* on topic *[Re: some code disappeared when choose variant](/forum/2-general-talk-about-hikashop/73038-some-code-disappeared-when-choose-variant#73094 "Hi,  I copy show&#95;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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzczMDM4LXNvbWUtY29kZS1kaXNhcHBlYXJlZC13aGVuLWNob29zZS12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 2 weeks ago [\#73097](#73097) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: some code disappeared when choose variant](/forum/2-general-talk-about-hikashop/73038-some-code-disappeared-when-choose-variant#73097 "Hi,  I copy show&#95;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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzczMDM4LXNvbWUtY29kZS1kaXNhcHBlYXJlZC13aGVuLWNob29zZS12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wzyefd](/forum/user/9587-wzyefd "View wzyefd's Profile")**
- [![wzyefd's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9587-wzyefd "View wzyefd's Profile") Topic Author
- [ Offline](/forum/user/9587-wzyefd)

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 2 weeks ago [\#73124](#73124) by [wzyefd](/forum/user/9587-wzyefd "View wzyefd's Profile")  Replied by *[wzyefd](/forum/user/9587-wzyefd "View wzyefd's Profile")* on topic *[Re: some code disappeared when choose variant](/forum/2-general-talk-about-hikashop/73038-some-code-disappeared-when-choose-variant#73124 "Hi,  I copy show&#95;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.")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzczMDM4LXNvbWUtY29kZS1kaXNhcHBlYXJlZC13aGVuLWNob29zZS12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.067 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
