Print Page | Close Window

"Add to Cart" problem

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=3595
Printed Date: 18-May-2024 at 8:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: "Add to Cart" problem
Posted By: katharina
Subject: "Add to Cart" problem
Date Posted: 05-April-2010 at 1:34pm
We are having issues with people thinking that items are out of stock when used as an apparel add on.  We have apparel add on and normal items on the site.  Normally you see two buttons: "More Details" and "Add to Cart".  You do not see this when the item is an apparel add on item.  Then you only see "More Details", but not the "Add to Cart" button.  This leads our customers to think the item is out of stock.  They call or email inquiring as when it will be back in stock.  We wonder how many don't even do that and just walk away.  I've replace the "More Details" button with "Ordering Details".  This may reduce the issue, but I'm not sure if it will fix it.  Another problem I have is that I do not know the font nor the color, so it does not look 100% like the rest.  It would be nice, if that information would be available on the support site.  An ideal solution would be to have the "Add to Cart" button present, but just link to the detail page on the apparel add on items, while the rest functions as usual.  That way the customer does not get confused in the first place. 



-------------
Katharina
*******************
www.GermanPlaza.com
*******************



Replies:
Posted By: Guests
Date Posted: 05-April-2010 at 2:50pm
Hi Katharina,

The technical issue here is that (by definition) apparel products require customers to make at least one option selection before they can add a product to cart, so that's why PC doesn't show the button on these products.

I agree with you that it confuses customers and have heard this from others.

I think the more nuanced approach might be to show a "Buy Now" button if the product can be ordered directly from any page (i.e. no options to be selected), otherwise show "Add to Cart" button, which would behave just like the "More Details" button, but the redundancy there would have psychological value, if not functional value.

This would be a very simple modification. Perhaps EI will consider it for v4.1.


Posted By: katharina
Date Posted: 05-April-2010 at 2:56pm
I figured that it is an easy modification.  I think the "Add to Cart" button for both incidents would be fine.  Have one add the item directly to the cart, and have the other do the same as "Mode Details" button.  This will give a consistent look and yet not hurt the option selection.  I wish I could find the section in the code for the button links and do it myself.  Perhaps EI can give the line of code to be modified for those that like to have it that way on their site.  I'm sure that can be posted in less then 5 minutes.

-------------
Katharina
*******************
www.GermanPlaza.com
*******************


Posted By: Matt
Date Posted: 05-April-2010 at 3:18pm
If you search the code for "pcf_AddToCart" (the function that decides if a product is "buy now" eligible) you will find 11 files.  Each of those files is slightly different and needs different adjustments.

However, the general idea is to add an "Else" statement.  Here is an example using the horizontal product view "pcShowProductH.asp".

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 %>
            <p class="pcShowProductLink"><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="<%=pcStrPrdLink%>"><img src="<%=rslayout("add2")%>" alt="<%=dictLanguage.Item(Session("language")&"_altTag_2")& pDescription %>"></a></p>
        <% End If %>





Posted By: ProductCart
Date Posted: 05-April-2010 at 3:32pm
Also remember that if you believe that the "Quick Buy" button is creating confusion, it can be turned off with 1 click in the Control Panel. When you do so, customers will go through the product details page for all products.



-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: joshs
Date Posted: 07-April-2010 at 3:44pm
Sean and I have spoken about this a couple of times.

I was able to find a definite correlation between that missing "add to cart" button and sales.

On a couple of items we added some options or apparel sub-products and the sales completely stopped.

Once we put a fakie "add to cart" button back on the sales resumed.


Posted By: Greg Dinger
Date Posted: 07-April-2010 at 3:49pm
what is a "fake" button?

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: katharina
Date Posted: 07-April-2010 at 3:52pm
I guess one that links you to the product details page.  PC needs it.

-------------
Katharina
*******************
www.GermanPlaza.com
*******************


Posted By: joshs
Date Posted: 07-April-2010 at 3:53pm
"add to cart" linked to the viewprd.asp instead of the instprd.asp.

Fakie because the customer assumes it will function like the rest of the add to cart buttons.


Posted By: katharina
Date Posted: 07-April-2010 at 4:14pm
Matt, thanks for the code.  It was almost right.  I did change it a little bit, and it works.  That's from someone who does not know ASP.  LOL  So now when you have apparel add one products you will see a link from the "Add to cart" image to the product details page.  That will fix the issue of customers thinking the items are out of stock, since it shows an add to cart button.  Can someone please confirm that the code is correct from it's syntax.  It does work so I think it is ok.

However, the general idea is to add an "Else" statement.  Here is an example using the horizontal product view "pcShowProductH.asp".

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
*******************
www.GermanPlaza.com
*******************


Posted By: Matt
Date Posted: 07-April-2010 at 4:20pm
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.


Posted By: katharina
Date Posted: 07-April-2010 at 4:26pm
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
*******************


Posted By: Matt
Date Posted: 07-April-2010 at 4:31pm
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)


Posted By: katharina
Date Posted: 07-April-2010 at 4:54pm
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
*******************


Posted By: katharina
Date Posted: 28-April-2010 at 3:43pm
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 - 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
*******************


Posted By: Matt
Date Posted: 28-April-2010 at 3:51pm
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 %> 


Posted By: katharina
Date Posted: 28-April-2010 at 4:00pm
That surly did it.  Thanks for the fast help. 



-------------
Katharina
*******************
www.GermanPlaza.com
*******************



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net