Hello, i added this to the next version so you can show the mf_name. I don't have any extension for the custom fields right now installed on my demo but it should be working well. In current versions you can use:
$product['product']->virtuemart_manufacturer_id;
and in the following releases, i added new variable $product['info'] which is a full object of the product including it's mf name. I added info and an example into:
\components\com_onepage\themes\icetheme_thestore\overrides\basket.html.php inside of the product foreach section.
- Code: Select all
foreach( $product_rows as $product ) {
/*
DEVELOPER INFORMATION
If you need any other specific information about the product being showed in the basket you can use the following variables in the theme:
$product['info'] is an instance of VirtueMartModelProduct->getProduct($product['product_id'], $front=true, $calc=false, $onlypublished=false);
To get instance of the single product information associated with the cart without any extra info, you can use:
$product['product']
All of the variables used in this file are defined in:
\components\com_onepage\helpers\loader.php
Please don't modify loader.php if you plan to update OPC on bug fix releases.
Tested Example to show manufacturer info:
if (!empty($product['info']->virtuemart_manufacturer_id))
{
echo $product['info']->mf_name;
}
*/
?>
<div class="op_basket_row">
To check your custom fields, just use:
var_dump($product['info']); var_dump($product['product']); die(); to see all of the variables associtated.
Best Regards,
Stan