Page 25 of 28 FirstFirst ... 152324252627 ... LastLast
Results 241 to 250 of 272
  1. #241
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: How-To: Add new Properties to your Products

    Quote Originally Posted by dharrison View Post
    Dr, I followed the step by step guide religiously and updated all the pages mentioned. The setup works when its written as an input field, but when I try to set this up as a text area, it disregards the data and nothing is listed.
    Does it actually store the data fine, but just doesn't re-display it on the Edit screen again?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #242
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: How-To: Add new Properties to your Products

    The syntax for zen_draw_textarea_field() is different than for zen_draw_input_field()

    zen_draw_input_field($fieldname, $defaultValue)

    vs

    zen_draw_textarea_field($fieldname, 'soft', '100%', '5', $defaultValue)

    where 'soft' should be left as 'soft'
    '100%' is the width setting
    '5' is the number of rows the field should display

    So, you can't just change "input" to "textarea" unless you also change the parameters list.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #243
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: How-To: Add new Properties to your Products

    Hi Doctor

    I made the following change:

    Code:
    <?php echo zen_draw_textarea_field('products_tinfo[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', $pInfo->products_tinfo, zen_set_field_length(TABLE_PRODUCTS, 'products_tinfo')); ?>
    and adjusted the products_tinfo to the products table as 'text' and 'null' which for input was 'varchar (32)'

    Apologies for the confusion. I did post all this info on a new thread which quite rightly, got removed (I was unsure if anyone would respond to a thread that was several years old).
    Debbie Harrison
    DVH Design | Web Design blog

  4. #244
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: How-To: Add new Properties to your Products

    Quote Originally Posted by DrByte View Post
    Does it actually store the data fine, but just doesn't re-display it on the Edit screen again?

    It doesn't re-display on the edit screen, the website or the MySQL record. It just completely disregards it.
    Debbie Harrison
    DVH Design | Web Design blog

  5. #245
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: How-To: Add new Properties to your Products

    Quote Originally Posted by dharrison View Post
    Code:
    <?php echo zen_draw_textarea_field('products_tinfo[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', $pInfo->products_tinfo, zen_set_field_length(TABLE_PRODUCTS, 'products_tinfo')); ?>
    Are you intending to treat this field as language-specific?
    If not, then remove the [ and ] and the stuff in between.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #246
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: How-To: Add new Properties to your Products

    It works!!! That was the issue.

    Thankyou so much.
    Debbie Harrison
    DVH Design | Web Design blog

  7. #247
    Join Date
    Aug 2013
    Location
    Bridlington
    Posts
    151
    Plugin Contributions
    0

    Default Re: How-To: Add new Properties to your Products

    I know this is over 2 years old but here is my situation.

    I'm running the latest Zen Cart and using the Responsive Sheffield Blue template.

    I have successfully imported 10,000 products into my database of my new site and have it laid out well thanks to this community. I have used EP4 to import the data and have set my options in EP4 to include a user defined product field and I have imported the data I want to that field, that it working fine.

    What I would like is to include this data (if possible) in the details tab like this ...

    Name:  attachment.jpg
Views: 94
Size:  94.4 KB

    Obviously not in red LOL. After the : I would like it to get the data from the new field in the products table, the extra field is ink_ml and as said before already has the data relevant to the product.

    I have followed this thread that was done back in 2015 by crazy_chris but ended up with an error on the product page so I`m not sure if anything has changed since that was written. Has anyone done a step by step guide to achieve this ??

    Many thanks in advance to any help ;)

  8. #248
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: How-To: Add new Properties to your Products

    Quote Originally Posted by MCS_Computers View Post
    I know this is over 2 years old but here is my situation.

    I'm running the latest Zen Cart and using the Responsive Sheffield Blue template.

    I have successfully imported 10,000 products into my database of my new site and have it laid out well thanks to this community. I have used EP4 to import the data and have set my options in EP4 to include a user defined product field and I have imported the data I want to that field, that it working fine.

    What I would like is to include this data (if possible) in the details tab like this ...

    Name:  attachment.jpg
Views: 94
Size:  94.4 KB

    Obviously not in red LOL. After the : I would like it to get the data from the new field in the products table, the extra field is ink_ml and as said before already has the data relevant to the product.

    I have followed this thread that was done back in 2015 by crazy_chris but ended up with an error on the product page so I`m not sure if anything has changed since that was written. Has anyone done a step by step guide to achieve this ??

    Many thanks in advance to any help ;)
    What is the error?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #249
    Join Date
    Aug 2013
    Location
    Bridlington
    Posts
    151
    Plugin Contributions
    0

    Default Re: How-To: Add new Properties to your Products

    When the product was clicked all I got was a white screen with the word error at the top.

    I went and checked I had put the code on correctly and made sure there was no spaces after the code, everything seemed to be in order, my first reaction was that maybe one of the files had been taken over by the theme.

  10. #250
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: How-To: Add new Properties to your Products

    Quote Originally Posted by MCS_Computers View Post
    When the product was clicked all I got was a white screen with the word error at the top.

    I went and checked I had put the code on correctly and made sure there was no spaces after the code, everything seemed to be in order, my first reaction was that maybe one of the files had been taken over by the theme.
    Thought this had been provided previously in another thread related to a different issue, but follow the below instructions when presented with a blank screen or partial blank screen. Even if the issue is a little different than that, you can expect to find assistance in following it: http://www.zen-cart.com/content.php?124-blank-page
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 25 of 28 FirstFirst ... 152324252627 ... LastLast

Similar Threads

  1. change how latest products works or add new box that displays products we select
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Oct 2010, 04:19 PM
  2. shopping cart contents and new properties to the products
    By stitchnkitty in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Nov 2009, 05:50 PM
  3. Replies: 4
    Last Post: 20 Jun 2009, 04:06 PM
  4. !! Please help !! Add new Properties to your Products
    By JohnSquier in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 27 Feb 2008, 05:46 AM
  5. alter and add new product properties
    By jmitton in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 20 Jan 2008, 03:24 PM

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