I'm building a VERY simple store setup to demonstrate its capabilities to a client. I setup a quick and dirty EE site, added Structure, Wygwam and Store. EE and all the add-ons are current versions. I then created my field types, my product channel, and linked the two. I added a store home page in Structure and told it to use the store_example/index template. I added a single product then went to the site. So far so good. I went to the product page, clicked on add to cart and nothing appears in the sidebar cart after the page reloaded. Is there some step I've missed or a reason why my add to cart button wouldn't work?Remember, these are the default templates that are installed with Store, I haven't changed anything other then that main navigation on top. and linked to a common bootstrap.css file.
UPDATE: I'm not sure how relevant this is but I started looking at other Store examples on the web and I noticed that the exp:store:product tag was outputting a form tag with an action. Mine is missing the action parameter for some strange reason.
UPDATE 2: .htaccess file contents:
# remove index.php
RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
# EE 404 page for missing pages
ErrorDocument 404 /index.php/site/404
# remove www
# RewriteCond %{HTTP_HOST} ^example.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
The removal of index.php is from the documentation for Structure and has worked for all sites I've ever built with it. The 404 was added recently due to EE not working without it. I never could figure out why. The removal of www is commented out because this is a test site.
Commenting out the removal of index.php and updating my $config['site_index'] does work but I'd like to be able to remove index.php from the URLs.