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

#   Load object "userViewUser"?

##

- **[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")**
- [![shpuser's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/30542-shpuser "View shpuser's Profile") Topic Author
- [ Offline](/forum/user/30542-shpuser)

Less More

- Posts: 97
- Thank you received: 0
-
-

9 years 5 months ago [\#269448](#269448) by [shpuser](/forum/user/30542-shpuser "View shpuser's Profile")  *[Load object "userViewUser"?](/forum/27-checkout/890235-load-object-userviewuser#269448 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.6  In my shop config I have: Registration-&gt;Guest  I want to offer also my users to pay as guest but also to register. To do this I copied the file registration.php in &quot;/templates/my&#95;shop/html/com&#95;hikashop/user&quot;,  In the &quot;/templates/my&#95;shop/html/com&#95;hikashop/checkout/login.php&quot; I tried to call the registrationNEW.php with following command:  Error: object not found for: userViewUser  In registrationNEW.php it is on line 15, code: $this-&gt;display&#95;method  How can I load this object userViewUser?")* was created by *[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.6

In my shop config I have: Registration-&gt;Guest

I want to offer also my users to pay as guest but also to register. To do this I copied the file registration.php in "/templates/my_shop/html/com_hikashop/user",

In the "/templates/my_shop/html/com_hikashop/checkout/login.php" I tried to call the registrationNEW.php with following command: Code:

$usersConfig = JComponentHelper::getParams( 'com_users' ); $allowRegistration = 1; if($allowRegistration &#124;&#124; $this-&gt;registration[3]){ echo hikashop_getLayout('user','registrationNEW',$params,$js); }else{ echo JText::_('REGISTRATION_NOT_ALLOWED'); }

**Error**: object not found for: userViewUser

In registrationNEW.php it is on line 15, code: *$this-&gt;display\_method*

How can I load this object userViewUser?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDIzNS1sb2FkLW9iamVjdC11c2Vydmlld3VzZXI/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: 26400
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 5 months ago [\#269449](#269449) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Load object "userViewUser"?](/forum/27-checkout/890235-load-object-userviewuser#269449 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.6  In my shop config I have: Registration-&gt;Guest  I want to offer also my users to pay as guest but also to register. To do this I copied the file registration.php in &quot;/templates/my&#95;shop/html/com&#95;hikashop/user&quot;,  In the &quot;/templates/my&#95;shop/html/com&#95;hikashop/checkout/login.php&quot; I tried to call the registrationNEW.php with following command:  Error: object not found for: userViewUser  In registrationNEW.php it is on line 15, code: $this-&gt;display&#95;method  How can I load this object userViewUser?")*

Hello,

Why not using the HikaShop Business features which already allow to do so ?
[ www.hikashop.com/support/documentation/5....html#checkout\_login](https://www.hikashop.com/support/documentation/54-hikashop-config.html#checkout_login)

Regards,

---

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

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

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