News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

minicart change product_name to product_sku

Started by markito, March 17, 2013, 17:58:49 PM

Previous topic - Next topic

markito

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!

Joseph Kwan

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.
Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

markito

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....


Joseph Kwan

Can you post the link? It will be better if you can provide a sample site.
Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

markito

hi, thanks, this is the shop which i am working right now: http://www.yoyo-shop.ch

Joseph Kwan

Unfortunately, the link is not working on the site. The actual link will help to clarify the problem.
Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

markito

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

Joseph Kwan

don't see the product sku link. no way to check whether the link is correct
Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

PRO