Hi there,
I have products which are sold in different weights. I have created a weight characteristic to be used for these products and it all works fine.
The cost per kg decreases if you by larger weights. I want to show the saving made by choosing larger weights.
I would know how to do this (I think) by editing the view file "product show" if I could just work out how to get the following quantities from the hikashop system using php code:
- The currently selected variant price.
- The currently selected variant characteristic value.
- The available variants charactersitic values
- The price of a variant with a given charactersitic value
The idea being I could extract a numeric quantity from the "charactersitic value" string, find the smallest of these values, find the price corresponding to that value and put them into to a little calculation with the currently selected variant details to show how much money they have saved by selecting a greater weight.
Does anyone know enough about the hikashop system to work out how to get hold of these values in the "product show" view file? Or if I've missed a piece of documentation, please point me to it...
Jonathan