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
 live BUY products AND catalogue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bluesky
VP-ASP Super User

302 Posts

Posted - September 09 2010 :  07:54:51  Show Profile  Reply with Quote
Anybody help me on this one

I have 300 products , all available to purchase online at the clck of a button,

I want to make 50 of them viewable but not purchasable online , maybe only orderable by phone , I think this would b classed a "catalogue" products

can you mix and match live products and purchasable products like this on the one site , and if so , anybody advise which settings i ned to use

Paul

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - September 09 2010 :  09:53:59  Show Profile  Reply with Quote
Hi Paul,

which version of VP-ASP are you using?

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

bluesky
VP-ASP Super User

302 Posts

Posted - September 09 2010 :  12:08:18  Show Profile  Reply with Quote
Hey thanks

6.5

paul
Go to Top of Page

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - September 10 2010 :  04:58:19  Show Profile  Reply with Quote
Hi Paul,

I had to find a way to do this for our site too. We have quite a few products in different categories that we wanted to display but not let the customer order online but there isn't a simple setting in VP-ASP 6.5 that allows for this. Here is how I solved the problem.

1. Create a copy of the tmp_productformat.htm and name it tmp_productformatnobuy.htm. Open the file in a text or html editor and remove the buy button, stock quantity etc. and add a message to contact your office for order details. Add the name of this file to the 'template name' field of all the products records that you want to hide the buy button. Make sure that in Cart Set Up that the field xproductwith html is set to Yes. This first part will only stop the order button from appearing on the extended description pages, not on the categories pages or in a search result page, so you have to create a check to stop particular products displaying the order button on all other pages.

2. Choose an unused field in the product records that you can use to store a word or phrase to distinguish these "No buy online" products from the rest of your stock eg pother3 and add your phrase to all the appropriate records.

3. Open the file shopproductformat.asp in a text or html editor and save a copy as backup. Find the line: Sub FormatButton (line 500 approx) and add the code highlighted in red ONLY

Sub FormatButton
'******************************************************
' If product has a button image
' it is formatted here
' If a product has sub products dont add order button unless
' subproduct is formatted as a form type field (radio, dropdown)
'******************************************************
dim mybutton
Dim mytext
dim officeOnly
dim rc
if getconfig("xproductcatalogonly")="Yes" then
exit sub
end if
If inventorycheck=True then
If inventorypricedisplay=false then
' AddInventorycolumn
exit sub
end if
end if
PWriteNoStockMessage rc

officeOnly=objrs("pother3")
if officeOnly ="No online orders"
exit sub
end if


if rc> 0 then exit sub


Save the file. Upload to your server and test it. Please be aware that although this code works perfectly on our site, some of your admin settings may be different and might affect the way the products display.

Any questions or problems with this, please just ask.

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

bluesky
VP-ASP Super User

302 Posts

Posted - September 10 2010 :  11:03:11  Show Profile  Reply with Quote
Carrol

Thanks for a comprehensive reply , its appreciated

I shall work on this over weekend and let you know how i get on

paul
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000