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

#   Url For Guests To Register

##

- **[davec](/forum/user/7092-davec "View davec's Profile")**
- [![davec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7092-davec "View davec's Profile") Topic Author
- [ Offline](/forum/user/7092-davec)

Less More

- Posts: 447
- Thank you received: 20
-
-

6 years 3 months ago [\#322713](#322713) by [davec](/forum/user/7092-davec "View davec's Profile")  *[Url For Guests To Register](/forum/33-customers/900542-url-for-guests-to-register#322713 "-- HikaShop version -- : 4.3.0  Hi  I wish to change the URL for clients who then want to register after a guest checkout. The current URL is  I would like to change it to /registration-form/user/form. So would I use index.php?option=com&#95;hikashop&amp;view=user&amp;layout=form before the &amp;ctrl or /registration-form?  Thanks  David B)")* was created by *[davec](/forum/user/7092-davec "View davec's Profile")*

-- HikaShop version -- : 4.3.0

Hi

I wish to change the URL for clients who then want to register after a guest checkout. The current URL is
Code:

$register_url = 'index.php?option=com_hikashop&amp;ctrl=user&amp;task=guest_form&amp;order_id='.$data-&gt;order_id.$url_itemid.'&amp;order_token='.urlencode($data-&gt;order_token);

I would like to change it to /registration-form/user/form. So would I use index.php?option=com_hikashop&amp;view=user&amp;layout=form before the &amp;ctrl or /registration-form?

Thanks

David ![B)](/media/kunena/emoticons/9.png "B)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDA1NDItdXJsLWZvci1ndWVzdHMtdG8tcmVnaXN0ZXI/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

6 years 3 months ago [\#322715](#322715) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Url For Guests To Register](/forum/33-customers/900542-url-for-guests-to-register#322715 "-- HikaShop version -- : 4.3.0  Hi  I wish to change the URL for clients who then want to register after a guest checkout. The current URL is  I would like to change it to /registration-form/user/form. So would I use index.php?option=com&#95;hikashop&amp;view=user&amp;layout=form before the &amp;ctrl or /registration-form?  Thanks  David B)")*

Hi,

I'm not sure what you mean.
Do you want the new URL to be only "/registration-form/user/form" ?
In that case you want to have: Code:

$register_url = 'index.php?option=com_hikashop&amp;ctrl=user&amp;task=form&amp;Itemid=XX';

where XX is the id of the menu item with the alias "registration-form

Or maybe you want to replace guest_form by form ?
Or maybe you want to change the alias of menu item to use another menu item ? In that case, you want to change $url_itemid

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

- **[davec](/forum/user/7092-davec "View davec's Profile")**
- [![davec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7092-davec "View davec's Profile") Topic Author
- [ Offline](/forum/user/7092-davec)

Less More

- Posts: 447
- Thank you received: 20
-
-

6 years 3 months ago [\#322742](#322742) by [davec](/forum/user/7092-davec "View davec's Profile")  Replied by *[davec](/forum/user/7092-davec "View davec's Profile")* on topic *[Url For Guests To Register](/forum/33-customers/900542-url-for-guests-to-register#322742 "-- HikaShop version -- : 4.3.0  Hi  I wish to change the URL for clients who then want to register after a guest checkout. The current URL is  I would like to change it to /registration-form/user/form. So would I use index.php?option=com&#95;hikashop&amp;view=user&amp;layout=form before the &amp;ctrl or /registration-form?  Thanks  David B)")*

Hi

The link relates to the Order Status Notification Subject preload in the email. When a guest clicks a link from the order email they have the opportunity to register. I want to redirect them to the page /registration-form/user/form.

So can I change $register_url = 'index.php?option=com_hikashop&amp;ctrl=user&amp;task=guest_form&amp;order_id='.$data-&gt;order_id.$url_itemid.'&amp;order_token='.urlencode($data-&gt;order_token);

to

$register_url = 'registration-form/user/form&amp;ctrl=user&amp;task=guest_form&amp;order_id='.$data-&gt;order_id.$url_itemid.'&amp;order_token='.urlencode($data-&gt;order_token);

Thanks

David ![B)](/media/kunena/emoticons/9.png "B)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDA1NDItdXJsLWZvci1ndWVzdHMtdG8tcmVnaXN0ZXI/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

6 years 3 months ago [\#322758](#322758) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Url For Guests To Register](/forum/33-customers/900542-url-for-guests-to-register#322758 "-- HikaShop version -- : 4.3.0  Hi  I wish to change the URL for clients who then want to register after a guest checkout. The current URL is  I would like to change it to /registration-form/user/form. So would I use index.php?option=com&#95;hikashop&amp;view=user&amp;layout=form before the &amp;ctrl or /registration-form?  Thanks  David B)")*

Hi,

No, you can't. That's not a valid URL.
But I still don't understand what you're trying to do.
The page registration-form/user/form is the standard registration form of HikaShop.
The page registration-form/user/guest_form is a simplified registration form which uses the parameters in the URL to get the information of the guest account so that the customer doesn't have to enter them.
So if you redirect to registration-form/user/form you don't need the extra parameters and the customer will see the normal registration form. In that case, there is no need to modify the PHP code generating the URL. You can just change the line: Code:

$vars['ORDER_SUMMARY'] .= '&lt;p&gt;&lt;a href="'. $register_url .'"&gt;'.JText::_('CLICK_HERE_TO_EASILY_CREATE_YOUR_USER_ACCOUNT') . '&lt;/a&gt;&lt;/p&gt;';

to: Code:

$vars['ORDER_SUMMARY'] .= '&lt;p&gt;&lt;a href="https://www.mywebsite.com/registration-form/user/form"&gt;'.JText::_('CLICK_HERE_TO_EASILY_CREATE_YOUR_USER_ACCOUNT') . '&lt;/a&gt;&lt;/p&gt;';

in the preload of the email.

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

- **[davec](/forum/user/7092-davec "View davec's Profile")**
- [![davec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7092-davec "View davec's Profile") Topic Author
- [ Offline](/forum/user/7092-davec)

Less More

- Posts: 447
- Thank you received: 20
-
-

6 years 3 months ago [\#322772](#322772) by [davec](/forum/user/7092-davec "View davec's Profile")  Replied by *[davec](/forum/user/7092-davec "View davec's Profile")* on topic *[Url For Guests To Register](/forum/33-customers/900542-url-for-guests-to-register#322772 "-- HikaShop version -- : 4.3.0  Hi  I wish to change the URL for clients who then want to register after a guest checkout. The current URL is  I would like to change it to /registration-form/user/form. So would I use index.php?option=com&#95;hikashop&amp;view=user&amp;layout=form before the &amp;ctrl or /registration-form?  Thanks  David B)")*

Hi Nicolas

the customer tells me that there has been an issue with the Captcha when directed to the guest form. He has been directing them to the standard form.

So I would like to automate this so they go to the main registration form but with the parameters included to fill out the information if that is possible? The other option will be to remove the Captcha from the guest form if that is possible?

Thanks

David ![B)](/media/kunena/emoticons/9.png "B)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDA1NDItdXJsLWZvci1ndWVzdHMtdG8tcmVnaXN0ZXI/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

6 years 3 months ago [\#322783](#322783) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Url For Guests To Register](/forum/33-customers/900542-url-for-guests-to-register#322783 "-- HikaShop version -- : 4.3.0  Hi  I wish to change the URL for clients who then want to register after a guest checkout. The current URL is  I would like to change it to /registration-form/user/form. So would I use index.php?option=com&#95;hikashop&amp;view=user&amp;layout=form before the &amp;ctrl or /registration-form?  Thanks  David B)")*

Hi,

So if I understand correctly, the issue is that the captcha from our ReCaptcha plugin generates an error when you try to register via that guest registration form, is that correct ?
In that case, I think the best is to add the line: Code:

if (@$_REQUEST['option']=='com_hikashop' &amp;&amp; @$_REQUEST['ctrl']=='user' &amp;&amp; @$_REQUEST['task']=='guest_register') return true;

after the code: Code:

if (@$_REQUEST['option']=='com_updateme' &amp;&amp; @$_REQUEST['ctrl']=='subscription' &amp;&amp; @$_REQUEST['task']=='api') return true;

(two places) in the file plugins/system/recaptcha2/recaptcha2.php
That will skip the captcha check on the guest registration form as it is not necessary since the customer already validated the captcha on the guest form of the checkout.

Auto-filling the fields of the registration form with the data from the guest user is not impossible, but would require quite a bit of coding compared to the modification I propose above.

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

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

- **[davec](/forum/user/7092-davec "View davec's Profile")**
- [![davec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7092-davec "View davec's Profile") Topic Author
- [ Offline](/forum/user/7092-davec)

Less More

- Posts: 447
- Thank you received: 20
-
-

6 years 3 months ago [\#322790](#322790) by [davec](/forum/user/7092-davec "View davec's Profile")  Replied by *[davec](/forum/user/7092-davec "View davec's Profile")* on topic *[Url For Guests To Register](/forum/33-customers/900542-url-for-guests-to-register#322790 "-- HikaShop version -- : 4.3.0  Hi  I wish to change the URL for clients who then want to register after a guest checkout. The current URL is  I would like to change it to /registration-form/user/form. So would I use index.php?option=com&#95;hikashop&amp;view=user&amp;layout=form before the &amp;ctrl or /registration-form?  Thanks  David B)")*

Morning Nicolas

thanks for the reply. I have made the change as suggested.

Thanks

David ![B)](/media/kunena/emoticons/9.png "B)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDA1NDItdXJsLWZvci1ndWVzdHMtdG8tcmVnaXN0ZXI/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.095 seconds

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