Welcome, Guest ( Customer Panel | Login )




 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-CART Super User

304 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-CART 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-CART Super User

304 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-CART 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-CART Super User

304 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
0 Item(s)
$0.00