VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: vaistik on June 28, 2013, 12:11:15 PM

Title: Jump to product from user inputed SKU.
Post by: vaistik on June 28, 2013, 12:11:15 PM
Greetings Virtuemarters!

I need to create a way for a user to jump to a certain product details page for which he/she will provide the SKU.

I've used some JS to create a form that can use the product id to do that.

index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=XX

I'm trying to find a way to either:


I'd much preffer the second method as it seems more secure. I've looked around the product model but couldn't figure out how to do it.

Could anyone point me to where the function that gets the product from the id is and how could I copy and alter it to use the sku?

Any ideas are welcome though!

PS: I've also found this (http://forum.virtuemart.net/index.php?topic=106074.msg353740#msg353740) thread but had no answer. Sorry if this is considered a repost!
Title: Re: Jump to product from user inputed SKU.
Post by: vaistik on July 02, 2013, 09:52:40 AM
Update for anyone looking for something similar.

Found this thread (http://"http://forum.virtuemart.net/index.php?topic=105039.0") that helped alot!