- Posts: 299
- Thank you received: 2
Changing defaut weight from kg to g
-- 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!
Please Log in or Create an account to join the conversation.
You need to change the order of the weight units in the "weight units" option of the configuration for that.
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
That shouldn't be the case. Can you do a screenshot of the weight unit option ?
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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>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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Sorry fo rlate response... here it is.
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.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
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->Display->Content menus/modules" and use the "number of items" option.
Please Log in or Create an account to join the conversation.
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:
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
Is this the same as Weight Symbols? If not, where in the configuration is the default set? I cannot seem to find it.weight units in the "weight units" option of the configuration
Thanks.
Please Log in or Create an account to join the conversation.
Yes the option is weight symbols.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes if you put "lb" at first, so when creating new products the default weight unit will be "lb".
Please Log in or Create an account to join the conversation.
How can this be accomplished?
Please Log in or Create an account to join the conversation.
Try replacing the code:
Note that it will only work when you create new variants. Existing ones won't be affected.
Please Log in or Create an account to join the conversation.
Thanks!
Please Log in or Create an account to join the conversation.
- Posts: 107
- Thank you received: 4
Please Log in or Create an account to join the conversation.