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

Use product_ID from current flypage in Custom Module

Started by martijnkooi, January 02, 2014, 09:29:49 AM

Previous topic - Next topic

martijnkooi

Hi all,

I currently developing a custom form to attach to virtuemart. I've used Fabrikar to create this form.
Basically what it does is adding external shops with their prices, see for example (TAB Prijsvoordeel): http://www.hooymans.nl/groot-46-117cm-52-132cm/philips-50pfl4208-detail
So far so good.. It's working by including a php file. Next step is that I want to show the extra fields (admins).
Therefor I can use the prefilters but I can't join the query..

Database:
Shops(id,shopname,shopurl,shopimage)
Prices(id,<shopid>,<productid>,price,datefrom,dateto,priceval)

In short, How can I call the virtuemart_product_id outsite the virtuemart component?
I've tried unsuccesfully added $vmprodid = $this->product->virtuemart_product_id; and $vmcatid = $this->product->virtuemart_category_id; to the flypage

Please advise..