Changing Price Formatting

Discussion in 'PHP' started by Borduhh, Sep 11, 2010.

  1. #1
    Hey Everyone,

    I have a zencart store and I am trying to change the price formatting on my product listing and product info pages.

    It currently looks like:
    $30.99 $27.99
    Save 10% Off

    I want it to look like:
    Competitor: $30.99
    Our Price: $27.99
    Save 10% with us!


    I know that this code has to be edited on the product info page:
      if ($show_onetime_charges_description == 'true') {
        $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
      } else {
        $one_time = '';
      }
      echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
    ?></h2>
    PHP:
    But I am not that familiar with this code, so I was wondering if someone could help me :)

    Best Regards,
    Nick
     
    Borduhh, Sep 11, 2010 IP
  2. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #2
    I dont think that is the part of the code that needs changed. or it is pulled from another file included.
     
    lowridertj, Sep 11, 2010 IP
  3. Borduhh

    Borduhh Well-Known Member

    Messages:
    767
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    150
    #3
    Do you see the filename...
     
    Borduhh, Sep 11, 2010 IP
  4. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #4
    no from what I see is a code fragment. Something pullled out of a file. that is used inside another, or calls other files from the top etc..

    I would be able to help you if I knew more about the script being used, and the full page used for it.
     
    lowridertj, Sep 11, 2010 IP