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

#   Adding product by custom php and variants issue

##

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

Less More

- Posts: 10
- Thank you received: 1
-
-

10 years 7 months ago -  10 years 7 months ago [\#233403](#233403) by [vahid.vdn](/forum/user/38805-vahid-vdn "View vahid.vdn's Profile")  *[Adding product by custom php and variants issue](/forum/31-development/883109-adding-product-by-custom-php-and-variants-issue#233403 "-- HikaShop version -- : 2.6.1  I am getting some data from external xml file and adding them to hikashop. Everything is working fine in the front-end. Customer can see variants and works perfect. But in joomla administrator , in variant tab, there is no varient (for editing). Why it shows variants in the site but not showing it in administrator side??  My adding scenario: Imagine the main product has id 1 and parent&#95;id is 0. The other choices has id 2,3 and parent&#95;id 1. In hikashop&#95;variant table: product with id 1 (parent product) has parent characteristic and child characteristic. But child products with id 2 and 3 has only child characteristic.  This is what I understood from other products that I inserted from hikashop panel in joomla. But as I mentioned what I insert from my custom panel, works fine in front-end (site) , but doesn't show the variants in joomla administrator. Any idea?")* was created by *[vahid.vdn](/forum/user/38805-vahid-vdn "View vahid.vdn's Profile")*

-- HikaShop version -- : 2.6.1

I am getting some data from external xml file and adding them to hikashop.
Everything is working fine in the front-end. Customer can see variants and works perfect. But in joomla administrator , in variant tab, there is no varient (for editing). Why it shows variants in the site but not showing it in administrator side??

**My adding scenario:**
Imagine the main product has id 1 and parent_id is 0. The other choices has id 2,3 and parent_id 1.
In hikashop_variant table: product with id 1 (parent product) has parent characteristic and child characteristic. But child products with id 2 and 3 has only child characteristic.

This is what I understood from other products that I inserted from hikashop panel in joomla. But as I mentioned what I insert from my custom panel, works fine in front-end (site) , but doesn't show the variants in joomla administrator.
Any idea?

Last edit: 10 years 7 months ago by [vahid.vdn](/forum/user/38805-vahid-vdn "View vahid.vdn's Profile").

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

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

Less More

- Posts: 10
- Thank you received: 1
-
-

10 years 7 months ago [\#233404](#233404) by [vahid.vdn](/forum/user/38805-vahid-vdn "View vahid.vdn's Profile")  Replied by *[vahid.vdn](/forum/user/38805-vahid-vdn "View vahid.vdn's Profile")* on topic *[Adding product by custom php and variants issue](/forum/31-development/883109-adding-product-by-custom-php-and-variants-issue#233404 "-- HikaShop version -- : 2.6.1  I am getting some data from external xml file and adding them to hikashop. Everything is working fine in the front-end. Customer can see variants and works perfect. But in joomla administrator , in variant tab, there is no varient (for editing). Why it shows variants in the site but not showing it in administrator side??  My adding scenario: Imagine the main product has id 1 and parent&#95;id is 0. The other choices has id 2,3 and parent&#95;id 1. In hikashop&#95;variant table: product with id 1 (parent product) has parent characteristic and child characteristic. But child products with id 2 and 3 has only child characteristic.  This is what I understood from other products that I inserted from hikashop panel in joomla. But as I mentioned what I insert from my custom panel, works fine in front-end (site) , but doesn't show the variants in joomla administrator. Any idea?")*

I found the answer! :lol:

I turned on **Debug System** from administrator and saw the queries in hikashop panel. I found out that there is a query that just selecting by **product\_type** column. And I didn't change it to variants. (All of them was main)

Thanks.

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

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

[](#top)
