Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 comment
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Angus1
Starting Member

36 Posts

Posted - May 15 2006 :  12:48:07  Show Profile  Reply with Quote
How do you comment out when you don't want to use certain code lines.

Thanks

Doug Page
VP-CART New User

Canada
85 Posts

Posted - May 15 2006 :  13:33:26  Show Profile  Reply with Quote
You are probably trying to comment our things that are in HTML files. So structure your comments like this:

<!--This text is a comment-->

Whatever is between the <!-- and the --> will not show.

HTH
Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - May 15 2006 :  15:24:30  Show Profile  Visit devshb's Homepage  Reply with Quote
and if it's in vbscript then you add a single-quote to the beginning of the line, eg:

' Commented out line:
'ShopPageHeader
' Live line below:
ShopPageTrailer

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons
Go to Top of Page

Angus1
Starting Member

36 Posts

Posted - May 16 2006 :  09:27:21  Show Profile  Reply with Quote
Hi Guys
Thanks for the replies. So you know what I am trying to achieve is to be able to not use Currency & Language on my home page but also not remove the code just render it inactive. Is this possible.

Thanks
Go to Top of Page

Doug Page
VP-CART New User

Canada
85 Posts

Posted - May 16 2006 :  11:04:58  Show Profile  Reply with Quote
Absolutely!

The right nav items are all in shoppage_trailer.htm and you just need to comment out the HTML that calls them. That way it is still there and only needs to be uncommented if you want it back.
Go to Top of Page

Angus1
Starting Member

36 Posts

Posted - May 16 2006 :  12:54:45  Show Profile  Reply with Quote
Thanks Doug I did it and it works fine.
Go to Top of Page

Angus1
Starting Member

36 Posts

Posted - May 16 2006 :  12:57:34  Show Profile  Reply with Quote
Thanks Doug I did it and it works fine.
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