News:

Support the VirtueMart project and become a member

Main Menu

Products price not showing when publish down or no stock

Started by AnthonyWang, February 19, 2016, 12:15:12 PM

Previous topic - Next topic

AnthonyWang

How can i get the price always show on frontend? even product date is publish down,or no stock,
I know if no stock or date publish down,the cart will not show,but price?

I tried $product->allPrices function, still can't get it work...
please help!


Joomla 3.4
VM3.0.12
Currently using :
Joomla 3.6.5 / Virtuemart 3.2.1 / PHP 5.5.9-1ubuntu4.17

jenkinhill

Insufficient information. Are you using VirtueMart default templates or overrides? URL?

Other reasons for price not showing may be setting shopper group specific price or failure to set store default currency.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

AnthonyWang

#2
I found the Problem,the price not show because it's use "call for price",
but i still want that even it's no stock,price still show on the page,
how can i do ?

PHP 5.4.45-1
Joomla 3.4
VM3.0.12
Currently using :
Joomla 3.6.5 / Virtuemart 3.2.1 / PHP 5.5.9-1ubuntu4.17

jenkinhill

Deselect "Displays 'Notify Me' instead of 'Add To Cart' button" in Configuration/Shopfront/Action when a Product is Out of Stock and select the option you prefer.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

AnthonyWang

#4
Thanks for quick reply,Jenkinhill,
but i mean call for price,
I am confused,when i set backend product publish down date ,after that date,the price will hide,
whatever what's your config. in backend and php echo price will become nothing,
please help!
Currently using :
Joomla 3.6.5 / Virtuemart 3.2.1 / PHP 5.5.9-1ubuntu4.17

AnthonyWang

#5
I create another new joomla and virtuemart system,and default template default setting,
after publish down date,all price value will gone,
the result the same,
anyone?



PHP 5.4.45-1
Joomla 3.4
VM3.0.12
Currently using :
Joomla 3.6.5 / Virtuemart 3.2.1 / PHP 5.5.9-1ubuntu4.17

AnthonyWang

sorry,it's my fault,
the field is "price_publish_down",when i set it in backend,all price will gone,
please help!
Currently using :
Joomla 3.6.5 / Virtuemart 3.2.1 / PHP 5.5.9-1ubuntu4.17