swguy:
I don't know if you have seen the additional responses I placed or not. It's not working. The only thing that I did not do was the files that are in the Included files in the directions where it starts "All of the rest of the files are core." I will include a list of the installation instructions to see if you can help.
Zen Cart Mod: MSRP Display
Released under the GPL license found in the root directory of this package.
Author: hbtrading
Upgraded for: Zen Cart v 1.3.9x by Delia Wilson Lunsford, https://www.deliawilsondesign.com, https://www.zencartdelia.com
Upgraded for Zen Cart 1.5 by Ray
This modification allows you to show that your store price is lower than the manufacturer's suggested retail price. If your price is the same as or higher than the MSRP, then the MSRP will not be displayed. The customer's savings will also be displayed if it applies. Savings is based on the MSRP if it applies or on the selling price if a sale price is in effect.
Included files:
New
includes/languages/english/extra_defintions/your_custom_template/msrp.php
your_admin/includes/languages/english/extra_defintions/msrp.php
All of the rest of the files are core files with no override folders.
includes/functions/functions_price.php
your_admin/includes/modules/update_product.php
your_admin/includes/modules/copy_to_confirm.php
your_admin/includes/modules/product/collect_info.php
Installation instructions
If you choose to install the MSRP mod using the enclosed files, you only need to make the following 2 changes. Upload the files to their respective folders - note that you must change the admin name to your name and your_custom_template to your template folder.
- 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 ;
- In includes/templates/your_template/css/stylesheet.css, or includes/templates/classic/css/stylesheet.css
Add:
.smalltext1 {
text-align: center;
color:#000000;
font-weight:bold;
}
.save {
text-align: center;
color:#636466;
font-weight:bold;
}
.norm {
text-align: center;
color:#981B1E;
font-weight:bold;
}
Uninstall Instructions
If you decided you want to remove this mod, it's a case of reversing the actions above.
-
remove the added field to the products table that holds the MSRP value by either using your MYSQL Admin via your hosts c/p or run
ALTER TABLE products DROP products_msrp
-
Delete
includes/languages/english/extra_defintions/your_custom_template/msrp.php
your_admin/includes/languages/english/extra_defintions/msrp.php
-
Replace the folowing with the originals
includes/functions/functions_price.php
your_admin/includes/modules/update_product.php
your_admin/includes/modules/copy_to_confirm.php
your_admin/includes/modules/product/collect_info.php
-
Remove the CSS styling from your includes/templates/your_template/css/stylesheet.css file.
Change log:
Sept 9, 2011: moved languages changes to extra_definitions and new files, added copy product function, upgraded to 1.3.9h
June 11 2012: upgraded to match zen cart's 1.5 file set and added uninstall instructions.
Thanks again. I'm pulling my hair out, what little I have!
Silver