News:

Support the VirtueMart project and become a member

Main Menu

Display manufacturer name in chart

Started by Peterkrk, May 18, 2020, 20:31:43 PM

Previous topic - Next topic

Peterkrk

Hi,
I would like to add in chart another field with manufacturer name.
I already add in /templates/template-name/html/com_virtuemart/cart/default_pricelist.php

<th><?php echo JText::_ ('COM_VIRTUEMART_SEF_MANUFACTURER') ?></th> and I have another field in chart.

Now I would like to add
<?php echo $item->mf_name; ?> but is not working...

Any suggestions?

Regards,Peter

pinochico

Yes,

try this in default_pricelist.php:

<?php echo print_r ($item); ?>

and you can see all info from item.


If mf_name is missing (and I think yes, because for add to cart is used function from product model - getProduct, then you can try call another function or add model for manufacturer.
Try find function in model product - getProductSingle.

Or waiting for answer from VM DEV :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Peterkrk

#2
<?php echo print_r ($item); ?> is not working...

I have no idea how to solve this.

Jörgen

What is not working ? Try:
<?php
echo '<pre>';
print_r($item);
echo 
'</pre>';
?>


If you do Still not see any relevant info, you may Nerf professional help with this.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.