News:

Support the VirtueMart project and become a member

Main Menu

Manufacturer needs to be displayed in cart

Started by mrmysterious, July 11, 2016, 23:15:16 PM

Previous topic - Next topic

mrmysterious

Hello world,

is there any known way or plugin to get the manufacturer (assigned to the product) of a product shown in cart?

Example:

ProductA
Manufacturer:
Macrosoft

Update: If any php-editing has to be done - I got some basic knowledge. Just need a hint where to find the file and the lines to edit.
I can imagine that somewhere in cart.php a function has to get the manufacturer id and display the name in cart.... 

cheers
mrm
Joomla!-Version 3.8.5
VirtueMart 3.2.12
Template As002053free (customized)
OS Linux h
PHP 5.6.30
MySQL 5.6.19-67.0-log

MagikCommerce

#1
Hello,

You can display manufacturer name of product with its url as below in file - /templates/selected_template/html/com_virtuemart/cart/default_pricelist.php after line of code <?php echo JHTML::link($productrow->url, $productrow->product_name); ?>


<?php 
....

echo 
JHTML::link($productrow->url$productrow->product_name); 
?>


Manufacturer : <a href="<?php echo $productrow->mf_url;?>" title="<?php echo $productrow->mf_name;?>" ><?php echo $productrow->mf_name;?></a>

<?php
....
?>



mrmysterious

Joomla!-Version 3.8.5
VirtueMart 3.2.12
Template As002053free (customized)
OS Linux h
PHP 5.6.30
MySQL 5.6.19-67.0-log