osCmax v2.5 User Manual
Results 1 to 2 of 2

Product Attribute Prices Getting Rid of Extra Chars in (+$8)

This is a discussion on Product Attribute Prices Getting Rid of Extra Chars in (+$8) within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi, i've got a page where the prices are entirely driven by the attributes. The client wants me to get ...

      
  1. #1
    Member Dubious's Avatar
    Join Date
    Feb 2006
    Posts
    43
    Rep Power
    0


    Default Product Attribute Prices Getting Rid of Extra Chars in (+$8)

    Hi, i've got a page where the prices are entirely driven by the attributes. The client wants me to get rid of the extra parenthesis and plus sign in the list of attributes. I tried digging around but it was taking me a ridiculous amount of time to isolate the code. Does anybody know how to do this?

  2. #2
    Member Dubious's Avatar
    Join Date
    Feb 2006
    Posts
    43
    Rep Power
    0


    Default

    Ah ha! Answered my own question.... this is ms2 max

    Change /includes/classes/pad_base.php from:

    if ($products_options['options_values_price'] != '0') {
    $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';

    Change to:

    if ($products_options['options_values_price'] != '0') {
    $products_options_array[sizeof($products_options_array)-1]['text'] .= ' ' . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .' ';


    -----------------------

    Rock On OSCNerds

Similar Threads

  1. product prices not showing on product page
    By Dumb_Question in forum osCmax v2 Installation issues
    Replies: 16
    Last Post: 03-24-2006, 09:03 PM
  2. Extra Box on Top of New Product of the Month
    By jimmyliu in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-14-2005, 05:23 AM
  3. Product prices are all $0
    By adam231 in forum osCommerce 2.2 Installation Help
    Replies: 4
    Last Post: 10-21-2004, 02:08 AM
  4. No product prices in new install?
    By Kristine in forum osCMax v1.7 Installation
    Replies: 3
    Last Post: 04-02-2004, 11:06 AM
  5. one product 3 prices
    By Dumb_Question in forum osCommerce 2.2 Modification Help
    Replies: 6
    Last Post: 01-05-2003, 03:51 PM

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
  •