| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
#1
|
|||||||
|
|||||||
![]() I have an x-cart client that has created a flash .swf file which requires a .xml file to load images.
This flash is working on a htm version of the page located in the same place as the .swf and .xml file. However, when I try to load the .swf in my welcome.tpl file, it doesn't work. The odd thing is, I already have a flash file in the welcome.tpl page that is working fine. That file is in the same directory as the new one and loads. When I change the name of the old flash to the new flash, nothing loads. We had this problem the last time when we originally put up the flash file that is there now. We ended up having to recreate the flash file using no .xml file. I was also given the suggestion of recreating the flash using javascript, but I would rather make this work if possible. Does Smarty not understand xml? (I'm kind of new a this, so sorry if it's a dumb question).
__________________
xcart v. 4.18-4.4 |
|||||||
#2
|
|||||||
|
|||||||
![]() I suppose that the reason in the paths which you defined to the .xml data and .swf flash file.
Please, note that the path should start from X-Cart root directory. Try to put the .swf and .xml files to the xcart root web directory and check it. Also if you provide me with the URL of the example I can inspect this issue more detailed to find the original reason.
__________________
Sincerely yours, Max Vydrin |
|||||||
#3
|
|||||||
|
|||||||
![]() Thank you for answering my question. You were right. I had just tried so many variations without finding the right one that I had given up on the easy answer.
What I needed to do was the following, in case I or anyone else ever needs help with this: In the XML file, define the path to the images absolutely: /flash/images/image1 /flash/images/image2 and so on In the welcome.tpl file I linked to the flash file also absolutely: /flash/flash_mov.swf I then copied the xml file into the /customer/ folder. I think that final step is what I was missing. I was trying to make it all work in the /customer/main folder because that's where welcome.tpl is. But maybe since welcome.tpl is called by home_main.tpl (which is in the customer folder) that is where the file is seeking the xml. I really appreciated the help!
__________________
xcart v. 4.18-4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|