1. atrus
  2. RO CSVI
  3. Wednesday, 15 February 2017
  4.  Subscribe via email
Hello to all,

Trying to import some related categories in VM3, but for some reason, CSVI instead of updating the related categories, updates the related products with some random products.

See attached relevant files/logs for your advice.

Rgrds,
Chris
Accepted Answer Pending Moderation
Hello,
In your phpmyadmin, what do you see in #__virtuemart_customs table for id 1 and id 2? As per VirtueMart id 1 should be for related products and id 2 for related categories. Your debug log says that processing has happened with id 1 which is for related products. So i would like to know what is actually stored in that table. Can you also post the screenshot of your VirtueMart custom fields page?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Thanks tharuna, indeed is 1 for rel products and 2 for rel cats. rel1.jpg rel_products_cf.jpg rel_cats_cf.jpg

see attached also pics from cf menu

rgrds,
chris
Attachments (3)
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello Chris,

CSVI doesn't actually force the ID of these fields but looks for them in the database based on their field_type. So I ran your import file you posted and the categories were assigned to the product.

Can you check in your database table virtuemart_customs which entry has a field_type of Z? Is there just one or are there multiple? The related products should be type R and the products type Z. I have the idea that your related products also has type Z.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Thanks Roland,

I checked virtuemart_customs:

Related products have field_type R
Related categories have field_type Z

Above our unique, i.e there is no other entry in the table with R or Z.

Rgrds,
Chris
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello Chris,
Can you send your #__virtuemart_custom table mysql dump in private message? I will run the import here with your table to check.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Sure Roland, pls see attached.

Thanks,
Chris
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello Chris,
Found the problem, the virtuemart_vendor_id in your #__virtuemart_custom table is 1 for both related products and related categories but it has be 0. I am not sure how it has been changed but 0 is the value inserted when you install VirtueMart. Can you change this virtuemart_vendor_id value to 0 for both related products and related categories and then do the import?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
Thanks Tharuna!

I'm not sure also, but vendor_id is 1 all over my installation, i.e. all relevant tables have id = 1, so changing to 0 is a bit tricky. Maybe i can change to 0, then import, then change back to 1 for this table only.

Maybe it would be better for CSVI to support multi-vendor export-import anyway? So that we may be able to select vendor at template settings?

Rgrds,
Chris
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello Chris,
I'm not sure also, but vendor_id is 1 all over my installation, i.e. all relevant tables have id = 1, so changing to 0 is a bit tricky. Maybe i can change to 0, then import, then change back to 1 for this table only

vendor_id 1 is the default value in VirtueMart but for these two rows related product and related categories vendor_id is 0, you can cross check in VirtueMart installation files.

Maybe it would be better for CSVI to support multi-vendor export-import anyway? So that we may be able to select vendor at template settings?

CSVI has no control on the related products and related categories fields, these are core VirtueMart rows and I dont think adding the option of multi-vendor for export/import will anyway help as the virtuemart_vendor_id for these two rows are going to be 0.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 9
Accepted Answer Pending Moderation
Hi Tharuna,

Changed vendor_id to 0 in _customs table, run import but again same result.

Then switched back to 1 and tried also to change :

where($this->db->quoteName('virtuemart_vendor_id') . ' = 1') in adminstrator\components\com_csvi\addons\com_virtuemart\helper\com_virtuemart.php

run again, but same result!

Rgrds,
Chris
  1. more than a month ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
Hello Chris,
Can you again send me your #__virtuemart_customs table with the changes you made?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 11
Accepted Answer Pending Moderation
Hello Tharuna,

Pls see attached.

Rgrds,
Chris
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 12
Accepted Answer Pending Moderation
Furthermore, all the other custom fields for the imported products were lost unfortunately... There is no way to append new custom field values to the products without erasing the old ones?

Rgrds,
Chris
  1. more than a month ago
  2. RO CSVI
  3. # 13
Accepted Answer Pending Moderation
Hello Chris,
Thank you for sending your virtuemart customs table, you changes look good and it should import correct after these changes. Can you send me your administrator and database access details to check?

Furthermore, all the other custom fields for the imported products were lost unfortunately... There is no way to append new custom field values to the products without erasing the old ones?

You can avoid losing the old custom fields by setting Delete custom field relations to No in your template settings and on options tab.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 14
Accepted Answer Pending Moderation
Hello Chris,
Thank you for sending your site access details. Can you also send me your database access details?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 15
Accepted Answer Pending Moderation
Hi Tharuna,

Sent already, pls check and let me know!

Rgrds,
Chris
  1. more than a month ago
  2. RO CSVI
  3. # 16
Accepted Answer Pending Moderation
Hello Chris,
It looks like CSVI has been blocked in your site. When i run the import, it takes me to front end. Can you check your .htaccess file and unblock CSVI? Can you also post your ftp access details? I see something weird happening with related categories and loading a patch file for every change is getting difficult.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 17
Accepted Answer Pending Moderation
Hi Tharuna,

Will send you the ftp details with PM.

Now for the block it's weird, i think it has to do with Cloudflare, need to dig further. reverting.

Rgrds,
chris
  1. more than a month ago
  2. RO CSVI
  3. # 18
Accepted Answer Pending Moderation
Hi Tharuna, you can do the import and your tests now, it's ok.

Thanks,
Chris
  1. more than a month ago
  2. RO CSVI
  3. # 19
Accepted Answer Pending Moderation
Hello Chris,
Can you check your site now with import? Related categories seems to work good. Check and let me know.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 20
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
Be one of the first to reply to this post!