• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: rsform! and virtuemart

rsform! and virtuemart 16 years 5 months ago #5473

Is it possible to place a reference to a form in the flypage of virtuemart
Is it also possible to include the productname of a product ($product_name) into a hidden field?

I have tried the code
//<code>
return $product_name;
//</code>

but this gives me a lot of errors when displaying the article<br><br>Post edited by: fons.van.der.beek, at: 2008/11/10 20:32
The administrator has disabled public write access.

Re:rsform! and virtuemart 16 years 5 months ago #5484

I've solved the issue of using Virtuemart data in forms, it may be of use for others
Just create a hidden or normal text field and ad the following code (I've modified code from another post on this forum):
(tnx to Ian Scott)

//<code>
global $database, $my;//global declaration
$my->id = $GLOBALS;
$mydata = $my->id;//fetching the user id who has logged in
if($mydata!=0)
{
$data = mysql_query(\"SELECT * FROM jos_vm_product WHERE product_id = '\".$my->id.\"' \")
or die(mysql_error());//this query will fetch you the record of that particular user
while($info = mysql_fetch_array( $data ))
{
return $info;//return the name of the product which will be populated in the text filed
}
}
else
{
return 'no record';
}
//</code>

Post edited by: fons.van.der.beek, at: 2008/11/11 12:30<br><br>Post edited by: fons.van.der.beek, at: 2008/11/11 12:38
The administrator has disabled public write access.

Re:rsform! and virtuemart 16 years 4 months ago #5868

  • franseq
  • franseq's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi,
I have defined button additional info in virtuemart flypage to call a rsform and I try now to add automatically reference product from virtuemart flypage to the rsform.
Regarding your code, can you tell me how the field is called in your rsform ?
I don't really understand how you map the rsform field with virtuemart product id.

Many thanks for your help.
Franck
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!