Page 10 of 10 FirstFirst ... 8910
Results 91 to 96 of 96
  1. #91
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,519
    Plugin Contributions
    0

    Default Re: How to Add Custom Fields for Materials & Dimensions when adding products?

    Quote Originally Posted by mc12345678 View Post
    Looks like need to add a css formatting command for the class filesHead. I'm not where I can play with the css to identify a fix, but I would think would want to apply some position/location direction similar to the class above (productsDescription?) so that the information will remain responsively placed (likely to need to "target" different browsers/devices in some testing. But looks like getting there with the webpage development part.
    Ok, if you go it figured out let me know. But another question. Where its Text 1: , Text 2: when I enter for an example 4" x 5" x 10" then I enter it this way <b>4" x 5" x 10"</b> to make it bold. Is there a way to keep it bold without enter in this code <b></b> all the time?

  2. #92
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: SOLVED !How to Add Custom Fields for Materials & Dimensions when adding products?

    Quote Originally Posted by DrByte View Post
    To rule out the TPP thing, find this line:
    Code:
    if (!TPP_GLOBAL_EXTRA_FIELDS_ON_TAB) {
    and replace with:
    Code:
    if(true) {
    Oh Dr. Dr. You got it!!!

    Thank you .. And the correct sql with (my) DBFrefix is >> zenwn_

    The only thing isn't working is - It does not show in 'Configuration' , so you can not turn it on/off.. it is 'ON' only.

    ===================
    SELECT @gid:=configuration_group_id
    FROM zenwn_configuration_group
    WHERE configuration_group_title= 'Product Info';


    INSERT INTO zenwn_configuration
    (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function)
    VALUES ('TPP Extra Product Fields Tab', ' TPP_GLOBAL_EXTRA_FIELDS_ON_TAB ', '1', 'Set this to 1 if you want to enable the extra fields on your products', @gid, 1, NOW( ) , NOW( ) , NULL , 'zen_cfg_select_option(array(''0'', ''1''),')
    ====================
    Last edited by oavs; 27 Jul 2016 at 02:32 AM.
    Downunder QLD

  3. #93
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: How to Add Custom Fields for Materials & Dimensions when adding products?

    A new problem.

    When adding a new product, if you enter any TEXT in the new 'Extra Text Field' text box and save, it automatically adds <p> </p> tags in the HTML preview. If you keep updating then re edit the same text, it adds to the same text line this time with ascii code.


    ==1 st time text added in the product:===================
    Please click the link(s) below to download related technical data sheets in Acrobat PDF format.

    ==2nd time product edited and updated:===================
    <p>Please click the link(s) below to download related technical data sheets in Acrobat PDF format.</p>

    ==3rd time product edited and updated:===================
    <p>&lt;p&gt;Please click the link(s) below to download related technical data sheets in Acrobat PDF format.&lt;/p&gt;</p>

    ==4th time product edited and updated:===================
    <p>&lt;p&gt;&amp;lt;p&amp;gt;Please click the link(s) below to download related technical data sheets in Acrobat PDF format.&amp;lt;/p&amp;gt;&lt;/p&gt;</p>
    etc etc.

    it just grows and shows in the public view as well.

    What is the cause of this now?
    Downunder QLD

  4. #94
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How to Add Custom Fields for Materials & Dimensions when adding products?

    Quote Originally Posted by oavs View Post
    A new problem.

    When adding a new product, if you enter any TEXT in the new 'Extra Text Field' text box and save, it automatically adds <p> </p> tags in the HTML preview. If you keep updating then re edit the same text, it adds to the same text line this time with ascii code.


    ==1 st time text added in the product:===================
    Please click the link(s) below to download related technical data sheets in Acrobat PDF format.

    ==2nd time product edited and updated:===================
    <p>Please click the link(s) below to download related technical data sheets in Acrobat PDF format.</p>

    ==3rd time product edited and updated:===================
    <p>&lt;p&gt;Please click the link(s) below to download related technical data sheets in Acrobat PDF format.&lt;/p&gt;</p>

    ==4th time product edited and updated:===================
    <p>&lt;p&gt;&amp;lt;p&amp;gt;Please click the link(s) below to download related technical data sheets in Acrobat PDF format.&amp;lt;/p&amp;gt;&lt;/p&gt;</p>
    etc etc.

    it just grows and shows in the public view as well.

    What is the cause of this now?
    Your "extra text field" box hasn't been registered to be allowed to contain HTML, so the sanitization system is converting the HTML to safe equivalents.
    Ref: http://docs.zen-cart.com/Developer_D...n_sanitization
    .

    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.

  5. #95
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: How to Add Custom Fields for Materials & Dimensions when adding products?

    Even I had no HTML entered?

    Anyway, I will not use the text box for now. I am totally sanitised. Thanks for the reason why.
    Downunder QLD

  6. #96
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: SOLVED !How to Add Custom Fields for Materials & Dimensions when adding products?

    Quote Originally Posted by oavs View Post
    The only thing isn't working is - It does not show in 'Configuration' , so you can not turn it on/off.. it is 'ON' only.
    I found it. It was hiding in 'Configurations> Product Info'
    So all good now.

    Since I only needed PDF uploads, I now commented many of the other fields like 'Text1, Text 2 , Video, Flash etc including the extra text box. It is much cleaner and works.

    Only thing isn't working is the TPP Extra Product Fields Tab. I can turn it ON/OFF without any visible effects. I have installed the sql but still can't see in Configurations where I can control content and TAB names nor I can see in public.
    Downunder QLD

 

 
Page 10 of 10 FirstFirst ... 8910

Similar Threads

  1. Add extra info fields when adding products
    By SethF in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 8 Feb 2012, 06:38 PM
  2. adding custom fields for products
    By jagall in forum Setting Up Categories, Products, Attributes
    Replies: 19
    Last Post: 24 Apr 2011, 09:52 PM
  3. Add extra shipping charge for Hazardous Materials
    By timhersh in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 7 Dec 2008, 06:20 AM
  4. Custom fields for URL & Title
    By BilletMyRide in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 Nov 2007, 01:06 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