Adding/changing Commercial Sales Reps in Freemotion (Oh goody)
For those who are interested, here is how the Domestic Commercial sales Reps are rendered in Freemotion.
It all starts with ContactDisplay.jsp which includes CustomerRepStateList.jspf but don't get excited, this file uses javascript from AJAX_Util.js (getRepInfo()) to conveniently make a call to another view, namely CustomerRepAJAXView which is made up of the file CustomerRepDisplay.jsp which does nothing other than call CustomerRep.jspf. HOWEVER, even knowing all of that you can't make any changes unless you have DB access, because apparently this is where all the sales Rep info is stored...which is really the only thing that makes any kind of sense in this whole scenario.
Now if you couldn't follow that here is the short version:
ContactDisplay.jsp -> CustomerRepStateList.jspf ->getRepInfo() from AJAX_Util.js -> CustomerRepAJAXView(CustomerRepDisplay.jsp) -> CustomerRep.jspf -> (DB which holds all info).
as a bonus all of these files, with the exception of the AJAX_Util.js are kept in two folders and here is the route by folders
NOTE:folder names have been altered.
ShopProfileSection/ -> bitsNpieces/profits/ -> javascripts/ -> ShopProfileSection/ -> bitsNpieces/profits/
gay huh?
For the life of me I can't figure out why all the running back-n-forth but I'm sure there is an explanation...I doubt it's a valid one, but an explanation nonetheless.
To quickly get this done if you don't have access to the DB send the task to Jason or Drew.
Print This Post
Add dealers to freemotion
If you ever need to add dealers to freemotion you'll need to look at a file called dealers.js..."don't worry when the time comes, you'll know"
you shouldn't, but you may also need a file called dealerLocatorDisplay.jsp but only if you are adding a new province. Even though dealers.js doesn't show that all states are added, they are already in dealerLocatorDisplay.jsp (provinces are not all there) so you shouldn't have to touch dealerLocatorDisplay.jsp unless you are adding a province.
Print This Post
sIFR 2.0.5 upgrading
Freemotion uses a cool little web-addon called sIFR. sIFR is a text replacement utility that will take normal text, and transform it into flash. This way you can style the site and have it look like you coded it without banking on the end user having your same fonts. Good idea in theory, not so useful if you just updated your flash player to version 9, 115 release. Now if you started running sIFR on version 2.0.5, you should be fine, if not well you're in for a slight headache.
The best method to get your site fixed is as follows.
1 - Get your original font, or head to somewhere like daFont and download a suitable replacement font.
2 - Contact your friend flash-master (Erik in our case) and give him your font files.
3 - Do this (straight from their documentation) ; "To export your new typeface, open the sifr.fla file (which is included in sIFR-2.0.5.zip) in Flash Professional, and double-click the invisible textbox in the middle of the stage. If the "Properties" palette is not already visible, open it by selecting "Window > Properties", and select which font you'd like to use from the drop down menu. If you select a TrueType font, you can also create bold and italic styles for your font by clicking on the "I" or "B" buttons."
4 - Take the new files that Erik gives you (should be something like FONTNAME.swf) and place them in your project folder with the new .js files. In theory, you should now be up and working!
This problem only exists for the 2.x sIFR, however since 3 is beta, you may be better off just patching your existing copy. sIFR 3 does look promising, but they seemed to have changed the structure of the product quite a bit. This whole mess points back at adobe who is changing things up in their actionscript handling. This may be security related, or it may be that they are gearing up for Flex 4.
Print This Post