X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product Option help tips (https://forum.x-cart.com/showthread.php?t=68012)

Matt W 10-24-2013 11:47 AM

Product Option help tips
 
1 Attachment(s)
I'm adding a help tip icon for each product option. I have the front-side display working for this already, but want to give the shop owner the ability to control the tips via the admin.

I added a new field to the classes table called "helptext". I found the file /modules/Product_Options/product_options.php is where the table is updated, but can't seem to get it working. I am a developer, but I'm not a PHP programmer. I added what I thought should work, and it did somewhat.

On an existing option, when saving the option group form, it saves to the database, but throws an error. If I try to create a new option group, it errors and does not save. The error is "Access Denied", but I'm thinking it is something I did wrong in the product_options.php file.

I'm attaching the file with my edits in case anyone is able to take a quick look and see what I did wrong. This is for a 4.5.5 store. Thanks.


All times are GMT -8. The time now is 01:47 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.