1. Marcel
  2. RO CSVI
  3. Wednesday, 03 July 2019
  4.  Subscribe via email
Hi Tharuna
when we import a new XML file with the template you created for us, everything works fine. The products in the file are imported in the category as defined in the Importfile. We changed the sort-order of the products in VM so we can determine which suit is shown first in the category view. After the new import that custom order stays the same. The setting we use for append categories is "yes" so it's does not need to set the category again but only add new ones. We did some changes in the import file because sometimes we want to add multiple categories or change the category of a product. To make that possible, we needed to change the setting append categories to "no", that means the category is set again during import, even if the category stays the same. Is there a way to keep the same sort order setting after a new import where we set append categories to "no"?

Thanks, kind regards, Marcel
Accepted Answer Pending Moderation
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
New Reply Added

tharuna replied to the discussion Product ordering after new import














Hello,


This is a notification to let you know that tharuna has replied to the discussion on the site. You may find the snippet of the reply below:








Hello Marcel,

You can load the attached patch file to get multiple values separated by | for product_ordering field in export.




Attachments:







patch_vm_2019_08_09.zip






ed.require(['edq', 'easydiscuss', 'jquery.fancybox'], function($, EasyDiscuss) {

// Bind the delete attachment buttons
var attachmentWrapper = $('[data-ed-attachment-item]');

$(document)
.on('click', '[data-ed-attachment-delete]', function() {

var id = $(this).parents(attachmentWrapper.selector).data('id');
var parent = $(this).parents(attachmentWrapper.selector);

EasyDiscuss.dialog({
content: EasyDiscuss.ajax('site/views/attachments/confirmDelete', { "id": id }),
bindings: {
"{submitButton} click": function() {

// Remove the attachment
parent.remove();

// When the delete button is clicked, call the ajax method to remove the attachment
EasyDiscuss.ajax('site/views/attachments/delete', {
"id": id
}).done(function() {

// Hide the dialog
EasyDiscuss.dialog().close();
});
}
}
})
});

// Apply fancybox
var attachmentPreview = $('[data-ed-attachment-preview]');

attachmentPreview.fancybox({
type: 'image',
wrapCSS: 'fancy--ed-image',

helpers: {
overlay: null
}
});

});













Read this discussion
















This email was sent to you, because you have subscribed to the discussion.

To unsubscribe, please click here. Manage subscriptions.
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello Marcel,
You can load the attached patch file to get multiple values separated by | for product_ordering field in export.
Attachments (1)
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
Hello Marcel,
Apologies, i was talking about import in my previous reply. I see you have issue with export. We do not have multiple values support in export. Will look into it and get back with an update.
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. # 8
Accepted Answer Pending Moderation
Hello Marcel,
product_ordering should work for your values 5|2 because we do support multiple values for product_ordering field. Is it not working for you?
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
Great!
But now the final thing is this;

In the export file, there is this;
product_sku;product_ordering;category_id
111200077;5;1|14

But it should be:
product_sku;product_ordering;category_id
111200077;5|2;1|14

so, in cat. ID 1, the ordering is 5
and in cat ID 14 the ordering is 2

How can I get ordering "2" for cat ID 14 in the export?
  1. more than a month ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
Marcel,

Actually I did not like it so much ;) The system got stuck in a loop :D All should be cleared out now.
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. # 11
Accepted Answer Pending Moderation
Hello Marcel,
Glad to know that you found it.:D
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. # 12
Accepted Answer Pending Moderation
You must like it very very very much!
:D
  1. more than a month ago
  2. RO CSVI
  3. # 13
Accepted Answer Pending Moderation
Found it....
I needed to export and import category ID...
  1. more than a month ago
  2. RO CSVI
  3. # 14
Accepted Answer Pending Moderation
Tharuna!
I was busy but now I need to solve this. To make things very clear, I created a jpg. Please check if it's clear like this
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 15
Accepted Answer Pending Moderation
Hello Marcel,
Are you looking at importing custom fields ordering or product ordering? They are two different things and seems like there is a confusion with the ordering you are doing.
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. # 16
Accepted Answer Pending Moderation
Thanks Tharuna!
I exported and that file seems ok. Then I imported it (on a different domain (server13) but it does not change the custom order
Can you take a look?

Marcel
  1. more than a month ago
  2. RO CSVI
  3. # 17
Accepted Answer Pending Moderation
Hello,
Ok, pordering field is for ordering of child products for a parent product and can be seen in virtuemart_products table. product_ordering gets the ordering of a product in a category which is from virtuemart_product_categories.
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. # 18
Accepted Answer Pending Moderation
This is with the pordering

product_sku;product_ordering;pordering
111200278;44;0
25000303;51;0
25000305;17;0
25000306;16;0
25000307;15;0

The value is "0" for that field.
  1. more than a month ago
  2. RO CSVI
  3. # 19
Accepted Answer Pending Moderation
No

This;
product_sku;product_ordering
111200278;44

And that's good I think because I compared the value in VM backend and the number in the CSV.
  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!