View Single Post
  #1  
Old 10-24-2013, 11:47 AM
 
Matt W Matt W is offline
 

Newbie
  
Join Date: Jul 2011
Posts: 9
 

Question Product Option help tips

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.
Attached Files
File Type: php product_options - HELP TEXT.php (40.8 KB, 73 views)
__________________
x-cart 4.5.5
Reply With Quote