Thread: Control Switch

Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2012
    Plugin Contributions

    Default Control Switch

    Regarding close thread here

    How we can create a control switch on edit product to apply the code to certain product. Like check box when checked it apply the code otherwise not.

  2. #2
    Join Date
    Jul 2012
    Plugin Contributions

    Default Re: Control Switch

    So a sort of throw together of things, a while back I proposed for one individual's use a marker/toggle that could/would appear on the catalog list having at least two states (on/off). That information is kept in a separate database table which means that it has less interference with standard ZC code. Anyways, I thought it included a feature to be able to look up the data stored in such a way that it's function could be used to support your issue.

    Alternatively and what seems like standard methods of most plugins is to add a field to the products table that would hold your "on/off" state and then you could look up the on/off state using the same zen_products_lookup function as described in that thread.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  3. #3
    Join Date
    Jul 2012
    Plugin Contributions

    Default Re: Control Switch

    Can you share any module that create such on/off or checkbox control field so I Can review files to create this one?

    So far I have create checkbox on edit product page and added code on tpl product info display but its not working.



Similar Threads

  1. Twitch Wholesale | Retail Product Control Switch
    By twitchtoo in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 24 Jun 2017, 08:34 PM
  2. To switch or not to Switch
    By samhill in forum General Questions
    Replies: 3
    Last Post: 22 Dec 2008, 12:33 AM
  3. UK Switch
    By DanAllkins in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 28 Oct 2007, 05:31 PM
  4. Switch to Zen?
    By django75 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Nov 2006, 07:25 PM


Posting Permissions

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