[Skip to main content](#vessel-content)

#   Price per square meter

##

- **[jswhika](/forum/user/38020-jswhika "View jswhika's Profile")**
- [![jswhika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38020-jswhika "View jswhika's Profile") Topic Author
- [ Offline](/forum/user/38020-jswhika)

Less More

- Posts: 1
- Thank you received: 0
-
-

11 years 3 months ago [\#208456](#208456) by [jswhika](/forum/user/38020-jswhika "View jswhika's Profile")  *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#208456 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")* was created by *[jswhika](/forum/user/38020-jswhika "View jswhika's Profile")*

-- HikaShop version -- : 2.5.0.
-- Joomla version -- : 3.4.3.
-- PHP version -- : 5.4.36
-- Browser(s) name and version -- : chrome

Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton).
It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 3 months ago -  11 years 3 months ago [\#208462](#208462) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#208462 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hello,
You can sell you products per m2 by creating product per m2, but another solution can be to use the following plugin, and create a "width" and "length" custom ITEM fields which will be used with that plugin. So your that your customers will just have to set a width/length and the price will be automatically calculated.

Last edit: 11 years 3 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[drfenning](/forum/user/31596-drfenning "View drfenning's Profile")**
- [![drfenning's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31596-drfenning "View drfenning's Profile")
- [ Offline](/forum/user/31596-drfenning)

Less More

- Posts: 31
- Thank you received: 2
-
-

10 years 6 months ago -  10 years 6 months ago [\#239304](#239304) by [drfenning](/forum/user/31596-drfenning "View drfenning's Profile")  Replied by *[drfenning](/forum/user/31596-drfenning "View drfenning's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#239304 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Can you share a link on how to do this to calculate price? I need it in yards and 1/4 yard increments for fabric. I do not see how the client can insert a numerical value to calculate the price:

[ zigzagsewingstudio.com/index.php/shop/fa...uct/104-test-product](http://zigzagsewingstudio.com/index.php/shop/fabrics-by-brand/product/104-test-product)

Last edit: 10 years 6 months ago by [drfenning](/forum/user/31596-drfenning "View drfenning's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 6 months ago [\#239317](#239317) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#239317 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hi,

As mentioned by Mmohamed Thelji to use this plugin, you have to create custom item fields and display them on frontend.
Then once the plugin enabled it will calculate the price based on the values filled by the customer for these fields.

But the customer will be able to set any values, so if you need the calculation in yards and with an increment by 1/4 it will require custom code. If you are not a developer, you can post a request in the commercial jobs section of this forum or contact a third developer.
Here is the developer documentation: [ www.hikashop.com/support/documentation/6...r-documentation.html](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")**
- [![info@flashpoint.net.au's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")
- [ Offline](/forum/user/12203-info-flashpoint-net-au)

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 5 months ago [\#241734](#241734) by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")  Replied by *[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#241734 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

I have installed the suggested plugin for calculating width x length and enabled it, however I cannot find any options for this on my products page. I am using Hikashop Starter. Do I need to upgrade to get this functionality? Also, is there any documentation on how to use the plugin?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

10 years 5 months ago [\#241753](#241753) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#241753 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hi,

You need to create two custom fields of the table "item" via the menu Display&gt;Custom fields named "width" and "length". This requires the Business edition of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")**
- [![info@flashpoint.net.au's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")
- [ Offline](/forum/user/12203-info-flashpoint-net-au)

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 5 months ago [\#241791](#241791) by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")  Replied by *[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#241791 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Damn, I've just bought the Essential package thinking all I needed was Product Options... need to upgrade already! ![:(](/media/kunena/emoticons/22.png ":(")

Thank Nicolas ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")**
- [![info@flashpoint.net.au's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")
- [ Offline](/forum/user/12203-info-flashpoint-net-au)

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 5 months ago -  10 years 5 months ago [\#241794](#241794) by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")  Replied by *[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#241794 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Is there any documentation for this plugin?

Since upgrading to Business the ability to select the fields in the Product details seems to have vanished and is now replaced with this...
[ ![custom.jpg](/forum/attachment/31805) ](/forum/attachment/31805 "custom.jpg")

- [ ![custom.jpg](/forum/attachment/31805) ](/forum/attachment/31805 "custom.jpg") [ ](/forum/attachment/31805?download=1 "custom.jpg")

Last edit: 10 years 5 months ago by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

10 years 5 months ago [\#241810](#241810) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#241810 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hi,

There are two lines written in our FAQ but that's all you need. The plugin needs to be enabled with two custom item fields "width" and "length" configured to be displayed on the product page.
It's normal that you don't see them in the backend edition page of the product since they're supposed to be displayed on the frontend product page.

We've changed the custom fields display settings in the latest version. So if you have a problem with their display, try downloading again the install package of HikaShop on our website and install it on yours (in order to get the latest patches), and then edit the settings of the field and check that the display settings are correct, and save them.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")**
- [![info@flashpoint.net.au's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")
- [ Offline](/forum/user/12203-info-flashpoint-net-au)

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 2 months ago [\#248617](#248617) by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")  Replied by *[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#248617 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hi,

I have upgraded to both Joomla 3.6.2 and HikaShop Business 2.6.3 and the custom_quantity_width_length plugin no longer works?

Notice: Undefined property: stdClass::$length in /home/hpshutters/public_html/components/com_hikashop/views/product/tmpl/show_block_custom_item.php on line 14

Is there an update for this plugin or is it some other problem?

[ www.hpshutters.com.au/order-online](http://www.hpshutters.com.au/order-online)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")**
- [![info@flashpoint.net.au's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")
- [ Offline](/forum/user/12203-info-flashpoint-net-au)

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 2 months ago [\#248618](#248618) by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")  Replied by *[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#248618 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Sorry... the plugin still appears to work as far as doing the calculations, but the default values have vanished and the error message appears twice immediately above the width/length custom fields!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 2 months ago [\#248620](#248620) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#248620 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hello,

Your issue doesn't seem to come from the plugin but probably from a view's customization (the "show_block_custom_item" file of the "product" view of your front-end template that you can check via "Hikashop-&gt;Display-&gt;Views").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")**
- [![info@flashpoint.net.au's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")
- [ Offline](/forum/user/12203-info-flashpoint-net-au)

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 2 months ago -  10 years 2 months ago [\#248789](#248789) by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")  Replied by *[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#248789 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

OK... I have checked the view's customization, however I don't really know what I'm looking at!!! Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.6.3 * @author hikashop.com * @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;div id="hikashop_product_custom_item_info" class="hikashop_product_custom_item_info"&gt; &lt;table width="100%"&gt; &lt;?php foreach ($this-&gt;itemFields as $fieldName =&gt; $oneExtraField) { $itemData = JRequest::getString('item_data_' . $fieldName, $this-&gt;element-&gt;$fieldName); ?&gt; &lt;tr id="hikashop_item_&lt;?php echo $oneExtraField-&gt;field_namekey; ?&gt;" class="hikashop_item_&lt;?php echo $oneExtraField-&gt;field_namekey;?&gt;_line"&gt; &lt;td class="key"&gt; &lt;span id="hikashop_product_custom_item_name_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;" class="hikashop_product_custom_item_name"&gt;&lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;td&gt; &lt;span id="hikashop_product_custom_item_value_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;" class="hikashop_product_custom_item_value"&gt;&lt;?php $onWhat='onchange'; if($oneExtraField-&gt;field_type=='radio') $onWhat='onclick'; $oneExtraField-&gt;product_id = $this-&gt;element-&gt;product_id; echo $this-&gt;fieldsClass-&gt;display( $oneExtraField, $itemData, 'data[item]['.$oneExtraField-&gt;field_namekey.']', false, ' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\'item\',0);"' ); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;/table&gt; &lt;/div&gt;

Can you please advise what I need to do to fix the problem. I haven't changed anything other than upgrade the component, so I dont understand why it has happened in the first place!

Last edit: 10 years 2 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

10 years 2 months ago [\#248800](#248800) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#248800 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hi,

You want to change the code:
$this-&gt;element-&gt;$fieldName
to:
@$this-&gt;element-&gt;$fieldName in that view file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")**
- [![info@flashpoint.net.au's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")
- [ Offline](/forum/user/12203-info-flashpoint-net-au)

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 2 months ago [\#249024](#249024) by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")  Replied by *[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#249024 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Thanks Nicolas, however it hasn't solved the problem, but created more... I changed the line 14 in the show_block_custom_item view from:
$itemData = JRequest::getString('item_data_' . $fieldName, $this-&gt;element-&gt;$fieldName);
to:
$itemData = JRequest::getString('item_data_' . $fieldName, @$this-&gt;element-&gt;$fieldName);

It removed all product options and re-positioned the Add to Cart button over the product image ![:(](/media/kunena/emoticons/22.png ":(")

Is there any other suggestions?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

10 years 2 months ago [\#249039](#249039) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#249039 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hi,

The modification I proposed is just to remove the error message.
It's not possible that it influences something else like removing the options, or changing the positions of the elements on the page.
So the problems you're describing come from something else.
Could you provide a link to the page with the problems you're talking about ? And maybe a screenshot of what should be where ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")**
- [![info@flashpoint.net.au's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")
- [ Offline](/forum/user/12203-info-flashpoint-net-au)

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 2 months ago [\#249430](#249430) by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")  Replied by *[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#249430 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hi Nicolas,

The link to the page I'm trying to troubleshoot is [ www.hpshutters.com.au/order-online](http://www.hpshutters.com.au/order-online)

I currently have line 14 in the the "show_block_custom_item" file of the "product" view set as it was originally:
$itemData = JRequest::getString('item_data_' . $fieldName, $this-&gt;element-&gt;$fieldName);
I get this result:
[ ![line14-original.jpg](/forum/attachment/33369) ](/forum/attachment/33369 "...4-original.jpg")

When I change line 14 code to:
$itemData = JRequest::getString('item_data_' . $fieldName, @$this-&gt;element-&gt;$fieldName);
I get this result:
[ ![line14-new.jpg](/forum/attachment/33370) ](/forum/attachment/33370 "line14-new.jpg")

All options have been removed and the Add to cart button sits over the image!

The default values for my custom fields are: width: 3500 &amp; length: 2500 however these values aren't displayed. This wasn't the case before upgrading both Joomla and HikaShop. Everything was working fine prior to the upgrade and I haven't done anything else to the configuration. Please help!

- [ ![line14-original.jpg](/forum/attachment/33369) ](/forum/attachment/33369 "...4-original.jpg") [ ](/forum/attachment/33369?download=1 "...4-original.jpg")
- [ ![line14-new.jpg](/forum/attachment/33370) ](/forum/attachment/33370 "line14-new.jpg") [ ](/forum/attachment/33370?download=1 "line14-new.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

10 years 2 months ago [\#249438](#249438) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#249438 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hi,

As expected the problem isn't coming from my proposed change.
If you leave the code as before and instead turn off the "error reporting" setting of the Joomla configuration you'll get the same issue.
The problem you have is a byproduct of the change. The issue is a CSS issue which happens because of how you configured your image. You set it to fill the whole page. But the layout of a product page is to have the image on the left and the add to cart/attributes area on the right. So it's actually normal that the image and the right area are mingled like that.
You were just lucky that the error message pushed the right area below the left area.
But normally, you should add custom CSS to do that:
\#hikashop_product_left_part{ width: 100% !important; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")**
- [![info@flashpoint.net.au's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")
- [ Offline](/forum/user/12203-info-flashpoint-net-au)

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 1 month ago -  10 years 1 month ago [\#249511](#249511) by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")  Replied by *[info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#249511 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Thanks, although I have no idea where to put your suggested CSS code: #hikashop_product_left_part{ width: 100% !important; }

I have resized my images to suit the product page layout, however the error messages still appear! I suspect this is a separate issue to my original query regarding my default values...

As previously stated... the default values for my custom fields are: width: 3500 &amp; length: 2500 however these values aren't being displayed. The length/width plugin is working in as much as it is calculating any values entered, but why aren't the default values being displayed as they were before upgrading?

[ ![hika.jpg](/forum/attachment/33380) ](/forum/attachment/33380 "hika.jpg")

- [ ![hika.jpg](/forum/attachment/33380) ](/forum/attachment/33380 "hika.jpg") [ ](/forum/attachment/33380?download=1 "hika.jpg")

Last edit: 10 years 1 month ago by [info@flashpoint.net.au](/forum/user/12203-info-flashpoint-net-au "View info@flashpoint.net.au's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

10 years 1 month ago [\#249553](#249553) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price per square meter](/forum/26-product-category-display/878176-price-per-square-meter#249553 "-- HikaShop version -- : 2.5.0. -- Joomla version -- : 3.4.3. -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : chrome  Selling tiles need te be displayed in price per piece (carton) and price per square meter (in the carton). It is possible to add a price per kg. but is it also possible to add add/display a price per sm,square meter, m2?")*

Hi,

Several things here:

1. Here is how to add CSS:
[ www.hikashop.com/support/documentation/1...ize-the-display.html](https://www.hikashop.com/support/documentation/153-customize-the-display.html)

2. The custom fields are looking for the default values in the columns "width" and "length" of the products.
The error messages say that these columns do not exist.
So I suppose that you must have removed such custom fields, or you did something with the database.

The width and length you can enter as dimensions of the product in the default interface are in product_width and product_length, not width and length. So if you say that you entered the dimensions there, it's normal that the custom fields are not picking them up since they have a different name.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgxNzYtcHJpY2UtcGVyLXNxdWFyZS1tZXRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.112 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
