Forum  Discuss AliComm...  Store UI: Theme...  Catalog Image Links
Previous Previous
 
Next Next
New Post 3/31/2008 3:29 PM
  etorkia
19 posts
No Ranking


Catalog Image Links 
Modified By AliCommerce  on 4/1/2008 3:21:21 AM)

Hi Frank:

I am having weird stuff happen to my catalog image links.... when I click on the text link everything works ok and the detailed product image appears with qty and buy buttins....however if I click on the image it opens up a catalog page with no items and 1 of 0 in the sorter bar.... what is even stranger is that it works fine if Firefoz 2 but if flakes out in IE6...

Upon further testing... I have found that in IE6 (where I am having all the grief) if you go back to the catalog page from the product page with out going through the alicommerce category menu or the product trail.... if will put the catalog page with 0 items

Can you help...this is realy bizzare.

Thanks

Eric

 

 
New Post 4/1/2008 2:52 AM
  AliCommerce
1056 posts
1st Level Poster


Re: Catalog Image Links 
Modified By AliCommerce  on 4/1/2008 3:55:47 AM)

Did you change the template? I can't reproduce this on demo site and development box. Also any error message in event log?


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 4/1/2008 4:52 AM
  etorkia
19 posts
No Ranking


Re: Catalog Image Links 
Modified By AliCommerce  on 4/2/2008 2:23:02 PM)

Hi Frank:

I did modify the template to take out the retail price and you save tags.... and I added a few CSS tags aswell. I am not convinced that the template is at the root of it all...but I can send that to you via email for your review.

Have a look at the page in IE6 http://www.crystalballservices.com/OnlineStore/tabid/101/CategoryId/058d8f47-7bb6-415c-9b5c-9a6500f65d3d/Default.aspx.

All you have to do is to select a product by the image....hit "back" in your browser to return to the product catalog and pick another product image.... it does not produce the error consistently.... I was wondering if Ventrian Friendly URL might affect your cart in IE6. As I mentionned earlier, everything works perfectly in FireFox 2. When I use the back button and pick another product it refreshes the catalog page (I have to try again to get the product info but it works.) whereas IE refreshes the catalog to 0 items.

Many thanks in advance.

Eric

 

 
New Post 4/1/2008 10:36 AM
  etorkia
19 posts
No Ranking


Re: Catalog Image Links 
Modified By AliCommerce  on 4/2/2008 2:22:34 PM)

Ok... So I have been testing this issue for almost 2 days... what I have come up with for IE6 is that

  • the link being generated for the product image is not the same as the text link. I now realize that its a form button.
  • If I use the "BACK" key...the text links for every product work fine - that is it opens up the product page.
  • As long as I use the links generated by Alicommerce....its all good.

Potential Solutions:

  1. Fix the Link generation to match that of the text link ( in the mean time, I will compare my template to the original provided with the package); or
  2. Ensure that if some uses the "Back" button and pick an image, alicommerce refreshes the catalog....like in Firefox and most probably on your test machine, alternatively we could fix this temporarily by turning-off the product image links

A 1000 thanks in advance

Eric

 
New Post 4/2/2008 9:18 AM
  etorkia
19 posts
No Ranking


Re: Catalog Image Links 
Modified By AliCommerce  on 4/2/2008 2:22:13 PM)

Hi Frank:

I think the Friendly URL is aking things go nuts...I am going to take it out or replace it with another module...If that fails I will have to run a upgrade to 4.08.02 and reinstal certain modules.

Another quick question - Why are the links in the category menu refering to my old testing DNS www.crystalballservices.ns138.alentus.com?

Thanks

 Eric

 

 
New Post 4/2/2008 1:46 PM
  AliCommerce
1056 posts
1st Level Poster


Re: Catalog Image Links 
Modified By AliCommerce  on 4/6/2008 4:41:05 AM)

Eric,

To remove category image link, Please find the following control on line 36 in template file and change the its commandname property to something else.

<asp:ImageButton ID="imgBtnCategoryIcon" runat="server" CommandName="ViewCategory" />

The template file is \AliCommerce\StoreFront\CategoryTemplates\Grid List With Subs\GridListWithSubsCategoryTemplate.ascx

Not quite about the old testing url. As far as I see, the url is generated dynamically by dnn function Globals.NavigateURL(tabId, controlKey, paramArray), which is a standard dnn funtion. Can you tell me how many portal aliases there are in your store? If you have more than one portal alias, please keep the current one and remove others.

let us know how it goes,


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 4/2/2008 3:46 PM
  etorkia
19 posts
No Ranking


Re: Catalog Image Links 

Hi Frank:

That remedies the situation temporarily because it stil forces a page refresh and may be confusing to the catalog's user...Idealy this workaround would not show the pic as a link (the hand cursor) - Therefore how could we hack the link out as well. Neverhteless it will let me get the project back on track.  I guess the problem is that the session variable are getting erased when someone goes back and starts again....

However, it would be nice to be able to figure out why IE6 cant do it and FireFox can (ASAP fo my sake...) I really have to fix this right because the catalog becomes cumbersome and counterintuitive

what else couyld we look at? or is this something to look at in 2.0?

Thanks

Eric

 
New Post 4/3/2008 3:59 AM
  AliCommerce
1056 posts
1st Level Poster


Re: Catalog Image Links 

Replace the control with this one:

<asp:Image ID="imgCategoryIcon" ImageUrl='<%#GetPortalImageUrl((((Category) Container.DataItem).IconImage),false)%>' runat="server" />

Many thanks,


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 4/3/2008 6:49 AM
  etorkia
19 posts
No Ranking


Re: Catalog Image Links 
Modified By etorkia  on 4/3/2008 12:50:22 PM)

Hi Frank:

I have tried your tag but it says TP1_GridListCategoryTemplate.ascx(62): error CS0103: The name 'GetProductMediumImage' does not exist in the current context

As a temporary  workaround....I got the tag from the Detailed product info template..... It works perfectly in FireFox and not in IE.... That is if I click on the link in IE i get a refresh. Better than what I had.... I tried to put a CSS to take the cursor hand out...but with my correction that does not work.

<a href="<%#GetProductDetailUrl(((Product) Container.DataItem).Id)%>"><asp:ImageButton ID="imgbtnProductImage" runat="server" NavigateUrl='<%#GetProductDetailUrl(((Product) Container.DataItem).Id)%>'/> </a>

 

If I wanted to resolve this issue once and for all, I would need to know how I could get the small image to work in the Gridlist Template, i.e.

<a href="<%#GetProductDetailUrl(((Product) Container.DataItem).Id)%>"><asp:Image ID="imgProductImage" runat="server" ImageUrl='<%#GetProductMediumImage(CurrentProduct.MediumImage)%>'   Enabled="false" /> </a>

I feel that using a GET instead of a POST approach would make the product grid list far more robust....

 By the way...coud it be some oddball setting in IIS that the host would have to set that is causing all these problems?

Thanks for your continued support to resolve this!

 

Eric

 
New Post 4/6/2008 3:38 AM
  AliCommerce
1056 posts
1st Level Poster


Re: Catalog Image Links 
Modified By AliCommerce  on 4/6/2008 4:39:23 AM)

 etorkia wrote

Hi Frank:

I have tried your tag but it says TP1_GridListCategoryTemplate.ascx(62): error CS0103: The name 'GetProductMediumImage' does not exist in the current context

As a temporary  workaround....I got the tag from the Detailed product info template..... It works perfectly in FireFox and not in IE.... That is if I click on the link in IE i get a refresh. Better than what I had.... I tried to put a CSS to take the cursor hand out...but with my correction that does not work.

 If I wanted to resolve this issue once and for all, I would need to know how I could get the small image to work in the Gridlist Template, i.e.

I feel that using a GET instead of a POST approach would make the product grid list far more robust....

 By the way...coud it be some oddball setting in IIS that the host would have to set that is causing all these problems?

Thanks for your continued support to resolve this!

 Eric

I don't understand what you're trying to achieve in this post or what's the issue.

 I have tested Grid List With Subs template on other sites and it works fine. The issue you're experiencing is most likely caused by URL rewriter.

Like what I said in previous post, if you want to remove category link in this template, please replace

<asp:ImageButton ID="imgBtnCategoryIcon" runat="server" CommandName="ViewCategory" />

with

<asp:Image ID="imgCategoryIcon" ImageUrl='<%#GetPortalImageUrl((((Category) Container.DataItem).IconImage),false)%>' runat="server" />

 


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 4/6/2008 12:40 PM
  etorkia
19 posts
No Ranking


Re: Catalog Image Links 
Modified By AliCommerce  on 4/7/2008 4:00:40 AM)

Hi Frank:

Sorry for the confusion....I made a mistake in the original post...

My error is occuring with the links to the product images in the  "Grid List" file. Since discovering the error... I have done a lot of research to figure out what is going on....

The original tag in the grid list file is causing me all the problems (see below)

<div class="ProductImage">
                        <asp:ImageButton ID="imgBtnProductImage" runat="server" CommandName="ViewProductDetail" />

Essentially when a user is going through the online catalog and goes to a detailed product description( i.e. http://www.crystalballservices.com/OnlineStore/tabid/101/ProductId/0ca8a1d7-3de9-4473-aed3-9a6500fc8bed/Default.aspx)  and want to back one level using the Browser "Back" button to the category page (in this case "Grid List" (http://www.crystalballservices.com/OnlineStore/tabid/101/CategoryId/d64b36b0-ba97-4512-88d3-9a6500f6a241/Default.aspx).... they get a gridlist page with 0 items. (I have made modifications to avoid this...therefore the initial error does not occur anymore)

The only way I found to avoid the grid list page to give a 0 when using the back button is to use explecit links and to turn off the Post (See code below)

<div class="ProductImage ImageCursor">
                    <a href="<%#GetProductDetailUrl(((Product) Container.DataItem).Id)%>"><asp:ImageButton ID="imgbtnProductImage" runat="server" NavigateUrl='<%#GetProductDetailUrl(((Product) Container.DataItem).Id)%>'/> </a> </div>

 

The result of my modification is that a user who clicks on a product image will either get the description or a refresh instead of a 0 results query. this makes the site underfunctional in IE but work perfectly in Firefox..

I have tried to take the friendly URL tool out but I still get the same error.  In order to make the catalog work flawlesly, I would like to replace the ProductButtonImage code with a Get statement (inspired from the detailed product description template)  that looks like this:

<a href="<%#GetProductDetailUrl(((Product) Container.DataItem).Id)%>"><asp:Image ID="imgProductImage" runat="server" ImageUrl='<%#GetProductMediumImage(CurrentProduct.MediumImage)%>'   Enabled="false" /> </a>

I have tried this tag and a few other variation but unfortunately their is not function to get the product small image in the Gris List template.

I hope this clarifies my issue further.... I really appreciate all your support in trying to resolve this with me.

Best regards,

Eric

 

 

 

 
New Post 4/7/2008 4:30 AM
  AliCommerce
1056 posts
1st Level Poster


Re: Catalog Image Links 

To get the product small image, please try this:

GetPortalImageUrl((((Product) Container.DataItem).SmallImage),false)


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 4/7/2008 6:45 AM
  etorkia
19 posts
No Ranking


Re: Catalog Image Links 
Modified By AliCommerce  on 4/8/2008 3:14:35 AM)

Hi Frank:

Pure Genious!!! It worked like a charm and corrected all the issues I was having regarding the catalog.... Thanks a million!

By the way if you are still looking for some assistance to test 2.0....please let me know I would love to contribute to the evolution of this wonderful solution.

Best regard,

 Eric

 
New Post 4/8/2008 2:18 AM
  AliCommerce
1056 posts
1st Level Poster


Re: Catalog Image Links 

Happy to hear it works. Nice website and well done.


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
Previous Previous
 
Next Next
  Forum  Discuss AliComm...  Store UI: Theme...  Catalog Image Links
Copyright 2008 by CandoSuite Terms Of Use Privacy Statement