|
The new v1.72 plugin accepts an array of parameters, all made to make your life easier. A parameter is given to the plugin in its call like this { simplecaddy code=abc123} here “code” is the parameter, and “abc123” is the value of that parameter. The current parameters accepted by the plugin are as follows: - code – the product code (mandatory)
- defqty - default qty set in qty edit box, a user can override this but at least an indication is given as to how many items should be ordered
- minqty – minimum quantity to order. Less than this minimum, an order will not be added to the cart. This has to be used in conjunction with the “Check minimum quantity” in the SimpleCaddy Configuration screen in order to be checked at all times. A user will have to maintain the minimum quantity in the cart for it to be valid.
- qties – a string of quantities. Set like 5,10,15,25,30,50. If this parameter is set the textbox for the quantity is replaced by a dropdown list with these quantities.
- checkoos – Check Out Of Stock. If set to “1” (one), SimpleCaddy will check if the user can add this item to the cart. If there is 0 in stock then the button is disabled and a message SC_OUT_OF_STOCK is displayed. The real message on your site can be set in the plg_simplecaddy.ini language file
More parameters will be added soon, notably a “name=” parameter for use in conjunction with Phoca Gallery
|