dax
Starting Member
14 Posts |
Posted - March 18 2009 : 02:20:17
|
Hi all, this should be an easy one but I'm stumped! In VPASP 6.5 when the cart is empty the minicart displays 'Sorry, currently unavailable' instead of a dollar value. How can I change it to simply show $0 amoint?
I have searched both code and language for 'Sorry, currently unavailable' with no joy!
Its only the <%=navigateproductTotal()%> routine hat produces this result.
Cheers... D |
Edited by - dax on March 18 2009 03:41:41 |
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - March 18 2009 : 04:04:51
|
It'll be your "xprice0" config option I think; that's what it displays when prices are zero. If that config option is blank then it'll show a zero instead of that text value. But that might be set for a reason (ie for products which have zero prices, or shipping which is unavailable for the customer).
If you need to keep the xprice0 option set (eg for unknown shipping costs) then you'd need to change the minicart function (in the shopproductsubs.asp file) to either not show the amount when it's zero, or to call a new/separate function which displays an "ignore xprice0 and always show amount" value, or to hard-code it to "$0.00" when it's zero.
If you don't need to keep the xprice0 option set then you could just blank out that config value.
Having said that, as to why it's displaying the string in one zero instance but not in another, that's something I can't see how/why it'd happen as they all call the same shopformatcurrency function.
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
Edited by - devshb on March 18 2009 04:19:54 |
|
|