myshop-action:update-product

Entity Value
Attribute(s) style
Type action
Relation document
Context document:basket, myshop-repeat:basket

Activates the entered quantity from myshop-control:quantity-update.

See also: ShoppingCart.

Example

   <tr class="myshp_basket_product" style="myshop-repeat:basket;">
        <td class="myshp_basket_product_name"><span style="myshop-value:product-id"></span></td>                                                
        <td class="myshp_basket_product_description" style="myshop-value:description;" colspan="2"></td>
        <td class="myshp_basket_product_quantity"><span style="myshop-value:quantity;"></span></td>
        <td class="myshp_basket_product_unitprice"><span style="myshop-value:price-formatted;"></span></td>
        <td class="myshp_basket_product_totalprice"><span style="myshop-value:price-line-total-formatted;white-space:nowrap"></span></td>
        <td class="myshp_basket_product_controls">
                <span class="myshp_basket_product_update">
                        <input style="myshop-control:quantity-update"/>
                        <a style="myshop-action:update-product" href="javascript:void(0);"><span style="myshop-resource:change">wijzig</span></a>
                </span>
                <span class="myshp_basket_product_delete">
                        <a style="myshop-action:remove-product" href="javascript:void(0);"><span style="myshop-resource:remove">verwijder</span></a>
                </span>
        </td>
    </tr>

Line 9 and 10 show how to use the input field method for changing the quantity of a product in the shoppingcart.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment