Support is online

Multivariants -No orderable parent- Import Issue #7318

Open atrus opened this topic Tuesday, 28 April 2015 · 8 replies
Author

Hi Roland,

Noticed the following issue when importing multivariants with -no orderable parents- :

  • A blank row is appearing in the dropdown instead of -Select- , see attached image.

See also here

http://www.qttest.eu/cars/audi/audi-a4/audi-a4-mk1-b5-8d/audi-a4-b5-2wd-95-00-k-sport-coilover-suspension-detail

If i create the fields manually it is ok. I'm trying to find out more abt this!

See attached csv file and log.

Rgrds,
Chris

CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31

Support

Hello Chris,

If i create the fields manually it is ok. I'm trying to find out more abt this!

The empty entry comes from the parent product having no value in the COM_VIRTUEMART_CF_EDITION field. I will have to do some more checking/testing/shaving and will get back to you on this.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Great Roland, thanks, looking forward.

Rgrds,
Chris

CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31

Support

Hello Chris,

So I have done my tweaking :) Attached is the patch file that should fix the empty entry for the parent.

Let me know how it goes.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Thanks Roland,

Just tested, and we are almost there i think :)

I noted that the blank space is not there anymore. However, if you go to the parent product, you don't see the 'Select' option in the dropdown, but you get a preselection of the first child product which is not correct. No child product should be preselected, but a 'Select' option should be shown.

Wrong Display (CVSI Import) :

http://www.qttest.eu/cars/acura/acura-integra/acura-integra-mk2-da5-da9-db1-db2/acura-honda-integra-da6-single-cam-rr-eye-89-93-k-sport-coilover-suspension-detail

Correct Display (Manual Creation OR CSVI+Save):

http://www.qttest.eu/cars/acura/acura-integra/acura-integra-mk3-db6-db9-dc1-dc2-dc4/acura-honda-integra-dc2-single-cam-rr-fork-93-01-k-sport-coilover-suspension-detail

Pls notice that after CSVI import you can correct the display of the product by clicking SAVE in the product edit screen of VM3. It seems that VM3 is correcting/saving smth in the database which corrects the display :)

Rgrds,
Chris

CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31

Support

Hello Chris,

Actually I had the empty entry in the dropdown show up as Please select but that may be because I am using the fancy dropdown. I figured it wouldn't be nice, so I removed it alltogether :)

I have updated the code and now get the Please select in the empty dropdown as expected. Made some more cosmetic code changes.

Please give the attached patch file a try and let me know.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Thanks Roland, it is perfect now!

Rgrds,
Chris

CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31

@Atrus

This is exactly what I want to test at the moment.
Do you have a sample CSV file of how have imported your products that I could take a peek at?

I have already imported 100's of parent/child products and now want to use CSVi to set all the multi variants up, where all my parents are not orderable,

Thanks
Andy

Nil Satis Nisi Optimum !

Support

Hey Andy,

Did you see the Multi Variant tutorial?

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Log in to reply to this topic.