Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2003
    Posts
    12
    Plugin Contributions
    0

    Displaying certain text depending on item category

    On the shop I am currently working on I have some products that need to be sold "by the yard" and others that are "per button", "per item", etc. Is there a way to change this text depending on which category the item is listed in?

    For example on this page: http://simplysunshine.com/index.php?...oducts_id=1475 it needs to say $4.95 per Yard. But on this page: http://simplysunshine.com/index.php?...oducts_id=1532 it needs to say "$1.30 per Button".

    Any help is appreciated!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Displaying certain text depending on item category

    It might be worth coding in a new field for this ...

    Then you can define what it should say, if anything, next to the price ...

    You could do it as a interpreted value, like:

    0 (blank)
    1 per button
    2 per item
    3 per yard
    etc.


    Or, you could make Product Types ... which is more complicated but can be customized more specifically for dispaly and functionality ...


    Or, if you are not into coding you could use Attributes where the
    Option Name: Sold by
    Option Type: READONLY

    READONLY Attributes are only for display and do not get added to the cart nor act like attributes ...

    They are a fast way to apply text to Products in a gang ...

    Say you call it: per yard

    Later you want it: by the yard

    Just change the Option Value and it changes everywhere ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Displaying certain text depending on item category

    NOTE: if you have your products and categories laid out well ... based on Categories or Parent Categories ... you could use that to build the text ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,699
    Plugin Contributions
    123

    Default Re: Displaying certain text depending on item category

    A technique for how to add boilerplate text to the description field is described here:

    http://www.thatsoftwareguy.com/zenca...scription.html

    This could be easily modified for your needs.

    Scott
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: Displaying certain text depending on item category

    Quote Originally Posted by Ajeh View Post
    It might be worth coding in a new field for this ...

    Then you can define what it should say, if anything, next to the price ...

    You could do it as a interpreted value, like:

    0 (blank)
    1 per button
    2 per item
    3 per yard
    etc.
    Oh Linda! This is just what I need to do.... Is it very difficult to code it? Can you point me in a direction where I can learn to do it? The attribute thing won't work... and from what I can tell the broilerplate thing won't either. But what you described here is PERFECT! I NEED it so badly...

    Can you help?

  6. #6
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: Displaying certain text depending on item category

    On second thought... Maybe the boilerplate thing will work. I don't want the per yard, per pattern, etc to be in the description but rather appear after the price. But maybe I can use the article to show me how to do a related task.... Am I right? Any advise?

 

 

Similar Threads

  1. v153 Display text on products in certain category only
    By abcisme in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Mar 2015, 06:55 PM
  2. each item(individually) has it own shipping cost per state depending on item
    By vandiermen in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 31 Oct 2010, 12:02 PM
  3. Replies: 21
    Last Post: 20 Aug 2010, 03:52 PM
  4. Special postage price for a certain item/category
    By gromituk2k in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 21 Jul 2009, 12:14 PM
  5. Change text "Add to cart" depending on what product category?
    By ekincheng in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 12 Dec 2006, 09:49 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