In runtime merchant.mvc the variable Store_Module_UI:code tells you if the store is running mmui or cssui. That seems to be working fine. However, in admin.mvc, there is no global variable to tell you what the store is using for the UI. I suppose we could do some database lookup, but I think it would be far better if that was a standard variable. Otherwise we could have dozens of different modules in a store admin having to do the same lookup. The admin screen and even the module install/update functions are dependent on which UI is in use so it is a variable most modules need. Please add it to the admin.
Announcement
Collapse
No announcement yet.
Store_Module_UI:code variable missing in admin
Collapse
X
-
Store_Module_UI:code variable missing in admin
Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
Facebook http://www.facebook.com/EmporiumPlus
Twitter http://twitter.com/emporiumplusTags: None
-
Re: Store_Module_UI:code variable missing in admin
I just realized, there is another problem with this. There is no layout tab or any other easy way for a store owner (or a developer working on a store) to know whether a store is using mmui or cssui. Since the templates are totally different I have to have two versions of example templates. But I can't just tell the owner/developer, "if your store has mmui, use this template and if your store has cssui, you that template." In 4x I was able to tell the owner to go to the layout tab and tell me which is assigned. So not only do we need Store_Module_UI:code to be available in admin, but we have to display somewhere in admin which UI is in use.Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
Facebook http://www.facebook.com/EmporiumPlus
Twitter http://twitter.com/emporiumplus
-
Re: Store_Module_UI:code variable missing in admin
BTW, the behavior that Bill describes is also true for some other global variables. g.Store_Module_Currency, I think, is another one that's an entire structure in merchant.mv, but a simple variable in admin.mv. It does get confusing, and I don't think there's any documentation for these anomalies. I suppose Store_Module_Tax might have the same issue?
Thanks --Kent Multer
Magic Metal Productions
http://TheMagicM.com
* Web developer/designer
* E-commerce and Miva
* Author, The Official Miva Web Scripting Book -- available on-line:
http://www.amazon.com/exec/obidos/IS...icmetalproducA
Comment
-
Re: Store_Module_UI:code variable missing in admin
Originally posted by Rick Wilson View PostIt's under store settings.Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
Facebook http://www.facebook.com/EmporiumPlus
Twitter http://twitter.com/emporiumplus
Comment
-
Re: Store_Module_UI:code variable missing in admin
Thanks.Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
Facebook http://www.facebook.com/EmporiumPlus
Twitter http://twitter.com/emporiumplus
Comment
Comment