?
Solved

WooCommerce product page missing Add to Cart / Sign Up Now button

Posted on 2014-07-10
9
Medium Priority
?
458 Views
Last Modified: 2014-07-21
Running WooCommerce on this page:
http://www.thedailytea.com/subscriptions/

The two Read More buttons should say Sign Up Now. Clicking the image, title or price should go to the product details page, as it does now. But even if I click through to the details, there still is no way to add that item/subscription to my order.

I don't know why those two products would be different from the others. I went through the products in the admin area and couldn't see anything different. For example, the "3 year digital+the daily tea guide subscription" on the site works perfectly, but the "1 year" and "2 year" versions I cannot add to my cart.

I'm relatively new to WooCommerce and not sure where to look. Would really appreciate any advice!
Thanks.
0
Comment
Question by:bbdesign
  • 6
  • 3
9 Comments
 
LVL 27

Expert Comment

by:lenamtl
ID: 40190555
Hi,

I was able to add 1 year to the cart so I guess you have solved the problem...
0
 

Author Comment

by:bbdesign
ID: 40190683
How did you do that? I am looking at this product:

1 year [Digital + The Daily Tea Guide] Subscription
$24.99 / year

Don't see "add to cart" there.
0
 
LVL 27

Expert Comment

by:lenamtl
ID: 40191015
I think on the first page the button signup... doesn't show up because of the template, the code is probably missing.

On details product  I clicked on Signup Now button and it's added it to the cart

Now the site is very slow I cannot go back to verify.

Which template are you using ?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:bbdesign
ID: 40191595
This must be related to the database. We duplicated the working product, and that is fine. I am combing through the Posts and Posts Meta tables trying to figure this out. There is nothing different about the products in the admin area. Very frustrating. Everyone on the pages is handled by WooCommerce, so it has to be a setting or something in the DB.
0
 

Author Comment

by:bbdesign
ID: 40191622
I can't find any differences in Posts or Posts Meta. Wondering if anyone is aware of any other tables I should be look at, that WooCommerce uses for these things?
0
 
LVL 27

Expert Comment

by:lenamtl
ID: 40192222
The url is not set the same way, you have to change the a href to make it work.

The working one
<a href="/subscriptions/?add-to-cart=1572" rel="nofollow" data-product_id="1572" data-product_sku="" class="button add_to_cart_button product_type_subscription">Sign Up Now</a>
</li>

Open in new window



Not working one
<a href="http://www.thedailytea.com/product/1-year-digital-bookazine-subscription/" rel="nofollow" data-product_id="1806" data-product_sku="" class="button  product_type_subscription">Read More</a>
</li>

Open in new window

0
 

Author Comment

by:bbdesign
ID: 40192230
Right, but WooCommerce is generating that code. I am trying to figure out why they are different.
0
 

Accepted Solution

by:
bbdesign earned 0 total points
ID: 40199463
We believe this is a bug in WooCommerce Subscriptions. We changed products from "Limit To One Of Any Status" to "Limit To One Active Subscription" and now all three products are visible. If the user is not logged in, the setting should not matter. See: http://docs.woothemes.com/document/subscriptions/store-manager-guide/#limit-subscription

This was a nightmare to figure out. I hope posting this helps someone else one day.
0
 

Author Closing Comment

by:bbdesign
ID: 40208470
Found solution.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question