You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/09/28 12:13:00 UTC

[jira] [Commented] (OFBIZ-11970) Add to cart is not working for products with selectable features

    [ https://issues.apache.org/jira/browse/OFBIZ-11970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421354#comment-17421354 ] 

ASF subversion and git services commented on OFBIZ-11970:
---------------------------------------------------------

Commit 20e00c82a3950e413395cdfd7e79a424ec9178f4 in ofbiz-plugins's branch refs/heads/trunk from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=20e00c8 ]

Fixed: Add to cart is not working for products with selectable features (OFBIZ-11970)

Two issues were present, first was due to incorrect markup and the second was due to ajax request and response view of the additem request.
In additem request last saved view or the view of the last request is rendered on successful operation and in this case the last request/view is the one which is used to render UOM dropdown.

Thanks: Akash Jain and Ravi Lodhi


> Add to cart is not working for products with selectable features
> ----------------------------------------------------------------
>
>                 Key: OFBIZ-11970
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11970
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ecommerce
>    Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>            Reporter: Ravi Lodhi
>            Assignee: Nicolas Malin
>            Priority: Major
>         Attachments: addToCartProductWithVariantExplosionError.png
>
>
> Issue-1: Steps to regenerate:
> 1. Visit the [https://demo-trunk.ofbiz.apache.org/ecommerce/control/main].
>  2. Select the "Giant Widget with feature explosion" from the Popular Categories section on home page. You will be redirected to product detail page.
>  3. Select color and size from the respective dropdowns and click on Add To Cart button.
>  4. Product is not getting added in cart.
> Error on browser console:
> {code:java}
> getJs?name=ProductDetail:52 Uncaught TypeError: Cannot read property 'value' of undefined
>  at addItem (getJs?name=ProductDetail:52)
>  at <anonymous>:1:12
> addItem @ getJs?name=ProductDetail:52
> (anonymous) @ VM1370:1
> {code}
>  
>  
> Expected: Product should be added successfully.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)