I’m setting up SimpleCart which is going pretty well so far. Paypal sandbox checkout works and I’m finding SC pretty easy to work with in general.
I have come up against one issue so far that i can’t figure out…
- The ‘add to cart’ button on the category page is not updating the cart. I have tested this just using the SC chunks and still can’t get it to work.
My form part of the scProductOverviewItem chunk is:
[[!scAddProduct]] <form action="[[~[[*id]]]]" method="post"> <div> <input type="hidden" name="productid" value="[[+id]]" /><!-- not needed on product detail pages itself --> <div class="row"> <div class="two columns"> <input type="text" name="quantity" value="1" /> </div> <div class="nine columns offset-by-one"> <input type="submit" name="addcart" value="Add to Cart" /> </div> </div> </div> </form>
The above chunk is being called from a Categories template like this:
menuindex ASC, id
- I also want to change a few things on the form and elsewhere on the site. For instance i want to change ‘zipcode’ on the form to the UK ‘postcode’. Can i just change this on the form or do i need to make the change elsewhere?
I also want to change some of the text, eg the word ‘Contribute’ that displays on the cart page…do i change this in the lexicon file? And if so will this get overwritten upon upgrade?
Apologies if i’m overlooking any information in the SC docs…please feel free to point me to the correct page if i have.
Thanks for any help