[Skip to main content](#vessel-content)

#   how to pass data to a different url

##

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 3 months ago [\#246614](#246614) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246614 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")* was created by *[ronron](/forum/user/40399-ronron "View ronron's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

(i dont know where to post this so i made one for hikashop)

i have been trying to integrate uddeim with hikashop.

my problem is that i cant get the right code to get the &#96;tablename_users&#96;.&#96;id&#96; and not the &#96;tablename_hikamarket_vendor&#96;.&#96;vendor_id&#96; for the (url)query string.

url query string example:

ndex.php?option=com_uddeim&amp;task=new&amp;recip=userid

can you please help me get the userid from product / show_default.php and listing_img_desc.php?

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 3 months ago -  10 years 3 months ago [\#246672](#246672) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246672 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

Hi,

So fro what I understand you want to know the Joomla user id of the vendor of the current product ?
In that case, you want to do something like that: Code:

&lt;?php $vendorClass = hikamarket::get('class.vendor'); $vendor = $vendorClass-&gt;get($this-&gt;row-&gt;product_vendor_id,'vendor'); // or $vendorClass-&gt;get($this-&gt;element-&gt;product_vendor_id,'vendor'); for the product page $userClass = hikashop_get('class.user'); $user = $userClass-&gt;get($vendor-&gt;vendor_admin_id); echo $user-&gt;user_cms_id; ?&gt;

Last edit: 10 years 3 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: code fix

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 3 months ago -  10 years 3 months ago [\#246717](#246717) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246717 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

thank you nicolas.

You are right! i want to add a button to the product page that will get the joomla user id of the vendor.

example

&lt;a class="btn btn-primary" href="/index.php?option=com_uddeim&amp;task=new&amp;recip={user_cms_id)" role="button"&gt;Inquire About This Product&lt;/a&gt;.

user_cms_id = this shout be the cms or joomla user id.

thanks again.

Last edit: 10 years 3 months ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 3 months ago [\#246757](#246757) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246757 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

hi nicolas,

i'have tried to check the results of the code and see if it will produce the user id but i was not successful.
am i doing it right?

tested show_default.php
1. &lt;?php
$userClass = hikashop_get('class.user');
$user = $userClass-&gt;get($vendor-&gt;vendor_admin_id);
echo "&lt;a href='$user-&gt;user_cms_id'&gt;test&lt;/a&gt;";
?&gt;
when clicked redirect to http://home/store/product/1-pink-sandals

2. &lt;a href="&lt;?php $userClass = hikashop_get('class.user');
$user = $userClass-&gt;get($vendor-&gt;vendor_admin_id); echo $user-&gt;user_cms_id;?&gt;"&gt; Link &lt;/a&gt;
when clicked redirect to home page

HikaMarket - vendormarket / showcontainer_default.php both are errors
1.
&lt;?php
$vendorClass = hikamarket_get('class.vendor');
$vendor = $vendorClass-&gt;get($this-&gt;row-&gt;product_vendor_id,'vendor');
echo "&lt;a href='$vendor'&gt;test&lt;/a&gt;";
?&gt;
2.
&lt;?php
$vendorClass = hikamarket_get('class.vendor');
$vendor = $vendorClass-&gt;get($this-&gt;element-&gt;product_vendor_id,'vendor');
echo "&lt;a href='$vendor'&gt;test&lt;/a&gt;";
?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 3 months ago [\#246764](#246764) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246764 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

Hi,

All your code is wrong.
For example, the code:
echo "&lt;a href='$user-&gt;user_cms_id'&gt;test&lt;/a&gt;";
should be:
echo '&lt;a href="/index.php?option=com_uddeim&amp;task=new&amp;recip='.$user-&gt;user_cms_id.'"&gt;test&lt;/a&gt;';
because $user-&gt;user_cms_id will just give you the Joomla user id, not the whole uddeim link... and also because you're missing quotes, dots and double quotes, hence it's not valid HMTL/PHP.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 3 months ago -  10 years 3 months ago [\#246788](#246788) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246788 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

thanks nicolas for your patience.

I think i was not clear on my question. i was already successful with adding the joomla user id manually to my uddeim link. But it would be nice to get it using a button that will query the joomla user id.

My problem is how to get the joomla user id or user_cms_id from the product page and vendor page.

Everytime i execute the code you have given nothing happens. i used a different code using PHP inside html. i did not post it since you have given me a better one.

Now, to check if i am doing the code right i added the button to the code you have given me. i have posted this code below to check if it will echo the user id only and not to redirect to uddeim. But nothing happens.
Code:

&lt;?php $userClass = hikashop_get('class.user'); $user = $userClass-&gt;get($vendor-&gt;vendor_admin_id); echo "&lt;a href='$user-&gt;user_cms_id'&gt;test&lt;/a&gt;"; ?&gt;

Anyway, thanks again to your code but its still not working. i dont see a number or any user id next to the equal sign.
This is the code i used.
Code:

&lt;?php $userClass = hikashop_get('class.user'); $user = $userClass-&gt;get($vendor-&gt;vendor_admin_id); echo '&lt;a href="/index.php?option=com_uddeim&amp;task=new&amp;recip='.$user-&gt;user_cms_id.'"&gt;test&lt;/a&gt;'; ?&gt;

The url below is the result. It is still empy
http://.../index.php?option=com_uddeim&amp;task=new&amp;recip=

Thanks again for you patience.

Last edit: 10 years 3 months ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 3 months ago [\#246814](#246814) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246814 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

Hi,

That code is not the problem.
The problem is what you added before.
Because there is no $vendor variable in the views of HikaShop. So I suppose that you must have added some other code to fill the $vendor variable.
Otherwise, In the code I gave here [ www.hikashop.com/forum/customers/885808-...rent-url.html#246672](https://www.hikashop.com/forum/customers/885808-how-to-pass-data-to-a-different-url.html#246672) I provided the code to load the $vendor but you didn't mention it in your past messages.

The following user(s) said Thank You: [ronron](/forum/user/40399-ronron "View ronron's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 3 months ago [\#246840](#246840) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246840 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

thanks again

i tested the codes below but both of them failed to load. I tried to substitute the one with the comment

&lt;?php
$vendorClass = hikamarket_get('class.vendor');
$vendor = $vendorClass-&gt;get($this-&gt;row-&gt;product_vendor_id,'vendor');
$userClass = hikashop_get('class.user');
$user = $userClass-&gt;get($vendor-&gt;vendor_admin_id);
echo '&lt;a href="/index.php?option=com_uddeim&amp;task=new&amp;recip='.$user-&gt;user_cms_id.'"&gt;test&lt;/a&gt;';
?&gt;

and

&lt;?php
$vendorClass = hikamarket_get('class.vendor');
$vendor = $vendorClass-&gt;get($this-&gt;element-&gt;product_vendor_id,'vendor');
$userClass = hikashop_get('class.user');
$user = $userClass-&gt;get($vendor-&gt;vendor_admin_id);
echo '&lt;a href="/index.php?option=com_uddeim&amp;task=new&amp;recip='.$user-&gt;user_cms_id.'"&gt;test&lt;/a&gt;';
?&gt;

this is the error. Enabled debug

Fatal error: Call to undefined function hikamarket_get() in /home/mayari79/public_html/templates/purity_iii/html/com_hikashop/product/show_default.php on line 206

thanks so much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 3 months ago [\#246846](#246846) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246846 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

Hi,

Please replace Code:

hikamarket_get

By Code:

hikamarket::get

to make the code work properly.
I fixed the Nicolas' code in the previous post.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [ronron](/forum/user/40399-ronron "View ronron's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 3 months ago [\#246910](#246910) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246910 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

Thanks jerome and thank you nick. Works Perfectly

1. Both $vendor = $vendorClass-&gt;get($this-&gt;row-&gt;product_vendor_id,'vendor'); and $vendorClass-&gt;get($this-&gt;element-&gt;product_vendor_id,'vendor'); are working which one should i use?

2. Can you please give me the code how to get the product title or hikashop_product_name_main and the equivalent photo, I will try to prefill my form with the title and photo.

thanks again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 3 months ago [\#246912](#246912) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how to pass data to a different url](/forum/33-customers/885808-how-to-pass-data-to-a-different-url#246912 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  (i dont know where to post this so i made one for hikashop)  i have been trying to integrate uddeim with hikashop.  my problem is that i cant get the right code to get the &#96;tablename&#95;users&#96;.&#96;id&#96; and not the &#96;tablename&#95;hikamarket&#95;vendor&#96;.&#96;vendor&#95;id&#96; for the (url)query string.  url query string example:  ndex.php?option=com&#95;uddeim&amp;task=new&amp;recip=userid  can you please help me get the userid from product / show&#95;default.php and listing&#95;img&#95;desc.php?  thanks")*

Hi,

Depending the context you will have one or the other :
"element" is for the product page.
"row" is for the product listing.

It is possible that you also have "row" in the product page context ; but it's could not be always the case.

To retrieve product data, you need to get that data from "$this-&gt;element" or "$this-&gt;row".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODU4MDgtaG93LXRvLXBhc3MtZGF0YS10by1hLWRpZmZlcmVudC11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.078 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
