In minicart module, i need to change the product_name to the product_sku.
someone know how to change this in VM 2 like this post for VM1?
http://forum.virtuemart.net/index.php?topic=47855.msg237254#msg237254
When i change in:
mod_virtuemart_cart/tmpl/default.php
<?php echo $product['product_name'] ?>
to
<?php echo $product['product_sku'] ?>
it just show the sku without a link to the product.
Thanks for any hints!
Try replace the echo line with these lines
<?php
$url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product['virtuemart_product_id'].'&virtuemart_category_id='.$product['virtuemart_category_id']);
echo JHTML::link($url, $product['product_sku']);
?>
I didn't try this and so this may not work. If you have problem, you can report back.
thanks, now the product_sku is a link.
But, the link brings you to the VM mainpage instead to the Product which is in the Cart....
Can you post the link? It will be better if you can provide a sample site.
hi, thanks, this is the shop which i am working right now: http://www.yoyo-shop.ch
Unfortunately, the link is not working on the site. The actual link will help to clarify the problem.
Hi Joseph
i don't get it what you mean .... if you put something in the cart, you will see that the SKU-Link brings you not to the Product.
Someone have a proposal, what has to be changed to have a Cart-Module with SKU-Links instead the Product name?
somthing like this:
1x WB5393 20.-
3x RF5684 55.-
Total: 75.-
thanks for helping
don't see the product sku link. no way to check whether the link is correct
the cart changes when you refresh the page