Page 1 of 1

Unable to add item to cart

Posted: Thu Mar 26, 2015 8:39 pm
by Swamy K
Hi Team,

I have gone through the getting started guide and able to browse the pages in site.
Here is mu scenario.
1 .Logged into admin portal as a admin user.
2 .Created new category called "Women"
3 . Created new product called "Accessories"
4 . Added skus under product options.
5 . Able to see the product on the site.

Here are few issues i am facing.
1 . How can i browse skus?
2 . When i restart my server the is not available in admin tool.
3 . While adding product to the cart the below exception getting displayed.

java.lang.IllegalArgumentException: The requested skuId of 9950 is no longer active
[artifact:mvn] at org.broadleafcommerce.core.order.service.workflow.add.ValidateAddRequestActivity.execute(ValidateAddRequestActivity.java:117)
[artifact:mvn] at org.broadleafcommerce.core.workflow.SequenceProcessor.doActivities(SequenceProcessor.java:77)
[artifact:mvn] at org.broadleafcommerce.core.order.service.OrderServiceImpl.addItemWithPriceOverrides(OrderServiceImpl.java:565)
[artifact:mvn] at org.broadleafcommerce.core.order.service.OrderServiceImpl.addItem(OrderServiceImpl.java:537)
[artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[artifact:mvn] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[artifact:mvn] at java.lang.reflect.Method.invoke(Method.java:606)


Please suggest me where i have gone wrongly?

Re: Unable to add item to cart

Posted: Mon Mar 30, 2015 11:49 pm
by phillipuniverse
1. How can i browse skus?


You can't at this point, you should get to a Product first and then get to the Skus from there. In the DemoSite, this works by selecting different product options on the product page (like for shirts).

2 . When i restart my server the is not available in admin tool.


What's not available?

3 . While adding product to the cart the below exception getting displayed.


Check to see if you have set, at a minimum, an active start date for the Sku.

Re: Unable to add item to cart

Posted: Fri Apr 03, 2015 11:44 am
by Swamy K
Thanks phillipuniverse .

Now i am able to browse all the pages and able to add the items to my cart.Finally i was able to place orders also.

After the above exercise I am trying to migrate the HSQLDB to MySQL db.Unfortunately i couldnt find any documentation in getting started guide.
Could you please help how can i proceed further.

Re: Unable to add item to cart

Posted: Fri Apr 03, 2015 1:46 pm
by phillipuniverse

Re: Unable to add item to cart

Posted: Fri Apr 03, 2015 11:54 pm
by Swamy K
Thanks Phillip,

I have gone through documentation and done the respective configuration changes.Now i am able to browse the site and checkout the order also.
I noticed that whenever i stopped the server,the catalog and data being removed from my schema.How can i avoid this ?Please guide me?