Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    29
    Plugin Contributions
    0

    Default Attributes: Changing Options Comment?

    Hey Folks,

    When I set attributes for a product, I get the following:

    Please Choose:
    # of Capsules
    120 capsules ($x.xx)
    60 capsules ($x.xx)

    Now, I know I control the attribute names and values, but where is the text set for "Please Choose"? Is this an editable value?

    In the source code we have the following (have removed brackets so it can display):

    h3 class="attributesComments"
    ?php echo $options_comment[$i]; ?
    /h3

    Would love to be able to modify that copy, if at all possible.

    /Ant
    A friend will help you move.
    A good friend will help you move a body.

  2. #2
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: Attributes: Changing Options Comment?

    If you use Tools / Developers Toolkit you can search for this - but it's in includes/languages/english/product_info.php copy to includes/languages/english/YOUR_TEMPLATE/product.info.php

  3. #3
    Join Date
    Sep 2005
    Posts
    95
    Plugin Contributions
    0

    Default Re: Attributes: Changing Options Comment?

    Quote Originally Posted by AnthonyBaker View Post
    Hey Folks,

    When I set attributes for a product, I get the following:

    Please Choose:
    # of Capsules
    120 capsules ($x.xx)
    60 capsules ($x.xx)

    Now, I know I control the attribute names and values, but where is the text set for "Please Choose"? Is this an editable value?

    In the source code we have the following (have removed brackets so it can display):

    h3 class="attributesComments"
    ?php echo $options_comment[$i]; ?
    /h3

    Would love to be able to modify that copy, if at all possible.

    /Ant
    I would want to take this a step further. Can I set this up to when a particular attribute is assigned to a product that the text will change from "Please Choose:" to something like "In Home Delivery"? Can this be done in tpl_product_info_display.php? Or am I looking in the wrong place.

    Thanks
    Zen-Cart, The Greatest Shopping Cart!

  4. #4
    Join Date
    Sep 2005
    Posts
    95
    Plugin Contributions
    0

    Default Re: Attributes: Changing Options Comment?

    Quote Originally Posted by GearStudios View Post
    I would want to take this a step further. Can I set this up to when a particular attribute is assigned to a product that the text will change from "Please Choose:" to something like "In Home Delivery"? Can this be done in tpl_product_info_display.php? Or am I looking in the wrong place.

    Thanks
    Duh!! I figured it out doing this:

    Code:
    <?php if($cPath == '1_2') {echo "some text";} else {echo TEXT_PRODUCT_OPTIONS;}
    ?>
    This may not be the best way but it works for me.

    Is there another way?

    Thanks! :)
    Zen-Cart, The Greatest Shopping Cart&#33;

 

 

Similar Threads

  1. Changing attributes options text header
    By petek in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Apr 2008, 06:31 PM
  2. Attributes/Options Changing Themselves...so it seems
    By webworkshop in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 14 Aug 2007, 03:02 AM

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