Add to cart issue-new customer have an issue of adding items in cart for the first time

Jira Code: SCL-162

Description-
ISSUE
When a new customer register from the website and when they are trying to add an item to cart for the first time , an error modal displays showing, “Sorry, there is a problem with this Item and can not be purchased at this time”.But the item will be added to cart.This issue will be showing only for the first time of adding to cart.After that we can add the items to the cart without any error message showing .

SITES THAT SHOW THE ISSUE
Site which have multi subsidiary are having this issue.The sites which we found this issue were,
1. Test gauge(http://scasb.shopbackflow.com/)


Solutions we tried
We checked for the instance where this issue may happen.The instances we checked are listed below and how to check that is also listed below
1.  This may be caused by the item having a Minimum Quantity set but the Minimum Quantity field is not defined in the appropriate field set.

  1. Go to Setup > SuiteCommerce Advanced > Set Up Web Site
  2. Click Edit next to the SuiteCommerce Advanced site to be modified
  3. Click the Field Sets subtab
  4. Under the Name column, look for Search
  5. Click the Fields Included in Field Set column for Search
  6. Click the Set button next to the Fields Included in Field Set field. A pop-up window should open the Field Set page
  7. On the Field Set page, add Minimum Quantity from the list
  8. Click Submit. This should close the Field Set page
  9. Click OK under Search
  10. Click Save on the web site record

2. This may be occured when the fieldset tab is not filled properly
  a. Navigate to Setup > SuiteCommerce Advanced > Setup Website.
      b.  Click on the Field Sets tab. 

       c. In the Details Fieldset, make sure that the following fields have been selected:

         –itemid: Name

        –internalid: Internal ID

        –itemtype: Type

       –isinstock: In Stock

       –ispurchasable: Available for Purchase

       –isbackorderable: Available for Backorder

         –showoutofstockmessage: Display Out-of-Stock Message

     d. Click Save.
We checked for these two instances ,but the field set was properly added and the minimum quantity field was defined  appropriately in the field set.
So we tried for another solution,


Solution that worked
New customers registering on your website are assigned a default customer role that you specify. In a OneWorld account, the corresponding subsidiary must be defined on the default customer role.

  1. Go to Setup > Company > Preferences > General Preferences.
  2. Find the Default Role for New Customers field. Remember the role selected here.
  3. Go to Setup > Users/Roles > User Management > Manage Roles.
  4. On the list of roles, find the role that is selected as the default role for new customers from Step 2. Click the link to view the values in the Subsidiaries list. All subsidiaries that have web stores should be selected. You can click Customize to update the role.

NOTE: If the subsidiary is not defined on the default customer role, then information such as shipping options may not be available to the customer.

Leave a comment

Your email address will not be published. Required fields are marked *