Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Requiring "Other" Mods for new Plugin

    While there may be some known caveats about whether to run a section of the installation or not, it is also important that the sql be written to recognize that the field(s) may already exist. This cuts down on questions about the operation failing and how to figure out why.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    527
    Plugin Contributions
    0

    Default Re: Requiring "Other" Mods for new Plugin

    Quote Originally Posted by mc12345678 View Post
    While there may be some known caveats about whether to run a section of the installation or not, it is also important that the sql be written to recognize that the field(s) may already exist. This cuts down on questions about the operation failing and how to figure out why.
    for field names the exact same name, that would be an easy thing to do for the sql side. For some plugins, we can even check or a list of popular used ones like Numinix's.

    But I am wondering about the forms that go into the Admin product pages for the input forms. I guess comment out the code and have the user uncomment what is needed IF they have certain plugins already installed?

  3. #13
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Requiring "Other" Mods for new Plugin

    Quote Originally Posted by g2ktcf View Post
    for field names the exact same name, that would be an easy thing to do for the sql side. For some plugins, we can even check or a list of popular used ones like Numinix's.

    But I am wondering about the forms that go into the Admin product pages for the input forms. I guess comment out the code and have the user uncomment what is needed IF they have certain plugins already installed?
    The historical tenet of Zen Cart is to provide more allowing the user to edit/remove what is *not* needed or wanted. This is instead of providing some sort of "hidden" content to then uncomment. I saw above that seemed to be asking about how to address the form part, unfortunately because we almost all of the form data is captured by hard coding instead of some sort of array of information, the addsit I nal fields likely should be included with some sort of documentation about how to prevent that/those fields from being duplicated.

    A long long time ago, data was put together using a sort of table class which could then be searched through to identify the existence of a type of data or in this case a specific field. To get away from the pure "table" structure, where table tags were used, all natural div tags have been used. In the admin this means a lot of code has to be touched to adapt to a new "template" instead of some few key logic or construct changes.

    Also it's been a while since I've looked at or caused duplicate fields in a form, but I expect one of them to take priority over the other in some way. I'd have to do more research again to advise further on how to handle that possibility of two "plugins" offering the same field(s) in a single form.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. New "Pay with Amazon" plugin - calling beta testers
    By cvt123 in forum Addon Payment Modules
    Replies: 4
    Last Post: 25 Aug 2016, 03:02 PM
  2. v154 A "space" appears in Customer record when inserting the State/County in "other" box
    By SarahL in forum Managing Customers and Orders
    Replies: 2
    Last Post: 30 Oct 2015, 09:45 AM
  3. Can someone make "Customer Tax Exempt" and "Local Sales Tax" mods work together?
    By Squanto in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 7
    Last Post: 10 Sep 2010, 12:58 AM
  4. Replies: 1
    Last Post: 31 Jul 2009, 01:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR