Rank: Member
Joined: 6/1/2004(UTC) Posts: 720
|
Hi, is there a way that I can hide cross sells on product page so that the only time they appear this intermediate page between adding to cart and arriving at the cart page? I thought in previous versions I was able to hide this by a visible="false" tag in the product page.
Thanks, Derek |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
That should work. Are you sure that you're not seeing another control? You can usually use an HTML comment (<!-- -->) to hide controls, too. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 6/1/2004(UTC) Posts: 720
|
Thanks Aaron,
I tried that HTML commenting and it seemed to work perfectly in Internet Explorer, chrome and Safari but didn't work properly in Firefox. Any idea about a fix for the Firefox issue?
Thanks, Derek |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
If FireFox is showing HTML that is inside of HTML comments, then I suspect there is invalid HTML on the page. All browsers are tolerant of invalid HTML, but they each have their own way of dealing with missing tags, or tags in the wrong order, etc. I'm guessing FireFox is ignoring the start of comment because some other tag is open or something.
Or FireFox just does not like HTML comments. But you can create a simple html page to test that. |
|
|
|
|
Rank: Member
Joined: 6/1/2004(UTC) Posts: 720
|
Thanks Andy, Here is what I found on the FF issue http://weblog.200ok.com....e-why-html-comments.htmlI am not sure why the visible="false" is not working for me on the .aspx page. I have used this method many times before... Thanks, Derek |
|
|
|
|
Rank: Member
Joined: 12/23/2003(UTC) Posts: 909
|
If you pull the control off the template page and the call to the control at the top of the template page, you won't be dealing with commenting out or visible="false" issues. |
|
|
|
|
Rank: Member
Joined: 6/1/2004(UTC) Posts: 720
|
Ok, since the visible="false" was not working when I put it in the .aspx page I instead added the below to the aspx.vb file
' Cross Sell Me.CrossSellDisplay.Product = Me.LocalProduct Me.CrossSellDisplay.DataBind() CrossSellDisplay.Visible = False
This worked but will it cause problems elsewhere?
Thanks, Derelk |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
That should be fine, Derek. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 6/1/2004(UTC) Posts: 720
|
Thanks Guys!!
Matt, I did try that but for some reason I was getting errors on the page. I will re-test that as well though....
Thanks again, Derek |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.