Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Help with addon MSRP: Add a new field to the products table

    I want to install MSRP Display. The install seems simple except I don't know how to make the following change...


    1. Add a new field to the products table to hold the MSRP value.

    ALTER TABLE products ADD `products_msrp` DECIMAL( 15, 4 ) NOT NULL AFTER `products_price` ;


    Do I put that text in the "install SQL Patches" Box in the admin section, and hit send? Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Help with addon MSRP: Add a new field to the products table

    Yes .
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: Help with addon MSRP: Add a new field to the products table

    Thank You.

  4. #4
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Re: Help with addon MSRP: Add a new field to the products table

    Hello:

    I am having difficulty installing the MSRP Display. I thought I did everything right, including installing:

    ALTER TABLE products ADD `products_msrp` DECIMAL( 15, 4 ) NOT NULL AFTER `products_price` ;

    via SQL Patches. It said some kind of error at the point after I clicked send??? I have no idea what that meant. In the instructions it says:

    Add a new field to the "products table" to hold the MSRP value. If I knew where the products table was, I would just install it there???

    Any suggestions please?

    Thank you,

    Silver

  5. #5
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Re: Help with addon MSRP: Add a new field to the products table

    Hi again:

    I thought I would give an update on the error I am getting when I go to SQL patches. I just tried to send the file again and this is what I got:

    "Error: Nothing to do - no query or query-file specified." (without quotation marks)

    Any idea of what I am doing wrong?

    Thank you,

    Silver

  6. #6
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Re: Help with addon MSRP: Add a new field to the products table

    Hello again:

    This is another update. I went to: <your_admin/includes/modules/update_product.php> and placed the code:

    <ALTER TABLE products ADD `products_msrp` DECIMAL( 15, 4 ) NOT NULL AFTER `products_price` ; > there.

    Here is what happened. I couldn't find the module in the Configuration or in the Modules area in admin, so I went to a product in the catalog and the MSRP was there. I placed a figure in there and clicked on preview. When I clicked "Update" this is what I got:

    The website cannot display the page
    HTTP 500
    Most likely causes:
    The website is under maintenance.
    The website has a programming error.
    What you can try:

    Refresh the page. etc.

    I obviously did something wrong. I am not going to touch this without help for fear that I'll really screw things up, if I haven't already. The site is : http://www.petluxuryboutique.com

    Thanks in advance,

    Silver

 

 

Similar Threads

  1. should I add new table to store new field?
    By linjuming in forum General Questions
    Replies: 4
    Last Post: 21 Feb 2013, 06:35 PM
  2. Easy Populate new msrp field not showing in Model/Attributes file...
    By CRYSTALDOLL in forum Addon Shipping Modules
    Replies: 1
    Last Post: 24 Jul 2009, 12:04 PM
  3. Add new field to product table?
    By ckad79 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 May 2009, 11:24 PM
  4. Replies: 0
    Last Post: 22 Dec 2007, 11:39 AM

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