Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Posts
    61
    Plugin Contributions
    0

    Default How to modify my template to not show display-only attributes?

    I'm trying to get the Google Merchant Center Product Feed to work on my store. One of the tips the readme file says is:

    "This module supports adding required fields as attributes to your products (you can set them to display only and then modify your template to not show display only attributes). Supported attributes are: Size, Color, Age Group, Gender, Material, Pattern, UPC, ISBN, EAN, and Google Product Category. Please use these exact names when creating your Option Names in Zen Cart."

    My first question is on adding the attributes. In the Option Name Manger, I am just going to add all those attributes globally to all of my products and mark them as readonly attributes (Let me know if this is incorrect too). I don't know how to modify the template to not show display only attributes.

    I also have the Stock By Attributes mod loaded, so I don't know if I should do what it says above. Because the readme also says:

    "Alternatively, if you have Stock by Attributes (SBA) installed and you need for a single product to support multiple options (i.e. Small, Medium, Large, XL, XXL), create stock combinations in SBA and GMCF will automatically create variants for each stock combination"

    I'm guessing I would modify the attributes.php file, but what code would I use? Has anyone done this already and is willing to share the code snippet?

    Thanks!

  2. #2
    Join Date
    Feb 2012
    Posts
    61
    Plugin Contributions
    0

    Default Re: How to modify your template to not show display only attributes

    Ok, I've figured out what some of this means now. So my only question that remains is how to modify your template to not show display only attributes.

    Thanks.

  3. #3
    Join Date
    Aug 2005
    Posts
    94
    Plugin Contributions
    0

    Default Re: How to modify your template to not show display only attributes

    Hi
    did you ever figure this out? I'm stuck with this and cant find a solution. Can u help
    Only a fool say's money doesn't matter. No rich man ever starved to death.

  4. #4
    Join Date
    Feb 2012
    Posts
    61
    Plugin Contributions
    0

    Default Re: How to modify your template to not show display only attributes

    Quote Originally Posted by McGill View Post
    Hi
    did you ever figure this out? I'm stuck with this and cant find a solution. Can u help
    No, I am stuck as well. I am hoping one of the experts will reply to this thread. Or anyone who has ever done this will reply. Seems like anyone who has loaded the Google Merchant Center Product Feed add-on would want to do this. I'm thinking there is another add-on that loads the required Google attributes and maybe that add-on provides a way to make the attributes not display.

  5. #5
    Join Date
    Aug 2005
    Posts
    94
    Plugin Contributions
    0

    Default Re: How to modify your template to not show display only attributes

    I found this but attributes.php is not in

    /public_html/YOUR_CATALOG/
    includes/modules/YOUR_TEMPLATE/attributes.php

    ITS IN

    /public_html/YOUR_CATALOG/
    includes/modules/attributes.php

    But not only that I cant find the code ANYWHERE in zencart

    Its a real mystery


    Code:
    One of the Guys here at Numinix (Ted) gave me these instructions, thanx must go to him not me remember, hope this helps as it worked a treat for me!
    
    
    Ted @ Numinix ✆
    25 Feb
    
    to me 
    Jonathan,
    
    Thanks for your question. This file needs to be edited:
    
    /public_html/YOUR_CATALOG/
    includes/modules/YOUR_TEMPLATE/attributes.php
    
    each query that selects data from the table TABLE_PRODUCTS_ATTRIBUTES needs to have the following condition
    
    AND patrib.attributes_display_only = 0
    
    Note, that on one of the queries, the table TABLE_PRODUCTS_ATTRIBUTES is referenced as pa so the condition would be
    
    AND pa.attributes_display_only = 0JonnyRRR 
    On The Path to Enlightenment
     
    Posts: 4
    Joined: Tue Feb 28, 2012 10:10 am
    Only a fool say's money doesn't matter. No rich man ever starved to death.

  6. #6
    Join Date
    Feb 2012
    Posts
    61
    Plugin Contributions
    0

    Default Re: How to modify your template to not show display only attributes

    Thanks for that at least. I tried adding those 2 conditions in the code in attributes.php, but it didn't work for me. I am not a coder, so I don't even know if that's how it should be done. There must be something else to it. Did you get your Google Feed to work at least? Google doesn't seem to recognize some of my Read Only attributes.

 

 

Similar Threads

  1. show additonal graphic only when text attributes display?
    By bonnit in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 May 2011, 09:42 AM
  2. Display-only attributes: show side by side?
    By cosmocanuck in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Mar 2011, 04:29 AM
  3. How to Display Read only Attributes in Category Lists?
    By MikeInValdosta in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Dec 2010, 03:31 AM
  4. Replies: 3
    Last Post: 2 Mar 2010, 03:56 AM
  5. Replies: 2
    Last Post: 17 Dec 2009, 08:58 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
  •