Page 4 of 16 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 159
  1. #31
    Join Date
    Oct 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: How To Add New Product Fields?

    Sorry I have not been back to post for a while (super busy) and thanks for all the comments. I hope some of the older replies have been resolved, if not let me know and I will see what I can do.

    With regard to deleting records in the TABLE_PRODUCTS_EXTRA_STUFF table, I can't believe I forgot to include this functionality in the first place.

    I have not tested the following code so if someone cares to try this out and let me know if it works that would be great.

    1. Open admin/includes/functions/general.php and search for 'function zen_remove_product' (line 1203 for me)

    2. At the end of that function and just after the following code:

      $db->Execute("delete from " .
      TABLE_PRODUCTS_DISCOUNT_QUANTITY . "
      where products_id = '" . (int)$product_id . "'");

      (line 1276 for me)

      Add the following on a new line:

      $db->Execute("delete from " .
      TABLE_PRODUCTS_EXTRA_STUFF . "
      where products_id = '" . (int)$product_id . "'");


      Make sure you add this before the closing '}' of the function (line 1279 for me before the edit).


    I hope this also helps you out.

  2. #32
    Join Date
    Jul 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: How To Add New Product Fields?

    Hi there -

    Has anyone come across this issue - or know what page I should look into for problems? The product display pages work fine, and I can manually enter values in the products_color database - but after these changes my "Update Products" from the Zen cart Admin is totally broke. I can enter in data for new and exsisting products - but when I hit update it goes to a blank screen with the Zen cart nav bars up top. I am thinking its the update_products.php file - but I have reverted it, copied over the snippet and it still doesn't work. Any ideas on what to look for?

    Liz

  3. #33
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: How To Add New Product Fields?

    Hi

    The issue is not with the code that appears in this thread because it is working.

    I assume that the problem is with the SQL script that updates the database.

    The fact that you are getting a blank page is because there is an error.

    You can configure php.ini differently so that you see the errors.

    I would suggest that you check your definitions in admin/includes/modules/update_product.php
    (article 6 in the explanation of the procedure).

    Good Luck,
    Ruth

  4. #34
    Join Date
    Jul 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: How To Add New Product Fields?

    I am not sure what was causing this at all - but I tried copying over the code once more and it worked. There must have been a return, or an extra space somewhere in what I was doing. I am very glad to have these instructions though - thank you!

  5. #35
    Join Date
    Oct 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: How To Add New Product Fields?

    Has anybody tried out my delete code above?

  6. #36
    Join Date
    Jul 2009
    Posts
    14
    Plugin Contributions
    1

    Default Re: How To Add New Product Fields?

    Not yet, but I intend to very soon.

  7. #37
    Join Date
    Jul 2009
    Location
    Maryland
    Posts
    65
    Plugin Contributions
    0

    Default Re: How To Add New Product Fields?

    Quote Originally Posted by delia View Post
    well, I don't know what's happening with our zen leaders so I've uploaded my mod to my website so that everyone can grab it now. Please, if anyone runs into problems, let me know!

    The first extra field is now a textarea that can be used for embedding a YouTube video by the way.

    Grab the zip file here

    Enjoy!
    Delia,

    the link is broken, wanted to download your mod.

    thanks,

    JE

  8. #38
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    red flag Re: How To Add New Product Fields?

    I am looking to add additional product data fields as well but also have Easy Populate CSV installed as well. Will this additional code process break Easy Populate CSV?

    Thank you.
    Thank you,
    autoace

  9. #39
    Join Date
    Oct 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: How To Add New Product Fields?

    Sorry autoace, I don't use easypopulate so can't comment. If you do try the mods out though, please report back on your success or failure for the benefit of others using easypopulate.

    Thanks

    G

  10. #40
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: How To Add New Product Fields?

    it won't break it, it simply ignores any fields that are not defined in the easypopulate.php file located under admin/includes.
    to define these additional/custom fields, you could simply do a search for a similar type field in the aforementioned file, and then add the extra code (where relevant) after you've added your database fields of course. you need to ue a bit of common sense, but it worked for me making all the changes required (to easypopulate) in under 10min.

    andrejs

 

 
Page 4 of 16 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. How to add new fields?
    By chandroo007 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 1 Jun 2010, 03:13 PM
  2. How To Add New Fields to Invoice?
    By PudzPud in forum Basic Configuration
    Replies: 7
    Last Post: 15 Nov 2009, 03:50 PM
  3. Replies: 1
    Last Post: 10 Dec 2007, 02:40 PM
  4. How to add labels to new fields
    By kappaluppa in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Feb 2007, 07:16 PM
  5. How i can add new data fields to a Product
    By shreesoft in forum Customization from the Admin
    Replies: 4
    Last Post: 2 Oct 2006, 03:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR