Quantcast
Channel: E-com DevBlog » Freemotion
Viewing all articles
Browse latest Browse all 3

Adding/changing Commercial Sales Reps in Freemotion (Oh goody)

$
0
0

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.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images