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

#   Migrating from Opencart

##

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

Less More

- Posts: 259
- Thank you received: 22
-
-

2 years 2 weeks ago [\#363824](#363824) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  *[Migrating from Opencart](/forum/37-import-export-csv-xls/908732-migrating-from-opencart#363824 "I am about to start a new project migrating a site from Opencart. In the documents it says &quot;The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find...")* was created by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")*

I am about to start a new project migrating a site from Opencart. In the documents it says "The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find one selection for each shopping cart system and it will be active only if the shopping cart tables are detected in the database."
Does that mean I have to install Joomla on the existing Opencart database for this function to work?

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

Less More

- Posts: 86291
- Thank you received: 14269
-
-

2 years 2 weeks ago [\#363826](#363826) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Migrating from Opencart](/forum/37-import-export-csv-xls/908732-migrating-from-opencart#363826 "I am about to start a new project migrating a site from Opencart. In the documents it says &quot;The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find...")*

Hi,

Not necessarily. However, the tables of OpenCart need to be on the same database server.
So, you could use PHPMyAdmin to export the tables of OpenCart and import them in the same database where you have your Joomla website with HikaShop in it.

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

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

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

Less More

- Posts: 259
- Thank you received: 22
-
-

2 years 1 week ago [\#363998](#363998) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  Replied by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")* on topic *[Migrating from Opencart](/forum/37-import-export-csv-xls/908732-migrating-from-opencart#363998 "I am about to start a new project migrating a site from Opencart. In the documents it says &quot;The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find...")*

Hi Nicholas,
I just attempted the import and get this error:
Attempt to assign property "main_currency" on null

I have tried with the setting "Do you want to import your Opencart currencies rates ?" set to both Yes and No and get the same result. This is opencart version 2.1.0.2

Is this a Hikashop setting or an Opencart setting that I need to fix?

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

2 years 1 week ago -  2 years 1 week ago [\#364004](#364004) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Migrating from Opencart](/forum/37-import-export-csv-xls/908732-migrating-from-opencart#364004 "I am about to start a new project migrating a site from Opencart. In the documents it says &quot;The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find...")*

Hello,

In this kind of case, the method is to have more information around this error.
Therefore, you must activate Joomla debug mode, and at the maximum level.
[ ![alt](https://i.ibb.co/ZHy6ZmY/image.png) ](https://i.ibb.co/ZHy6ZmY/image.png "alt")

Then reproduce your issue, your error message will then be enriched with more information, so provided a screenshot so that we have more clues.
Regards

Last edit: 2 years 1 week ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 259
- Thank you received: 22
-
-

2 years 6 days ago [\#364019](#364019) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  Replied by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")* on topic *[Migrating from Opencart](/forum/37-import-export-csv-xls/908732-migrating-from-opencart#364019 "I am about to start a new project migrating a site from Opencart. In the documents it says &quot;The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find...")*

Thanks Philip,
I have set error reporting to maximum and debug on. I have also set logging to "almost everything". The error logs remain empty and the screen shot is here.
[ ![screenshot-dev&#95;trainpictures&#95;com&#95;au-2024&#95;10&#95;22-11&#95;36&#95;20.png](/forum/attachment/59911) ](/forum/attachment/59911 "...2-11&#95;36&#95;20.png")

- [ ![screenshot-dev&#95;trainpictures&#95;com&#95;au-2024&#95;10&#95;22-11&#95;36&#95;20.png](/forum/attachment/59911) ](/forum/attachment/59911 "...2-11&#95;36&#95;20.png") [ ](/forum/attachment/59911?download=1 "...2-11&#95;36&#95;20.png")

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

2 years 5 days ago -  2 years 5 days ago [\#364031](#364031) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Migrating from Opencart](/forum/37-import-export-csv-xls/908732-migrating-from-opencart#364031 "I am about to start a new project migrating a site from Opencart. In the documents it says &quot;The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find...")*

Hello,

Unfortunately this help us... Sorry for that.
And so, we will need but can you provide your csv file (our your database file) to better understand the situation.
Use our **[ Contact us](https://www.hikashop.com/support/contact-us.html)** form to provide this, and don't forget to add an **Url link to this topic**.
Regards

Last edit: 2 years 5 days ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 259
- Thank you received: 22
-
-

1 year 11 months ago [\#364146](#364146) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  Replied by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")* on topic *[Migrating from Opencart](/forum/37-import-export-csv-xls/908732-migrating-from-opencart#364146 "I am about to start a new project migrating a site from Opencart. In the documents it says &quot;The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find...")*

Thanks Philip,
I just took the code snippet in openc.php (around line 261 to 271) and asked Chatgpt what it did. I then took the output array of the $result that the code was trying to process and gave it to chatgpt as well as the error and asked what was wrong.

ChatGPT responded
"The error message "Attempt to assign property 'main_currency' on null" suggests that $this-&gt;options is not initialized before this code is executed. If $this-&gt;options is null, attempting to assign $this-&gt;options-&gt;$nk will cause this error."
and gave me this code to add at line 259

if (!is_object($this-&gt;options)) {
$this-&gt;options = new stdClass();
}

This has resolved the problem. Holy crap, we are all going to be out of work soon!!!

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

Less More

- Posts: 86291
- Thank you received: 14269
-
-

1 year 11 months ago [\#364148](#364148) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Migrating from Opencart](/forum/37-import-export-csv-xls/908732-migrating-from-opencart#364148 "I am about to start a new project migrating a site from Opencart. In the documents it says &quot;The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find...")*

Hi,

Thanks for your feedback.
I've made a similar patch on our end and included it in the install package available on our website.

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

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

Less More

- Posts: 259
- Thank you received: 22
-
-

1 year 11 months ago [\#364158](#364158) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  Replied by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")* on topic *[Migrating from Opencart](/forum/37-import-export-csv-xls/908732-migrating-from-opencart#364158 "I am about to start a new project migrating a site from Opencart. In the documents it says &quot;The data from OpenCart, RedShop and MijoShop can also be imported automatically into HikaShop. You'll find...")*

Glad it was resolved.

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

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

[](#top)
