- Posts: 1
- Thank you received: 0
Show product price by different units!
-- Joomla version -- : 2.5.28
-- Browser(s) name and version -- : Mozilla
Hi,
We are now testing Hikashop and some other Online shop solutions, for now we are in conflict with Hikashop setting up prices.
We have successfully export items from home made shop and import to Hikashop, create categories etc.
Now, we have problems how to adjust to show product price with different units. Only what we can see now is "Per unit" - all products price is per unit.
What we need?
For example
we have Kiwi (10 sort), Tomato (5 sort) and Lemon (3 sort)
we are selling
- Kiwi one by one - so price will be 1 Kiwi is 1$ (there is no opportunity to buy 1kg Kiwi, only price per quantity - one Kiwi is 30 grams one is 40 etc - so weight is not important here, only quantity)
- Tomato - per KG (so type how many kg and multiple with price - one by one is not important)
- Lemon - per box (so 1 box contains 5 Lemons and some boxes are 1 kg some 1,2 kg etc, but buyer can type just how many boxes of Lemon he want)
There is around 800 items in Hikashop, so is there oportunity to export all items and in Excel create in .csv file one column and set article X kg, aricle Y unit, article Z box etc
If it is possible, please write down how to make this in details.
Thank you
Please Log in or Create an account to join the conversation.
Our FAQ explains how to change the "per unit" on a per product basis in the section "I sell packed products, how can I change "each" text in the product page ?":
www.hikashop.com/support/support/documentation/106-faq.html
Once that is setup, your custom product field can be filled automatically with a CSV import as you'll be able to use the "column name" of your custom field as a column of your CSV file.
Please Log in or Create an account to join the conversation.
i need close the same like user nibs in a little different way: I explain what i already did and what i need.
I already did like in the FAQ "I sell packed products, how can I change "each" text in the product page ?" and it works. So now i have price per unit (in german stück), price per roll, price per meter, price per liter, price per whatever.. The problem is, that i need to let this custom field work with "price_per_weight_unit" so the created customfields showing the different units counted down on the default value.. like example:
We sell a roll of tape in size 50m long each roll is 20€:
So the price must look like:
20€ inkl.MwSt. per Roll
0,4€/m zzgl. Versandkosten
so now i need to activate the price per weigth unit.. i already aded Liter (l) and ml but it is not possible to ad Meter(m) or (cm) to the list of weight units.
but i need this for german law close to the price (2.line) like the price per kg
how can i ad this characteristics to the list of possible weight units?
Please Log in or Create an account to join the conversation.
This is the line which displays the price per weight on the product page in the file "listing_price" of the view "product":
Please Log in or Create an account to join the conversation.
thank you ! It works fine
The funktion works, but the language override is not showing.. I tryed in both language files with override, but it still shows only the string not the override
now it looks like:
0,4€/GP_PRO_KG
where GP_PRO_KG is one of the values in custom field
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Do like that then:
Please Log in or Create an account to join the conversation.
Thanks, this is perfect! :woohoo:
Please Log in or Create an account to join the conversation.
But don't understand the instructions:
And to finish, you just have to create a new translation, in Display -> Languages, edit your language file and add in the override area :
PER_PACK="each pack"
I went to hikashop=>display=>views=>
config / languages.php
But I don't know where the override area is. And am i just putting: PER_PACK="each pack" and nothing else?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
The language override system is available for all the editions. If the popups are blank in your backend, it's probably a bug of the Joomla popup system which came up with Joomla 3.5.0 or 3.5.1. Make sure that you have the latest version of HikaShop and then set the "popup mode" setting of the HikaShop configuration to "vex" and the popups should then work fine.
Also, note that language overrides can be done in Joomla's languages manager since Joomla 3.2.x
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
If you set the error reporting level to "maximum" in the Joomla settings, do you have any displayed message like PHP fatal error ?
Please Log in or Create an account to join the conversation.
Also i want to have the "right" unit behind the price.
I tried to do the same like in FAQ106. But the result isn't what i want. I have attached an jpg for you so you can see. changing the code in display=>view doesn't change anything. i don't want to see the specification stuff, i just want to see "/m" behind the price of the product.
Thanks
Please Log in or Create an account to join the conversation.
You should turn off the frontend display setting of the custom field so that it doesn't display in the specification area.
Regarding having it just after the price, if you change the code in the view file like indicated in the FAQ it will work.
So something is wrong there. Maybe you've edited the view file for another template than the template you're using on your frontend ?
Please Log in or Create an account to join the conversation.
But anyway - thanks for the fast support.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
With the modification of the FAQ, there is no HTML element around the text.
But you can easily add it.
Just change to that code instead:
Please Log in or Create an account to join the conversation.
In the backend of the custom field there are on the right side the "display options" and here on the lower part i can select categories, subcategories and products. when i put the single products in the field than everything goes fine. But with about 50 Products which use different units it is some work to adjust them all like this. So i want to do this just by categories and subcategories but this seems not to work. what am i doinng wrong?,
Thank you
Please Log in or Create an account to join the conversation.