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

#   Flash SWF file for product image

##

- **[BRupholdt](/forum/user/2684-brupholdt "View BRupholdt's Profile")**
- [![BRupholdt's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2684.jpg)](/forum/user/2684-brupholdt "View BRupholdt's Profile") Topic Author
- [ Offline](/forum/user/2684-brupholdt)

Less More

- Posts: 29
- Thank you received: 2
-
-

15 years 4 months ago [\#20666](#20666) by [BRupholdt](/forum/user/2684-brupholdt "View BRupholdt's Profile")  *[Flash SWF file for product image](/forum/4-how-to/20666-flash-swf-file-for-product-image#20666 "Learning HikaShop and loving it!  Client wants to use a SWF file for the initial image on the product page but have a regular image for the product default. Is there a way to add a swf file to the image gallery?  If so, then can I have any swf file be positioned ahead of all other images? That way the default image on a product will be a regular graphic but if the product has a swf file uploaded, it becomes the initial item viewed in the gallery.  I'm trying to avoid having the swf file AND a separate gallery. Visually that gets cluttered (as if the spinning product isn't distracting enough.)")* was created by *[BRupholdt](/forum/user/2684-brupholdt "View BRupholdt's Profile")*

Learning HikaShop and loving it!

Client wants to use a SWF file for the initial image on the product page but have a regular image for the product default. Is there a way to add a swf file to the image gallery?

If so, then can I have any swf file be positioned ahead of all other images? That way the default image on a product will be a regular graphic but if the product has a swf file uploaded, it becomes the initial item viewed in the gallery.

I'm trying to avoid having the swf file AND a separate gallery. Visually that gets cluttered (as if the spinning product isn't distracting enough.)

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#20668](#20668) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Flash SWF file for product image](/forum/4-how-to/20666-flash-swf-file-for-product-image#20668 "Learning HikaShop and loving it!  Client wants to use a SWF file for the initial image on the product page but have a regular image for the product default. Is there a way to add a swf file to the image gallery?  If so, then can I have any swf file be positioned ahead of all other images? That way the default image on a product will be a regular graphic but if the product has a swf file uploaded, it becomes the initial item viewed in the gallery.  I'm trying to avoid having the swf file AND a separate gallery. Visually that gets cluttered (as if the spinning product isn't distracting enough.)")*

The image gallery can only contain images because the browsers and the PHP GD library do not handle SWF resizing.
You could try to add the extension swf to the list of valid image extensions and deactivate the thumbnails in the tab Files of the configuration. That might do the trick but you will loose the thumbnails of the products listing and the display on the product pag might not be what you want...

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

- **[BRupholdt](/forum/user/2684-brupholdt "View BRupholdt's Profile")**
- [![BRupholdt's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2684.jpg)](/forum/user/2684-brupholdt "View BRupholdt's Profile") Topic Author
- [ Offline](/forum/user/2684-brupholdt)

Less More

- Posts: 29
- Thank you received: 2
-
-

15 years 4 months ago [\#20674](#20674) by [BRupholdt](/forum/user/2684-brupholdt "View BRupholdt's Profile")  Replied by *[BRupholdt](/forum/user/2684-brupholdt "View BRupholdt's Profile")* on topic *[Re: Flash SWF file for product image](/forum/4-how-to/20666-flash-swf-file-for-product-image#20674 "Learning HikaShop and loving it!  Client wants to use a SWF file for the initial image on the product page but have a regular image for the product default. Is there a way to add a swf file to the image gallery?  If so, then can I have any swf file be positioned ahead of all other images? That way the default image on a product will be a regular graphic but if the product has a swf file uploaded, it becomes the initial item viewed in the gallery.  I'm trying to avoid having the swf file AND a separate gallery. Visually that gets cluttered (as if the spinning product isn't distracting enough.)")*

That's what I figured. I tried that and it's not going to work for me.

I was considering uploading the swf to the file attachments section. Is it possible to parse out the swf files before displaying the downloads section? Then I could display the swf in the product template and still have other files available for download.

I am NOT someone who can code this so I'm hoping someone might be able to help out. If there's an easier way that perhaps I can accomplish, I'd love some ideas.

Thanks

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#20690](#20690) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Flash SWF file for product image](/forum/4-how-to/20666-flash-swf-file-for-product-image#20690 "Learning HikaShop and loving it!  Client wants to use a SWF file for the initial image on the product page but have a regular image for the product default. Is there a way to add a swf file to the image gallery?  If so, then can I have any swf file be positioned ahead of all other images? That way the default image on a product will be a regular graphic but if the product has a swf file uploaded, it becomes the initial item viewed in the gallery.  I'm trying to avoid having the swf file AND a separate gallery. Visually that gets cluttered (as if the spinning product isn't distracting enough.)")*

It's possible but you will indeed have to add code in the view file in order to handle it so it's not easy to do and definitely requires programming skills.

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

- **[BRupholdt](/forum/user/2684-brupholdt "View BRupholdt's Profile")**
- [![BRupholdt's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2684.jpg)](/forum/user/2684-brupholdt "View BRupholdt's Profile") Topic Author
- [ Offline](/forum/user/2684-brupholdt)

Less More

- Posts: 29
- Thank you received: 2
-
-

15 years 4 months ago [\#20733](#20733) by [BRupholdt](/forum/user/2684-brupholdt "View BRupholdt's Profile")  Replied by *[BRupholdt](/forum/user/2684-brupholdt "View BRupholdt's Profile")* on topic *[Re: Flash SWF file for product image](/forum/4-how-to/20666-flash-swf-file-for-product-image#20733 "Learning HikaShop and loving it!  Client wants to use a SWF file for the initial image on the product page but have a regular image for the product default. Is there a way to add a swf file to the image gallery?  If so, then can I have any swf file be positioned ahead of all other images? That way the default image on a product will be a regular graphic but if the product has a swf file uploaded, it becomes the initial item viewed in the gallery.  I'm trying to avoid having the swf file AND a separate gallery. Visually that gets cluttered (as if the spinning product isn't distracting enough.)")*

I can probably manage to modify existing code to do this. The problem for me is I'm new to the MVC structure and don't have a grasp on just what part to modify or where to put it when I do. There also seems to be some inconsistency to how it is done by different companies.

In once instance I was able to duplicate and entire page as a template override and just make minor changes. But for another extension, doing the same process broke it since for them I could only override the function, not the whole page. Then different places use different paths to where to place the files. There may be some logic to it, but as yet, I've not grasped it.

If I want to make an override to parse out swf files, what file do I need to duplicate and to where. (mytemplate/html/???)

I'm willing to try.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#20750](#20750) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Flash SWF file for product image](/forum/4-how-to/20666-flash-swf-file-for-product-image#20750 "Learning HikaShop and loving it!  Client wants to use a SWF file for the initial image on the product page but have a regular image for the product default. Is there a way to add a swf file to the image gallery?  If so, then can I have any swf file be positioned ahead of all other images? That way the default image on a product will be a regular graphic but if the product has a swf file uploaded, it becomes the initial item viewed in the gallery.  I'm trying to avoid having the swf file AND a separate gallery. Visually that gets cluttered (as if the spinning product isn't distracting enough.)")*

With HikaShop, you can override any view via the menu Display-&gt;Views. Your modifications will be saved automatically in your template folder.
In your case, you would have to override the file "show" of the view "product".

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

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