News:

Support the VirtueMart project and become a member

Main Menu

Prices does not show up

Started by gvgracing, October 22, 2014, 11:31:33 AM

Previous topic - Next topic

gvgracing

Hi,

i use joomla 3.3.6 and virtuemart 2.9.9G. The prices doesnt show up on my website. What do i have to check more? I checked the boxes in shopper groups, and in the configuration => pricing.








gvgracing

if i change my template, it doesnt work neither, see print screen.

GJC Web Design

changed to what? Try the native protostar
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gvgracing

Quote from: GJC Web Design on October 23, 2014, 11:27:14 AM
changed to what? Try the native protostar
i changed it to breeze. what is native protostar? thanks

GJC Web Design

if you mean Beez  fine  - protostar is the other std. one

but the screen definitely doesn't look like beez to me
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bboom

#5
I've the same problem (I use VM 2.9.9.2). I looked in the currencydisplay file and saw that the problem is in the getFormattedCurrency function. When I set $format hard coded it works perfectly, but when you use the normal function the function returns NULL.

gvgracing

Quote from: bboom on October 24, 2014, 16:35:34 PM
I've the same problem (I use VM 2.9.9.2). I looked in the currencydisplay file and saw that the problem is in the getFormattedCurrency function. When I set $format hard coded it works perfectly, but when you use the normal function the function returns NULL.
hi! thank you for your advice. Where can i find the currencydisplay file? i looked under my template folder but couldnt find it.

Milbo

Did you setup a vendor currency?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bboom

That was the problem in my configuration and I think that this will solve the problem by gvgracing also.

Thanks!

gvgracing

Quote from: bboom on October 27, 2014, 18:44:48 PM
That was the problem in my configuration and I think that this will solve the problem by gvgracing also.

Thanks!
oh thank you  i found the currencydisplay.php file. can you give me more information what i have to change? Sorry i dont know much about PHP.

gvgracing

i guess i should change something in here?

/**

* Format, Round and Display Value

* @author Max Milbers

* @param val number

*/

public function getFormattedCurrency( $nb, $nbDecimal=-1){



//TODO $this->_nbDecimal is the config of the currency and $nbDecimal is the config of the price type.

if($nbDecimal==-1) $nbDecimal = $this->_nbDecimal;

if($nb>=0){

$format = $this->_positivePos;

$sign = '+';

} else {

$format = $this->_negativePos;

$sign = '-';

$nb = abs($nb);

}



//$res = $this->formatNumber($nb, $nbDecimal, $this->_thousands, $this->_decimal);

$res = number_format((float)$nb,(int)$nbDecimal,$this->_decimal,$this->_thousands);

$search = array('{sign}', '{number}', '{symbol}');

$replace = array($sign, $res, $this->_symbol);

$formattedRounded = str_replace ($search,$replace,$format);



return $formattedRounded;

}

bboom

I think you don't have to to change the virtuemart code. The only thing you have to do is add a currency to the vendor via the joomla backend.

gvgracing

Quote from: bboom on October 30, 2014, 13:28:03 PM
I think you don't have to to change the virtuemart code. The only thing you have to do is add a currency to the vendor via the joomla backend.
omg, thanks you so much! that did the trick