Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2014
    Location
    New Orleans LA
    Posts
    26
    Plugin Contributions
    0

    Default Customizing attribute format in pulldown menu

    My client has asked me to change the output in the attributes pulldowns on cart pages.

    I dug through attributes.php and shopping_cart.php and html_output.php but I cannot seem to locate where these are formatted: "( +$41.49 ) (+29.7lbs)"

    Client would like options to read and be formatted like this:

    Single - $1.76
    Case of 12 - $21.11 (+16.5 lbs)

    Where should I be looking for the formatting of that? At the very least they want to set order and use hyphens between unit and price.

    Thanks for any advice!

    Current output:

    Code:
    <select name="id[1]" id="attrib-1">
      <option value="1">SINGLE</option>
      <option value="2">CASE OF 4 ( +$41.49 ) (+29.7lbs)</option>
    </select>

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Customizing attribute format in pulldown menu

    Quote Originally Posted by jerrygarciuh View Post
    My client has asked me to change the output in the attributes pulldowns on cart pages.

    I dug through attributes.php and shopping_cart.php and html_output.php but I cannot seem to locate where these are formatted: "( +$41.49 ) (+29.7lbs)"

    Client would like options to read and be formatted like this:

    Single - $1.76
    Case of 12 - $21.11 (+16.5 lbs)

    Where should I be looking for the formatting of that? At the very least they want to set order and use hyphens between unit and price.

    Thanks for any advice!

    Current output:

    Code:
    <select name="id[1]" id="attrib-1">
      <option value="1">SINGLE</option>
      <option value="2">CASE OF 4 ( +$41.49 ) (+29.7lbs)</option>
    </select>
    If I remember correctly there is a constant that prepends and follows the value(s) you are trying to display differently. So it's not as clear as looking for a left parentheses followed by the number it might have the name/term prefix for the ( and suffix for the ).

    And I did think it was in the attributes.php file, but could be wrong.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,903
    Plugin Contributions
    96

    Default Re: Customizing attribute format in pulldown menu

    As mc12345678 indicated, you'll want to edit or create your template override version of /includes/modules/YOUR_TEMPLATE/attributes.php. If the file and/or directory don't yet exist, copy the file /includes/modules/attributes.php to that directory as a starting point.

 

 

Similar Threads

  1. How do i get a category pulldown menu????
    By paddy_uk2007 in forum General Questions
    Replies: 22
    Last Post: 7 Nov 2010, 04:21 PM
  2. Flyout or Pulldown Menu Needed - How?
    By bekinky in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Feb 2007, 07:54 PM
  3. Staes Pulldown Menu
    By JollyJim in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 19 Jun 2006, 11:56 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