Could not find a valid price for the product with ID [XXX-139], not adding to cart.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Could not find a valid price for the product with ID [XXX-139], not adding to cart.

Tom-2



Hi,

I am working through the various tutorials to customise the ecommerce
application and have used the default web store, and setup a new
catalog, and I am trying to setup UK localization.

Currently I am getting the following messages for adding to the basket
for any products I have added;
"Could not find a valid price for the product with ID [XXX-139], not
adding to cart."

I found a couple of other threads with similar issues such as;
http://ofbiz.135035.n4.nabble.com/Could-not-find-a-valid-price-for-the-product-with-ID-XX-XXXX-not-adding-to-cart-td1589603.html

So I am under the impression that I have a localization or OUM
conversion issue.

I am using the default web site under /ecommerce/control/main which has
the default webSiteId "WebStore" configured... which has the existing
Store "9000" configured.

I have changed the localization for Store For: OFBiz E-Commerce Store
[ID:9000] to Default Currency Uom Id " British Pound GBP " and to
Default Locale String "en_GB"

I have created a new catalog, and a category, and a product. The product
has no UOM, or weight set, but has a price added like so;
Default Price     Purchase/Initial     British Pound [GBP]     Not
Applicable     2002-01-02 00:00:00.000 12

Is there some log file that I should be looking for to get a better
understanding of the processes that take place in order to add the
product to the basket?

Thanks
Tom







The console log is as follows;

      [java] 2012-01-01 23:58:09,410 (http-bio-/0.0.0.0-8080-exec-86)
[     ControlServlet.java:141:INFO ]
[[[additem(Domain:http://ec2-107-20-62-13.compute-1.amazonaws.com)]
Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
      [java] 2012-01-01 23:58:09,428 (http-bio-/0.0.0.0-8080-exec-86)
[    ConfigXMLReader.java:120:INFO ] controller loaded: 0.006s, 300
requests, 99 views in jndi:/0.0.0.0/ecommerce/WEB-INF/controller.xml
      [java] 2012-01-01 23:58:09,429 (http-bio-/0.0.0.0-8080-exec-86) [
ShoppingCartEvents.java:182:INFO ] adding item product XXX-139
      [java] 2012-01-01 23:58:09,430 (http-bio-/0.0.0.0-8080-exec-86) [
ShoppingCartEvents.java:183:INFO ] adding item parent product null
      [java] 2012-01-01 23:58:09,431 (http-bio-/0.0.0.0-8080-exec-86) [
ProductStoreWorker.java:481:INFO ] getSurvey for product titl-139
      [java] 2012-01-01 23:58:09,433 (http-bio-/0.0.0.0-8080-exec-86) [
ShoppingCartHelper.java:202:INFO ] carthelper productid XXX-139
      [java] 2012-01-01 23:58:09,434 (http-bio-/0.0.0.0-8080-exec-86) [
ShoppingCartHelper.java:203:INFO ] parent productid null
      [java] 2012-01-01 23:58:09,455 (http-bio-/0.0.0.0-8080-exec-86) [
ProductStoreWorker.java:481:INFO ] getSurvey for product XXX-139
      [java] 2012-01-01 23:58:09,456 (http-bio-/0.0.0.0-8080-exec-86)
[   ShoppingCartItem.java:582:WARN ] Could not find a valid price for
the product with ID [XXX-139], not adding to cart.
      [java] 2012-01-01 23:58:09,456 (http-bio-/0.0.0.0-8080-exec-86) [
ProductStoreWorker.java:481:INFO ] getSurvey for product XXX-139
      [java] 2012-01-01 23:58:09,457 (http-bio-/0.0.0.0-8080-exec-86)
[     RequestHandler.java:660:INFO ] Ran Event
[java:org.ofbiz.order.shoppingcart.ShoppingCartEvents#addToCart] from
[request], result is [error]
      [java] 2012-01-01 23:58:09,465 (http-bio-/0.0.0.0-8080-exec-86)
[     RequestHandler.java:443:ERROR] Request additem caused an error
with the following message: Could not find a valid price for the product
with ID [XXX-139], not adding to cart.
      [java] 2012-01-01 23:58:09,466 (http-bio-/0.0.0.0-8080-exec-86)
[     RequestHandler.java:762:INFO ] Rendering View [showcart],
sessionId=15766AD2F8490EEA60CB176C5F7CA8A4.jvm1
      [java] 2012-01-01 23:58:09,637 (http-bio-/0.0.0.0-8080-exec-86)
[      ScreenFactory.java:130:INFO ] Got 8 screens in 0.006s from:
file:/opt/ofbiz/specialpurpose/ecommerce/widget/CartScreens.xml
      [java] 2012-01-01 23:58:09,698 (http-bio-/0.0.0.0-8080-exec-86)
[      ScreenFactory.java:130:INFO ] Got 16 screens in 0.007s from:
file:/opt/ofbiz/specialpurpose/ecommerce/widget/CommonScreens.xml
      [java] 2012-01-01 23:58:09,791 (http-bio-/0.0.0.0-8080-exec-86) [  
ServiceDispatcher.java:604:INFO ] Sync service
[ecommerce/getVisualThemeResources] finished in [76] milliseconds with
response [{themeResources={shortcutIcon=/images/ofbiz.ico,
javaScripts={/images/jquery/jquery-1.7.min.js,
/images/jquery/plugins/validate/jquery.validate.min.js,
/images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js,
/images/jquery/ui/js/jquery-ui-1.8.16.custom.min.js,
/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-0.9.7.js,
/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js,
/images/selectall.js},
VT_FTR_TMPLT_LOC={component://ecommerce/webapp/ecommerce/includes/footer.ftl},
VT_HDR_IMAGE_URL={/images/ofbiz_logo.gif},
VT_HDR_TMPLT_LOC={component://ecommerce/webapp/ecommerce/includes/header.ftl},
VT_SCREENSHOT={/images/ecdefaulttheme.jpg},
VT_SHORTCUT_ICON={/images/ofbiz.ico},
VT_STYLESHEET={/ecommerce/images/blog.css, /images/ecommain.css,
/content/images/contentForum.css}}, responseMessage=success}]
      [java] 2012-01-01 23:58:09,845 (http-bio-/0.0.0.0-8080-exec-86)
[      ScreenFactory.java:130:INFO ] Got 37 screens in 0.008s from:
file:/opt/ofbiz/specialpurpose/ecommerce/widget/CatalogScreens.xml
      [java] 2012-01-01 23:58:10,042 (http-bio-/0.0.0.0-8080-exec-86)
[       ServerHitBin.java:627:INFO ] Visit delegatorName=default,
ServerHitBin delegatorName=default
      [java] 2012-01-01 23:58:10,045 (http-bio-/0.0.0.0-8080-exec-86)
[     ControlServlet.java:324:INFO ]
[[[additem(Domain:http://ec2-107-20-62-13.compute-1.amazonaws.com)]
Request Done- total:0.634,since last([additem(Domain:h...):0.634]]

Reply | Threaded
Open this post in threaded view
|

Re: Could not find a valid price for the product with ID [XXX-139], not adding to cart.

Tom-2
On 02/01/12 05:01, Tom wrote:
>
> Currently I am getting the following messages for adding to the basket
> for any products I have added;
> "Could not find a valid price for the product with ID [XXX-139], not
> adding to cart."


Ok, so setting the default currency for the ofbiz site fixed the problem
for the initial site;
currency.uom.id.default=GBP


However I presume that I would now have trouble if I wanted to add
another site with USD default...
Reply | Threaded
Open this post in threaded view
|

Re: Could not find a valid price for the product with ID [XXX-139], not adding to cart.

Jacques Le Roux
Administrator
In reply to this post by Tom-2
Try this http://ofbiz.markmail.org/search/?q=%22Could+not+find+a+valid+price+for+the+product+with+ID%22

Jacques

From: "Tom" <[hidden email]>

> Hi,
>
> I am working through the various tutorials to customise the ecommerce
> application and have used the default web store, and setup a new
> catalog, and I am trying to setup UK localization.
>
> Currently I am getting the following messages for adding to the basket
> for any products I have added;
> "Could not find a valid price for the product with ID [XXX-139], not
> adding to cart."
>
> I found a couple of other threads with similar issues such as;
> http://ofbiz.135035.n4.nabble.com/Could-not-find-a-valid-price-for-the-product-with-ID-XX-XXXX-not-adding-to-cart-td1589603.html
>
> So I am under the impression that I have a localization or OUM
> conversion issue.
>
> I am using the default web site under /ecommerce/control/main which has
> the default webSiteId "WebStore" configured... which has the existing
> Store "9000" configured.
>
> I have changed the localization for Store For: OFBiz E-Commerce Store
> [ID:9000] to Default Currency Uom Id " British Pound GBP " and to
> Default Locale String "en_GB"
>
> I have created a new catalog, and a category, and a product. The product
> has no UOM, or weight set, but has a price added like so;
> Default Price     Purchase/Initial     British Pound [GBP]     Not
> Applicable     2002-01-02 00:00:00.000 12
>
> Is there some log file that I should be looking for to get a better
> understanding of the processes that take place in order to add the
> product to the basket?
>
> Thanks
> Tom
>
>
>
>
>
>
>
> The console log is as follows;
>
>      [java] 2012-01-01 23:58:09,410 (http-bio-/0.0.0.0-8080-exec-86)
> [     ControlServlet.java:141:INFO ]
> [[[additem(Domain:http://ec2-107-20-62-13.compute-1.amazonaws.com)]
> Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
>      [java] 2012-01-01 23:58:09,428 (http-bio-/0.0.0.0-8080-exec-86)
> [    ConfigXMLReader.java:120:INFO ] controller loaded: 0.006s, 300
> requests, 99 views in jndi:/0.0.0.0/ecommerce/WEB-INF/controller.xml
>      [java] 2012-01-01 23:58:09,429 (http-bio-/0.0.0.0-8080-exec-86) [
> ShoppingCartEvents.java:182:INFO ] adding item product XXX-139
>      [java] 2012-01-01 23:58:09,430 (http-bio-/0.0.0.0-8080-exec-86) [
> ShoppingCartEvents.java:183:INFO ] adding item parent product null
>      [java] 2012-01-01 23:58:09,431 (http-bio-/0.0.0.0-8080-exec-86) [
> ProductStoreWorker.java:481:INFO ] getSurvey for product titl-139
>      [java] 2012-01-01 23:58:09,433 (http-bio-/0.0.0.0-8080-exec-86) [
> ShoppingCartHelper.java:202:INFO ] carthelper productid XXX-139
>      [java] 2012-01-01 23:58:09,434 (http-bio-/0.0.0.0-8080-exec-86) [
> ShoppingCartHelper.java:203:INFO ] parent productid null
>      [java] 2012-01-01 23:58:09,455 (http-bio-/0.0.0.0-8080-exec-86) [
> ProductStoreWorker.java:481:INFO ] getSurvey for product XXX-139
>      [java] 2012-01-01 23:58:09,456 (http-bio-/0.0.0.0-8080-exec-86)
> [   ShoppingCartItem.java:582:WARN ] Could not find a valid price for
> the product with ID [XXX-139], not adding to cart.
>      [java] 2012-01-01 23:58:09,456 (http-bio-/0.0.0.0-8080-exec-86) [
> ProductStoreWorker.java:481:INFO ] getSurvey for product XXX-139
>      [java] 2012-01-01 23:58:09,457 (http-bio-/0.0.0.0-8080-exec-86)
> [     RequestHandler.java:660:INFO ] Ran Event
> [java:org.ofbiz.order.shoppingcart.ShoppingCartEvents#addToCart] from
> [request], result is [error]
>      [java] 2012-01-01 23:58:09,465 (http-bio-/0.0.0.0-8080-exec-86)
> [     RequestHandler.java:443:ERROR] Request additem caused an error
> with the following message: Could not find a valid price for the product
> with ID [XXX-139], not adding to cart.
>      [java] 2012-01-01 23:58:09,466 (http-bio-/0.0.0.0-8080-exec-86)
> [     RequestHandler.java:762:INFO ] Rendering View [showcart],
> sessionId=15766AD2F8490EEA60CB176C5F7CA8A4.jvm1
>      [java] 2012-01-01 23:58:09,637 (http-bio-/0.0.0.0-8080-exec-86)
> [      ScreenFactory.java:130:INFO ] Got 8 screens in 0.006s from:
> file:/opt/ofbiz/specialpurpose/ecommerce/widget/CartScreens.xml
>      [java] 2012-01-01 23:58:09,698 (http-bio-/0.0.0.0-8080-exec-86)
> [      ScreenFactory.java:130:INFO ] Got 16 screens in 0.007s from:
> file:/opt/ofbiz/specialpurpose/ecommerce/widget/CommonScreens.xml
>      [java] 2012-01-01 23:58:09,791 (http-bio-/0.0.0.0-8080-exec-86) [  
> ServiceDispatcher.java:604:INFO ] Sync service
> [ecommerce/getVisualThemeResources] finished in [76] milliseconds with
> response [{themeResources={shortcutIcon=/images/ofbiz.ico,
> javaScripts={/images/jquery/jquery-1.7.min.js,
> /images/jquery/plugins/validate/jquery.validate.min.js,
> /images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js,
> /images/jquery/ui/js/jquery-ui-1.8.16.custom.min.js,
> /images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-0.9.7.js,
> /images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js,
> /images/selectall.js},
> VT_FTR_TMPLT_LOC={component://ecommerce/webapp/ecommerce/includes/footer.ftl},
> VT_HDR_IMAGE_URL={/images/ofbiz_logo.gif},
> VT_HDR_TMPLT_LOC={component://ecommerce/webapp/ecommerce/includes/header.ftl},
> VT_SCREENSHOT={/images/ecdefaulttheme.jpg},
> VT_SHORTCUT_ICON={/images/ofbiz.ico},
> VT_STYLESHEET={/ecommerce/images/blog.css, /images/ecommain.css,
> /content/images/contentForum.css}}, responseMessage=success}]
>      [java] 2012-01-01 23:58:09,845 (http-bio-/0.0.0.0-8080-exec-86)
> [      ScreenFactory.java:130:INFO ] Got 37 screens in 0.008s from:
> file:/opt/ofbiz/specialpurpose/ecommerce/widget/CatalogScreens.xml
>      [java] 2012-01-01 23:58:10,042 (http-bio-/0.0.0.0-8080-exec-86)
> [       ServerHitBin.java:627:INFO ] Visit delegatorName=default,
> ServerHitBin delegatorName=default
>      [java] 2012-01-01 23:58:10,045 (http-bio-/0.0.0.0-8080-exec-86)
> [     ControlServlet.java:324:INFO ]
> [[[additem(Domain:http://ec2-107-20-62-13.compute-1.amazonaws.com)]
> Request Done- total:0.634,since last([additem(Domain:h...):0.634]]
>