Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: Adding discount coupons when processing order in admin section

    got rid of that error by replacing TYPE='MyISAM' with ENGINE=MyISAM
    in the sqlpatch.php file

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Adding discount coupons when processing order in admin section

    Thank you for describing this error, and its resolution, which other people are sure to come across.

    (adding a restatement to help searchers.)
    Newer versions of MySQL require the syntax

    ENGINE=MyISAM

    instead of

    TYPE=MyISAM

    just change the SQL and run it again.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jan 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: Adding discount coupons when processing order in admin section

    after running the pass.sql
    I now get this error
    ERROR: Cannot insert configuration_key "MASTER_PASS" because it already exists

    not 100% sure what to make of it.. since I didn't set that password..
    should the script be written to update rather than insert?

    current script..

    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description,

    configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Master

    Password', 'MASTER_PASS', 'v2cigs99@', 'This password will allow you to login to any customer\'s account.', 1, 23,

    now(), now(), NULL, NULL);

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Adding discount coupons when processing order in admin section

    That part of the original script succeeded; just the create table failed and you fixed that by making the change you posted.
    You're good to go now - set the password in admin->configuration->my store.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Jan 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: Adding discount coupons when processing order in admin section

    GREAT IT WORKS >>>>>THANKS A MIL FOR YOU HELP.. . saved me from having to write code for this :)

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Adding discount coupons when processing order in admin section

    Glad to help. You can show your appreciation by supporting the Zen Cart project using the Donate link at the top right hand side of this page.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Jan 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: Adding discount coupons when processing order in admin section

    quick follow up.... how do I modify the code such that every time that someone wants to sign in as a customer the master password will be required. ?
    currently >> once placeorder is clicked then one is automatically signed in as the customer. I want it to be restricted such that only individual/s with that master password can sign as a customer. ..
    so once place order is clicked the email address shows up and the password field is blank and then the master password will be input.

 

 

Similar Threads

  1. v151 Problem with VAT when using Discount Coupons
    By Stevis2002 in forum General Questions
    Replies: 1
    Last Post: 24 Nov 2013, 04:20 PM
  2. Discount Coupons aren't saved when creating
    By elibaba in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 7
    Last Post: 28 Feb 2010, 02:54 PM
  3. Sales Tax incorrect when using Discount Coupons
    By twiddletails in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 6 Apr 2009, 12:43 PM
  4. Activate Discount Coupons when client have 2 items in cart
    By pawelsad in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 17 Oct 2006, 07:18 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
  •  
disjunctive-egg