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

#   ghost code in show\_block\_product\_files view?

##

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

Less More

- Posts: 79
- Thank you received: 3
-
-

11 years 1 week ago [\#219292](#219292) by [pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")  *[ghost code in show\_block\_product\_files view?](/forum/26-product-category-display/880224-ghost-code-in-show-block-product-files-view#219292 "-- HikaShop version -- : Business: 2.6.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.3  Hello, I can't find logical answer to some product display behaviour.  I have a book store and I sell ebooks in some formats. I have defined a characteristic with 3 ebooks formats (pdf, epub and mobipocket).  Well I have personalized &quot;show&#95;block&#95;product&#95;files&quot; view in order to show my download files in my own styles (I inserted some flags in order to check If I edited the proper view). In catalog, when I click in ebook to display product description, I obtain the correct view (see ghost&#95;code&#95;001.jpg). You can see the page code generated in ghost&#95;code&#95;002.jpg with my flags in red, blue, green and pink rectangles.  When I change the ebook variant clicking in its corresponding radio button (ghost&#95;code&#95;003.jpg), then  some &quot;ghost code&quot; appear replacing the original one, but my personalized &quot;show&#95;block&#95;product&#95;files&quot; view is still loaded because 2 of my flags are still there as you can see in ghost&#95;code&#95;004.jpg, but red and pink flags was disapeared.  From where this code is loaded? because if it had loaded another view, all my flags have disappeared not only two of them. I am astonished. What happend?, some one can explained me what is happening?.  Thanks in advance.  P.D. I attached my show&#95;block&#95;product&#95;files view code")* was created by *[pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")*

-- HikaShop version -- : Business: 2.6.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.3

Hello, I can't find logical answer to some product display behaviour.

I have a book store and I sell ebooks in some formats. I have defined a characteristic with 3 ebooks formats (pdf, epub and mobipocket).

Well I have personalized "show_block_product_files" view in order to show my download files in my own styles (I inserted some flags in order to check If I edited the proper view).
In catalog, when I click in ebook to display product description, I obtain the correct view (see ghost_code_001.jpg). You can see the page code generated in ghost_code_002.jpg with my flags in red, blue, green and pink rectangles.

When I change the ebook variant clicking in its corresponding radio button (ghost_code_003.jpg), then  **some "ghost code" appear replacing the original one**, but my personalized "show_block_product_files" view is still loaded because 2 of my flags are still there as you can see in ghost_code_004.jpg, but red and pink flags was disapeared.

From where this code is loaded? because if it had loaded another view, all my flags have disappeared not only two of them.
I am astonished. What happend?, some one can explained me what is happening?.

Thanks in advance.

P.D. I attached my show_block_product_files view code

- [ ![ghost&#95;code&#95;001.jpg](/forum/attachment/27425) ](/forum/attachment/27425 "...t&#95;code&#95;001.jpg") [ ](/forum/attachment/27425?download=1 "...t&#95;code&#95;001.jpg")
- [ ![ghost&#95;code&#95;002.jpg](/forum/attachment/27426) ](/forum/attachment/27426 "...t&#95;code&#95;002.jpg") [ ](/forum/attachment/27426?download=1 "...t&#95;code&#95;002.jpg")
- [ ![ghost&#95;code&#95;003.jpg](/forum/attachment/27427) ](/forum/attachment/27427 "...t&#95;code&#95;003.jpg") [ ](/forum/attachment/27427?download=1 "...t&#95;code&#95;003.jpg")
- [ ![ghost&#95;code&#95;004.jpg](/forum/attachment/27428) ](/forum/attachment/27428 "...t&#95;code&#95;004.jpg") [ ](/forum/attachment/27428?download=1 "...t&#95;code&#95;004.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 1 week ago [\#219295](#219295) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[ghost code in show\_block\_product\_files view?](/forum/26-product-category-display/880224-ghost-code-in-show-block-product-files-view#219295 "-- HikaShop version -- : Business: 2.6.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.3  Hello, I can't find logical answer to some product display behaviour.  I have a book store and I sell ebooks in some formats. I have defined a characteristic with 3 ebooks formats (pdf, epub and mobipocket).  Well I have personalized &quot;show&#95;block&#95;product&#95;files&quot; view in order to show my download files in my own styles (I inserted some flags in order to check If I edited the proper view). In catalog, when I click in ebook to display product description, I obtain the correct view (see ghost&#95;code&#95;001.jpg). You can see the page code generated in ghost&#95;code&#95;002.jpg with my flags in red, blue, green and pink rectangles.  When I change the ebook variant clicking in its corresponding radio button (ghost&#95;code&#95;003.jpg), then  some &quot;ghost code&quot; appear replacing the original one, but my personalized &quot;show&#95;block&#95;product&#95;files&quot; view is still loaded because 2 of my flags are still there as you can see in ghost&#95;code&#95;004.jpg, but red and pink flags was disapeared.  From where this code is loaded? because if it had loaded another view, all my flags have disappeared not only two of them. I am astonished. What happend?, some one can explained me what is happening?.  Thanks in advance.  P.D. I attached my show&#95;block&#95;product&#95;files view code")*

Hi,

When you're using variants, the product page content can be modified dynamically by some javascript depending the selected variant.
The content is generated in the view "product / show" ; it generates some DIV depending what the variant can override (description, price, files, etc).

Regards,

---

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

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

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

Less More

- Posts: 79
- Thank you received: 3
-
-

11 years 1 week ago [\#219356](#219356) by [pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")  Replied by *[pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")* on topic *[ghost code in show\_block\_product\_files view?](/forum/26-product-category-display/880224-ghost-code-in-show-block-product-files-view#219356 "-- HikaShop version -- : Business: 2.6.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.3  Hello, I can't find logical answer to some product display behaviour.  I have a book store and I sell ebooks in some formats. I have defined a characteristic with 3 ebooks formats (pdf, epub and mobipocket).  Well I have personalized &quot;show&#95;block&#95;product&#95;files&quot; view in order to show my download files in my own styles (I inserted some flags in order to check If I edited the proper view). In catalog, when I click in ebook to display product description, I obtain the correct view (see ghost&#95;code&#95;001.jpg). You can see the page code generated in ghost&#95;code&#95;002.jpg with my flags in red, blue, green and pink rectangles.  When I change the ebook variant clicking in its corresponding radio button (ghost&#95;code&#95;003.jpg), then  some &quot;ghost code&quot; appear replacing the original one, but my personalized &quot;show&#95;block&#95;product&#95;files&quot; view is still loaded because 2 of my flags are still there as you can see in ghost&#95;code&#95;004.jpg, but red and pink flags was disapeared.  From where this code is loaded? because if it had loaded another view, all my flags have disappeared not only two of them. I am astonished. What happend?, some one can explained me what is happening?.  Thanks in advance.  P.D. I attached my show&#95;block&#95;product&#95;files view code")*

Thanks Jerome!.
Only I was looking in *"show\_default"* view and I didn't see *"show"* view.
I applied same changes in *"show"* view and it works.

Any way, why don't you draw block "download files" calling the proper view, like you do with others blocks like image block or price block, for example: Code:

$this-&gt;setLayout('show_block_product_files'); echo $this-&gt;loadTemplate();

I think this will prevent duplicate code and avoid this kind of problem.

Thank you very much.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 1 week ago [\#219362](#219362) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[ghost code in show\_block\_product\_files view?](/forum/26-product-category-display/880224-ghost-code-in-show-block-product-files-view#219362 "-- HikaShop version -- : Business: 2.6.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.3  Hello, I can't find logical answer to some product display behaviour.  I have a book store and I sell ebooks in some formats. I have defined a characteristic with 3 ebooks formats (pdf, epub and mobipocket).  Well I have personalized &quot;show&#95;block&#95;product&#95;files&quot; view in order to show my download files in my own styles (I inserted some flags in order to check If I edited the proper view). In catalog, when I click in ebook to display product description, I obtain the correct view (see ghost&#95;code&#95;001.jpg). You can see the page code generated in ghost&#95;code&#95;002.jpg with my flags in red, blue, green and pink rectangles.  When I change the ebook variant clicking in its corresponding radio button (ghost&#95;code&#95;003.jpg), then  some &quot;ghost code&quot; appear replacing the original one, but my personalized &quot;show&#95;block&#95;product&#95;files&quot; view is still loaded because 2 of my flags are still there as you can see in ghost&#95;code&#95;004.jpg, but red and pink flags was disapeared.  From where this code is loaded? because if it had loaded another view, all my flags have disappeared not only two of them. I am astonished. What happend?, some one can explained me what is happening?.  Thanks in advance.  P.D. I attached my show&#95;block&#95;product&#95;files view code")*

Hi,

Thanks for your feedback.
Yes, the view "show" does not use (yet) views that we added for the "show_default".
We are currently making some important modification in the views for HikaShop 3 ; I hope that the "show" view will refresh during that process.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODAyMjQtZ2hvc3QtY29kZS1pbi1zaG93LWJsb2NrLXByb2R1Y3QtZmlsZXMtdmlldz90bXBsPW1hcmtkb3du) 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.083 seconds

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