Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Removing brackets from around attributes price

    Hey,

    Thanks again for your input, yes i've tried the developers tookit but it doesn't seem to be getting me anywhere.

    The "each" is the option name which comes from the database so it doesn't show when i do a search im afraid

    Ive found that:
    $products_options_display_price - controls the price

    $products_options_details - controls the option name e.g. Each

    but ive searched for these and they are both defined in different files and not in the same file, one after each other. So im so confused what to do, can anyone provide instructions on whats needed?

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Removing brackets from around attributes price

    How do you end up with the word Each in your attribute ? zc dosn't add that to attribute .. or am i missing something . ?

  3. #3
    Join Date
    Nov 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Removing brackets from around attributes price

    "Each" is the name of the attribute, so when i originally added it and it displayed as an attribute is looked like this:

    Each (+£14.99)

    I've managed to remove the + and the () but now its displaying as:

    Each£14.99 and i want it to display as:

    £14.99 Each

    Hope someone can help!

    Thanks

    steve

  4. #4
    Join Date
    Jan 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Removing brackets from around attributes price

    I know this is an older thread but I needed the same thing and found a solution. Thought I'd post for anyone needed it...
    This will put take out the Brackets around the attribute price and replace with spaces instead. The space is needed so the $Price is not butted right next to the option name.
    Silver$50 ---> Silver $50

    Attributes.php file:

    Find this code:
    Code:
    $products_options_display_price= ' (' . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
    Change to THIS:
    Code:
    $products_options_display_price= '  ' . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . '  ';
    Basically just swapping out the (brackets) for a space.

 

 

Similar Threads

  1. brackets around weights
    By Nick1973 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Apr 2009, 06:06 AM
  2. Remove brackets around P&H
    By microbe in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Feb 2008, 05:53 AM
  3. Removing [brackets] from <input name="id[x]"
    By rippyuk in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Nov 2007, 11:38 PM

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