Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to change price attributes


iNewView

Recommended Posts

I /includes/classes/currencies.php change the last function at the bottom of the page to:

 

function display_price($products_price, $products_tax, $quantity = 1) {
    if ($products_price > 0){
      return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
    }else{
      return "Call for price!";
    }
  }

 

Matti

Link to comment
Share on other sites

  • 3 weeks later...

Hello, Matti!

 

I am a beginner of PHP stuff. Please drop me a pointer where/whom can show to modifiy the script to replace the [buy Now!]+hyper_link button by [Contact Us]+hyper_link one. It is not make sense for Call-for-Price! then Buy-now! I will upload the modification back to the contribuition if success.

 

I am not sure whether it needs to take a light year to finish the modification if the original script is complicated since it took me for half an hour for the 5-min contribution installation .It will highly appreciated the cotribution originator, Tim can kindly show me to do that.

 

Thanks a lot in advanced!

=====================================================================

I /includes/classes/currencies.php change the last function at the bottom of the page to:

 

function display_price($products_price, $products_tax, $quantity = 1) {
    if ($products_price > 0){
      return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
    }else{
      return "Call for price!";
    }
  }

 

Matti

YaNotCook !!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...