"Add to Cart" problem |
Post Reply | Page <12 |
Author | |
Matt
Moderator Group Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
|
Hi Katharina,
The code I posted works on our v4 SP3 demo store. You replaced the product details variable with the hard coded page name. It is fine, but it will not work with the SEO module. |
|
katharina
Senior Member Joined: 25-October-2005 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Well, that is way beyond my ASP knowledge. Newer learned ASP, just C over 15 years ago. I just looked at the code in the pcShowProductH.asp file you mentioned and kind of copied it. Simply tried to make sense out of what I saw. It's version 3.51. Perhaps someone else can give a better code segment. For now I'm happy, because there is no fake button which returned be back to the category. Which makes the customer wonder what is going on. Now it goes to the product details page, and gives the apparel choices. It looks better that way on the site, and I don't get confused customers.
|
|
Katharina
******************* www.GermanPlaza.com ******************* |
|
Matt
Moderator Group Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
|
I should have clarified the code I posted was for v4. You did good adjusting it for v3. Just note it will need updated for the SEO module (for anyone using that)
|
|
katharina
Senior Member Joined: 25-October-2005 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Matt, I leave it up to you guys to post it into the WIKI. I think a lot of PC users will like this simple adjustment. Besides, you are the one that posted the original fix. I just tweaked it a little. Thanks for pointing me into the right direction if the first place. I'm just so happy right now, and no more dump calls or emails asking when the items are back in stock. Crazy that a little visual missing image can cause so much confusion among shoppers.
|
|
Katharina
******************* www.GermanPlaza.com ******************* |
|
katharina
Senior Member Joined: 25-October-2005 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Just noticed that this code works only in FF, but not in IE. Any ideas?
http://www.germanplaza.com/productcart/pc/viewCategories.asp?idCategory=297 The idea is to have the add to cart on all products, even the apparel add ons. This is so the customer does not think an item is out of stock, because they do not see the add to cart button. Items without apparel add on will add the item directly to the cart, and the ones with apparel add on will go to the details page first. Below is the code used: Find: <% If pcf_AddToCart(pIdProduct)=True Then %><p class="pcShowProductLink"><a href="instPrd.asp?idproduct=<%=pIdProduct%>"><img src="<%=rslayout("add2")%>" alt="<%=dictLanguage.Item(Session("language")&"_altTag_2")& pDescription %>"></a></p><% End If %> Replace with: <% If pcf_AddToCart(pIdProduct)=True Then %><a href="instPrd.asp?idproduct=<%=pIdProduct%>"><img src="<%=rslayout("add2")%>" alt="<%=dictLanguage.Item(Session("language")&"_altTag_2")& pDescription %>"></a></p> <% Else %> <p class="pcShowProductLink"><a href="viewPrd.asp?idproduct=<%=pIdProduct%>&idcategory=<%=pIdCategory%>" <img src="<%=rslayout("add2")%>" alt="<%=dictLanguage.Item(Session("language")&"_altTag_2")& pDescription %>"></a></p> <% End If %> Katharina |
|
Katharina
******************* www.GermanPlaza.com ******************* |
|
Matt
Moderator Group Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
|
Your missing the closing tag on the link (in red below)
<% If pcf_AddToCart(pIdProduct)=True Then %><a href="instPrd.asp?idproduct=<%=pIdProduct%>"><img src="<%=rslayout("add2")%>" alt="<%=dictLanguage.Item(Session("language")&"_altTag_2")& pDescription %>"></a></p> <% Else %> <p class="pcShowProductLink"><a href="viewPrd.asp?idproduct=<%=pIdProduct%>&idcategory=<%=pIdCategory%>"> <img src="<%=rslayout("add2")%>" alt="<%=dictLanguage.Item(Session("language")&"_altTag_2")& pDescription %>"></a></p> <% End If %> |
|
katharina
Senior Member Joined: 25-October-2005 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
That surly did it. Thanks for the fast help.
|
|
Katharina
******************* www.GermanPlaza.com ******************* |
|
Post Reply | Page <12 |
Tweet
|
Forum Jump | Forum Permissions 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 |