VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 must be logged in to see prices message
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bwalz
VP-ASP New User

USA
82 Posts

Posted - November 17 2011 :  21:12:20  Show Profile  Visit bwalz's Homepage  Reply with Quote
Is it possible to display a message when xpriceloggedinonly is set yes? Something like "Must be logged in to see prices" in place of where the price would be displayed.

elammers
VP-ASP Super User

USA
256 Posts

Posted - November 21 2011 :  21:47:30  Show Profile  Visit elammers's Homepage  Reply with Quote
Here's one way without any code customization.

Set all your main prices to $0. Then in the configuration, find the xprice0 field to set the text for any product priced at $0. This is where you set your message.

Now create a customer group for all the people that need to log in to see prices and be sure to set their price to the real price field, maybe the price2 field in the products table. And be sure you manually add all your customers to that customer group or set up your dynamic SQL for the customer groups so the right people get added to that group automatically.

Regards,
Eric Lammers
www.KrackMedia.com
Building More Than Web Sites . . . Building a Web Presence
Go to Top of Page

diegomilito
VP-ASP Expert

Argentina
723 Posts

Posted - January 14 2012 :  02:57:22  Show Profile  Reply with Quote
there is easy fix i can provide.

open your file shopfileio.asp and then search this code :

case "FORMATCUSTOMERPRICE"
if GetConfig("xdisplayprices") <> "No" then
if (GetConfig("xpriceloggedinonly") = "Yes") AND (GetSess("Login") = "") then
value=""
else
value = HandleCustomerPrice(value, parsearray, parseRS)

value=ShopFormatCurrency(value,GetConfig("xdecimalpoint"))
end if
else
value = ""
end if

and please update above coding to :

case "FORMATCUSTOMERPRICE"
if GetConfig("xdisplayprices") <> "No" then
if (GetConfig("xpriceloggedinonly") = "Yes") AND (GetSess("Login") = "") then
value="Must be logged in to see prices"
else
value = HandleCustomerPrice(value, parsearray, parseRS)

value=ShopFormatCurrency(value,GetConfig("xdecimalpoint"))
end if
else
value = ""
end if

try that and see how!

Diego
Go to Top of Page

bwalz
VP-ASP New User

USA
82 Posts

Posted - January 16 2012 :  11:33:16  Show Profile  Visit bwalz's Homepage  Reply with Quote
Thanks Diego. That worked.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000