This plugin lets you price a product by a length entered by the customer. The customer types the length they want in a custom field, and HikaShop multiplies the unit price by that length, both in the cart and on the order. It is ideal for products sold by the metre, such as fabric, cable, timber or trim.
Features
Multiplies the product price by the length the customer enters.
Works in the cart and is kept consistent on the final order.
Accepts decimal lengths typed with either a comma or a dot as the decimal separator (for example 2,5 or 2.5).
No configuration: it activates as soon as a product has the length custom field filled in.
Installation
1) Download the Custom Quantity plugin from our website.
2) Install it on your Joomla website via the extension manager (Extensions > Manage > Install).
3) Enable the plugin in Extensions > Plugins (search for "Custom Quantity").
4) In HikaShop, go to Display > Custom fields, create a product field and set its column name to exactly "ordered_length". Any other column name is ignored by the plugin.
5) Edit your products and fill in the length field as needed.
Use
This plugin is compatible with all the editions of HikaShop
Compatible with PHP 7.4 minimum
Compatible with Joomla and WordPress
No limit of time
No limit of use
Changelog
1.0.1 on the 12th of June 2026
Fixed the price calculation when the length is entered with a comma as the decimal separator: a value like 2,5 is now read as 2.5 instead of being truncated to 2.
1.0.0
Initial release of the plugin.
Free
The add to cart button will appear once you select the values above