I have managed to create a field in the options list, which allows me to enter a SKU per option, I have created a field 'option_sku' in the database table product_option_value. So far so good.
Now I would like to access this SKU in the product page, Cart, Invoice etc.
I have added the following line to the model/product.php (after line 334)
Code: Select all
'option_sku' => $product_option_value['option_sku']
Since I am not really a PHP programmer this is a far as I could get. How can I get the option_sku accessable in my template files?
Thanks.
--edit--
Ok so I figured out the option_sku has to be in somewhere like $product[$option[$option_value['option_sku']]], but this isn't working in my templates
--edit 2--
So the templates get their values from model/checkout/cart.php, in this file I added some code after line 214
Code: Select all
'option_sku' => $value['option_sku']
Code: Select all
<?php echo $option['option_sku']; ?>
If I manually change $value['option_sku'] to something like 12345, then 12345 is displayed in the cart.
Any help greatly appreciated.