Jump to content

[Resolved] New field in products in admin.


violinman

Recommended Posts

Hello, I have added a new text field to products general in the admin products.index.php. It appears ok and accepts input but it does not save the contents when I click save, could that be related to the data base not being aware of the new variable? If so how would I remedy the problem please.

Thank you,

Brian

 

Link to comment
Share on other sites

14 minutes ago, violinman said:

could that be related to the data base not being aware of the new variable? If so how would I remedy the problem please.

Hi Brian

That would be exactly it - if the database isnt aware of the new field where is the data supposed to be saved ? You can add new fields via phpMyAdmin

Ian

Link to comment
Share on other sites

It is possible to run MySQL commands within CubeCart via the Query Database option under maintenance but if you are not an expert at MySQL then I would always suggest using phpMyAdmin which is easier and should be available from within your hosting control panel (cPanel and Plesk both have options)

Ian

Link to comment
Share on other sites

Thank you Ian, I have just checked, I have PhpMyAdmin available on the server, I have never used it before so I might buy myself a book on the subject before I start adding bits as I don't want to corrupt it, I have always regarded MySQL as a bit of a black art but I suppose it is no more difficult than PHP which I cope with ok once I find the relevant file!

Thank you for your help and advice.

Brian

 

 

Link to comment
Share on other sites

You are welcome and if you cope with php then you will get at least the basics (and probably much more) of MySQL easily - good online documentation is available

You should really look at creating plugins rather than changing core code as well.  At the moment it is only the odd field but it is a very slippery slope and soon you will end up with a store that is much more complex to upgrade

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...