myshop-control:quantity-update

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

This extension creates an input field for the current productline, in which the user can enter a different quantity for the current product.
Use myshop-action:update-product to set the entered product quantity.

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 the use of the input field method for changing the quantity 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