Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Brackets around prices in on attribute weights

    Hi, I hope someone can help me with this.

    i'm having an issue with product prices which are shown along with weights as an attribute as follows.

    250g
    500g (+£3.50)
    750g (+£7.00)
    1kg (+£10.50)
    2kg (+£24.50)

    I'd like to turn off the brackets which are shown around the prices next to my product weights, however after turning these off in product_info.php and product_free_shipping_info.php they are still there. See below for how I've edited these two documents.

    /*define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');*/
    /*define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');*/
    /*define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' (');*/
    /*define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') ');*/

    So as you can see they're just commented out.

    However i suspect this might be something to do with the fact that I've applied the weights and prices as product attributes.

    So please can somebody help with this?

    Thank you

    Nick

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

    Default Re: Brackets around prices in on attribute weights

    Nick,
    Did you try this one too..

    includes/languages/english/document_product_info.php

  3. #3
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Brackets around prices in on attribute weights

    Yes just tried that and still nothing

  4. #4
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Brackets around prices in on attribute weights

    I also tried document_general_info.php

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

  6. #6
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Brackets around prices in on attribute weights

    Thanks for this. I've got it sorted now.

  7. #7
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

    Default Re: Brackets around prices in on attribute weights

    Ni,
    Your Welcome

    Was the fix Post #4, on the link above?????

  8. #8
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Brackets around prices in on attribute weights

    Hi, sorry for the delay. Had my head into some annoying lengthy but minor fixes lol.

    I had a plugin in place for displaying options on product listings so it was very slightly different. so if you view the code below from 'Options on Product Listing v2.0 - attributes.php' you will see in bold  . These are where the brackets were previously in place and are forming spaces rather than brackets. And that was it really.

    if ($products_options->fields['options_values_price'] != '0' and ($products_options->fields['product_attribute_is_free'] != '1' and $product_info->fields['product_is_free'] != '1')) {
    // show sale maker discount if a percentage
    $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'])) . ' ';
    } else {
    // if product_is_free and product_attribute_is_free
    if ($products_options->fields['product_attribute_is_free'] == '1' and $product_info->fields['product_is_free'] == '1') {
    $products_options_display_price= TEXT_ATTRIBUTES_PRICE_WAS . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . TEXT_ATTRIBUTE_IS_FREE;
    } else {
    // normal price
    if ($new_attributes_price == 0) {
    $products_options_display_price= '';
    } else {
    $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'])) . ' ';
    }
    }
    }



    I now need to remove the plus sign from the same, but should be fine with doing that now. Although if I get stuck i will be posting again lol

    Thanks again

    Nick

 

 

Similar Threads

  1. How to Remove brackets around shipping (Best way)?
    By ianhg in forum General Questions
    Replies: 1
    Last Post: 3 Mar 2013, 02:51 PM
  2. Removing brackets from around attributes price
    By g3steve in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 4 Feb 2010, 05:11 AM
  3. brackets around weights
    By Nick1973 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Apr 2009, 06:06 AM
  4. Remove brackets around P&H
    By microbe in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Feb 2008, 05:53 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