Forums / All Other Contributions/Addons / Help with addon MSRP: Add a new field to the products table

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

Views: 919

Results 1 to 6 of 6
22 Aug 2012, 5:22 AM
#1
johnnycopilot avatar

johnnycopilot

Zen Follower

Join Date:
Mar 2012
Posts:
325
Plugin Contributions:
0

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 :smile:

22 Aug 2012, 5:29 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

22 Aug 2012, 7:27 PM
#3
johnnycopilot avatar

johnnycopilot

Zen Follower

Join Date:
Mar 2012
Posts:
325
Plugin Contributions:
0

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

Thank You.

5 Jan 2014, 9:36 PM
#4
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

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 Jan 2014, 10:01 PM
#5
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

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

5 Jan 2014, 10:28 PM
#6
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

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