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

#   Changing defaut weight from kg to g

##

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

Less More

- Posts: 299
- Thank you received: 2
-
-

12 years 9 months ago -  12 years 9 months ago [\#140020](#140020) by [LAMF](/forum/user/8669-lamf "View LAMF's Profile")  *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140020 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")* was created by *[LAMF](/forum/user/8669-lamf "View LAMF's Profile")*

-- url of the page with the problem -- : [ www.gobbe.se](http://www.gobbe.se)
-- HikaShop version -- : latest
-- Joomla version -- : 2.5.17
-- PHP version -- : 5.3.3
-- Browser(s) name and version -- : Any browser
-- Error-message(debug-mod must be tuned on) -- : No errors

HI,
I want to change default unit from kg to g in the weight setting for products and product features, how can I do that?
I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change...
Thanks!

Last edit: 12 years 9 months ago by [LAMF](/forum/user/8669-lamf "View LAMF's Profile"). Reason: add info

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14295
-
-

12 years 9 months ago [\#140063](#140063) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140063 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi,

You need to change the order of the weight units in the "weight units" option of the configuration for that.

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

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

Less More

- Posts: 299
- Thank you received: 2
-
-

12 years 9 months ago [\#140101](#140101) by [LAMF](/forum/user/8669-lamf "View LAMF's Profile")  Replied by *[LAMF](/forum/user/8669-lamf "View LAMF's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140101 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi
Ok thanks I found it but it is still the kg option that is default value even if the g is the first choice in the drop down list.
Is this some kind of cache issue?
I have tried to clean cache as well but it is still kg that is the choice default...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14295
-
-

12 years 9 months ago [\#140133](#140133) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140133 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Even for new products ?
That shouldn't be the case. Can you do a screenshot of the weight unit option ?

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

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

Less More

- Posts: 299
- Thank you received: 2
-
-

12 years 9 months ago [\#140224](#140224) by [LAMF](/forum/user/8669-lamf "View LAMF's Profile")  Replied by *[LAMF](/forum/user/8669-lamf "View LAMF's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140224 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

HI,
No you're right not for new products but for old ones that I want to put in weight values in the kg is still the primary option.
Also if I copy old product sin order to save time the kg is default. No way around this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14295
-
-

12 years 9 months ago [\#140286](#140286) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140286 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi,

Yes, that's normal since the weight unit that you previously selected is stored along with the product data.
If you want to change the weight unit of all the existing products to g, then create a new mass action via the menu System&gt;Mass actions and add an action "update the value" on the field "product_weight_unit" and set the string "g" to it. Then run the mass action and that's it.

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

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

Less More

- Posts: 299
- Thank you received: 2
-
-

12 years 9 months ago [\#140339](#140339) by [LAMF](/forum/user/8669-lamf "View LAMF's Profile")  Replied by *[LAMF](/forum/user/8669-lamf "View LAMF's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140339 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi,
I followed your clear guide and when the action was created I ran the action by pressing the Process button.
System message follows:
"Save success"
and
"Incorrect type for this column, type is decimal unsigned"

And when checking an already existing product it's still kg as the default value even if g is above kg in the drop down meny.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14295
-
-

12 years 9 months ago [\#140358](#140358) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140358 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Can you do a screenshot of the options of your mass action ?

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

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

Less More

- Posts: 299
- Thank you received: 2
-
-

12 years 9 months ago -  11 years 9 months ago [\#140505](#140505) by [LAMF](/forum/user/8669-lamf "View LAMF's Profile")  Replied by *[LAMF](/forum/user/8669-lamf "View LAMF's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140505 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi,
Sorry fo rlate response... here it is.
[ ![500](http://www.metebutiken.se/mass_action.png) ](http://www.metebutiken.se/mass_action.png "500")

I wonder if it also is possible to do a mass action in order to change the number of products that are displayed in the category view?
If you select a product category in the left menu on my site it display 21 products per page, this is not optimal when I have 4 products per row so instead I would like to display 20 or 24 products. The problem is that I have a lot of categories and I don't want to change one by one.

Last edit: 11 years 9 months ago by [LAMF](/forum/user/8669-lamf "View LAMF's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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
-
-
-

12 years 9 months ago [\#140540](#140540) 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 *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140540 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi,
1. As Nicolas said you'll have to update the "product_weight_unit" column and not the "product weight" one.

2. The best solution will probably be to edit the associated content module of your category listing content menu/module through "*HIkashop-&gt;Display-&gt;Content menus/modules*" and use the "number of items" option.

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

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

Less More

- Posts: 299
- Thank you received: 2
-
-

12 years 9 months ago -  11 years 9 months ago [\#140608](#140608) by [LAMF](/forum/user/8669-lamf "View LAMF's Profile")  Replied by *[LAMF](/forum/user/8669-lamf "View LAMF's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140608 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi,
Now I tried that as well but still no luck... well well I give up no harm but if it would have workked it would have been nice though.
The other question about channging the number of listed products unde a category, I know where tp change it but not how or even if it's possible to do a mass action in order to channge that value for all product categores products listing in one go.
Here is where you change it for each product:
[ ![400](http://www.metebutiken.se/product_category_listing.png) ](http://www.metebutiken.se/product_category_listing.png "400")

Last edit: 11 years 9 months ago by [LAMF](/forum/user/8669-lamf "View LAMF's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14295
-
-

12 years 9 months ago [\#140627](#140627) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#140627 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

No there is no option to change an option of all the modules/menus at once.
Actually, if you leave the option empty in all your listings options, they will automatically use the default value of the configuration and thus, you can change the number of elements of all the listings of the shop at once by simply changing the default value of the configuration in that case.
But since your modules/menus don't have that field empty, you'll have to modify all of them manually.

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

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

Less More

- Posts: 146
- Thank you received: 2
-
-

11 years 9 months ago -  11 years 9 months ago [\#188145](#188145) by [sison2466](/forum/user/33787-sison2466 "View sison2466's Profile")  Replied by *[sison2466](/forum/user/33787-sison2466 "View sison2466's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#188145 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

> weight units in the "weight units" option of the configuration

Is this the same as Weight Symbols? If not, where in the configuration is the default set? I cannot seem to find it.

Thanks.

Last edit: 11 years 9 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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)
-

11 years 9 months ago [\#188156](#188156) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#188156 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi,

Yes the option is weight symbols.

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

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

Less More

- Posts: 146
- Thank you received: 2
-
-

11 years 9 months ago [\#188221](#188221) by [sison2466](/forum/user/33787-sison2466 "View sison2466's Profile")  Replied by *[sison2466](/forum/user/33787-sison2466 "View sison2466's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#188221 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

To change the default from kg to lb and in to m, do I just change the order listed?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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)
-

11 years 9 months ago [\#188232](#188232) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#188232 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi,

Yes if you put "lb" at first, so when creating new products the default weight unit will be "lb".

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

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

10 years 3 months ago [\#246320](#246320) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#246320 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

I've followed the steps listed in this discussion for changing the default weight unit, and it works for the main product, but doesn't for the Variants. I need lb and not kg as the default for the variant input form.
How can this be accomplished?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14295
-
-

10 years 3 months ago [\#246344](#246344) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#246344 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Hi,

Try replacing the code: Code:

if(!empty($concat) &amp;&amp; count($concat)) $p_code = 'CONCAT('.$p_code.', '.implode(',\'_\',', $concat).')'; $query = 'INSERT IGNORE INTO '.hikashop_table('product').' (product_code, product_type, product_parent_id, product_published, product_modified, product_created, product_group_after_purchase) '. ' SELECT '.$p_code.' as c_product_code, '. $this-&gt;database-&gt;Quote('variant') .','. (int)$product_id . ','.(int)$config-&gt;get('variant_default_publish',1).',' . $t . ',' . $t . ',' . $this-&gt;database-&gt;Quote(@$element-&gt;product_group_after_purchase) .

by: Code:

$config =&amp; hikashop_config(); $symbols = explode(',',$config-&gt;get('weight_symbols', 'kg,g')); $weight_unit = $symbols[0]; $symbols = explode(',', $config-&gt;get('volume_symbols', 'm,cm')); $volume_unit = $symbols[0]; if(!empty($concat) &amp;&amp; count($concat)) $p_code = 'CONCAT('.$p_code.', '.implode(',\'_\',', $concat).')'; $query = 'INSERT IGNORE INTO '.hikashop_table('product').' (product_code, product_type, product_parent_id, product_published, product_modified, product_created, product_group_after_purchase, product_weight_unit, product_dimension_unit) '. ' SELECT '.$p_code.' as c_product_code, '. $this-&gt;database-&gt;Quote('variant') .','. (int)$product_id . ','.(int)$config-&gt;get('variant_default_publish',1).',' . $t . ',' . $t . ',' . $this-&gt;database-&gt;Quote(@$element-&gt;product_group_after_purchase).','.$this-&gt;database-&gt;Quote($weight_unit).','.$this-&gt;database-&gt;Quote($volume_unit). ' FROM ' . implode(', ', $tables);

in the file administrator/components/com_hikashop/classes/product.php
Note that it will only work when you create new variants. Existing ones won't be affected.

The following user(s) said Thank You: [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")

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

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

10 years 3 months ago [\#246392](#246392) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#246392 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Perfect!
Thanks!

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

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

Less More

- Posts: 107
- Thank you received: 4
-
-

3 years 9 months ago [\#348347](#348347) by [daedalusteks](/forum/user/58797-daedalusteks "View daedalusteks's Profile")  Replied by *[daedalusteks](/forum/user/58797-daedalusteks "View daedalusteks's Profile")* on topic *[Changing defaut weight from kg to g](/forum/32-content-creation/865064-changing-defaut-weight-from-kg-to-g#348347 "-- url of the page with the problem -- :   www.gobbe.se  -- HikaShop version -- : latest -- Joomla version -- : 2.5.17 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Any browser -- Error-message(debug-mod must be tuned on) -- : No errors  HI, I want to change default unit from kg to g in the weight setting for products and product features, how can I do that? I need this because all my products are in grams and it will save a lot of time not having to change from kg to g every time and it will minimize the errors due to the fact I have forgot to change... Thanks!")*

Someones selling that good good in grams lol

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODY1MDY0LWNoYW5naW5nLWRlZmF1dC13ZWlnaHQtZnJvbS1rZy10by1nP3RtcGw9bWFya2Rvd24=) 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.129 seconds

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