To make TC webshop from demo kit is (almost) piece of cake :) but I need to make small webshop in current umbraco content, so I cant use demo shop...
I have made Product and CartStep doc types, based on demo shop. In Product template I want (for now) use only TC JS API, so I have bind a function to a button:
@MrFlo, Thank you for help. I have added this storepicker and It seems to be it. I'll check it better on Monday, and then check your answer as a solution :)
Webshop from scratch - Internal Server Error
Hi,
To make TC webshop from demo kit is (almost) piece of cake :) but I need to make small webshop in current umbraco content, so I cant use demo shop...
I have made Product and CartStep doc types, based on demo shop. In Product template I want (for now) use only TC JS API, so I have bind a function to a button:
jQuery("#rhAddToCart").click(function() {
TC.addOrUpdateOrderLine(
{storeId:1,
productIdentifier:1637,
quantity:1,
async: false
});
This 1637 is actual product NodeId.
Question: Do I need to create order first?
Problem: TC.addOrUpdateOrderLine throws error:
POST http://XXXX/base/TC/FormPost.aspx 500 (Internal Server Error)
in jquery...
I am aware, that it may be not enough information, but any help will be appreciated.
Kind regards
Thomas
Hi,
I had the same problem, check if you have added a storepicker on your doc type with the alias "store" at your root node.
Also check the log to have more information about the error.
Florent
Edit: Umbraco 6.1.6, TeaCommerce 2.2.1
@MrFlo, Thank you for help. I have added this storepicker and It seems to be it. I'll check it better on Monday, and then check your answer as a solution :)
Have a nice weekend
Kind regars
Thomas
Could you check my answer if it was the solution ;-)
Cheers
I could but I can't. By mistake I have clicked in my post (why is it possible?), and now I can't (or I don't know how to) "uncheck" it...
But YES, you were right!
Regards
Thomas
is working on a reply...