News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

"+" in custom field

Started by miauczyk, June 02, 2013, 10:17:54 AM

Previous topic - Next topic

miauczyk

Hello

I have problem.

I created custom field named "red" and I had put a price to it "15 $". When I enter into my page in my custom field I have such expression " red + 15 $".

I dont want this " + " . Is it possible to somehow delete this "+". I want to have such expression " red 15 $"

I created an unique page and this "+" is not compatible with my page.

Maybe someone know in which file is this "+". I looked for him long hours, because I wanted to deleate, but I cant find.

I put this post in another section, but I think that this section is better for this, sorry.

AH

Took a bit of finding!

administrator/componenets/com_virtuemart/models/customfields.php


   static function _getCustomPrice($customPrice, $currency, $calculator) {
if ((float)$customPrice) {
$price = strip_tags ($currency->priceDisplay ($calculator->calculateCustomPriceWithTax ($customPrice)));
if ($customPrice >0) {
$price ="+".$price;
}




   static function _getCustomPrice($customPrice, $currency, $calculator) {
      if ((float)$customPrice) {
         $price = strip_tags ($currency->priceDisplay ($calculator->calculateCustomPriceWithTax ($customPrice)));
         if ($customPrice >0) {
            $price = $price;
         }
Regards
A

Joomla 4.4.5
php 8.1


AH

Regards
A

Joomla 4.4.5
php 8.1

miauczyk

Thank You all!
It works perfect.

AH

Regards
A

Joomla 4.4.5
php 8.1