1. DarkoF
  2. RO CSVI
  3. Monday, 19 December 2022
  4.  Subscribe via email
Hi, I have question regarding XML for Virtue mart Product export

1. I would like export also value of certain custom fields is this possible?
2. I would like export only product from one or two categories is this possible?
3. I would like to use condition to export only product from some category if certain custom field exist is this possible?

Thank you
Accepted Answer
Accepted Answer Pending Moderation
Hello,
I triger Cron from my host:

/usr/local/bin/php /home/siga01/domains/strugarstvo.com/public_html/path/file.php

Please read the document Setting up cron jobs in RO CSVI to set up cron for a template.

or browser

/usr/bin/wget -O /dev/null "https://tstrugarstvo.com/index.php?

To run cron job as URL check the document Run an RO CSVI cron job using a URL on the frontend
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. # Permalink
Accepted Answer Pending Moderation
I have a problem
I made this website on test domain strugarstvo.si a week ago then I delete old J3 website and copy this new one production mode on domain strugarstvo.com


I made backup with Akeeba from .si to .com all url should be rewrite according to new domain.

But when i export template Bolha.xml

i get for URL:
<![CDATA[ https://strugarstvo.si/component/virtuemart/struzne-ploscice/knux-160405r11-qp1025?Itemid=161 ]]>

For image:
mage>https://strugarstvo.si/images/shop/product/knux160405r11.jpg</image>

This is not OK

Should I see in database where is this URL?

I sistem SEF plugin I have https://strugarstvo.com
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello,

When you go to Templates in RO CSVI, click on the Options button on the top right corner. You have set a domain name in the global configuration, I think this still has your old domain.
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. # 2
Accepted Answer Pending Moderation
Ok thank you I set to .com in options.

I wonder why I need to use <![CDATA[ for URL since we didn't change anything and It worked all the time without CDATA and all suddenly stop working few hours ago.
Is possible to know which url is in question?
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello,

Is possible to know which url is in question?
Does it matter? CDATA tags are good to use anyway if you do not fully control the data going out.

If you want to find out which URL it is, set the CDATA option to No and check your XML file where the browser tells you it has a problem.
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. # 4
Accepted Answer Pending Moderation
Also it Bothers me sef url:

https://strugarstvo.si/component/virtuemart/struzne-ploscice/knux-160405r11-qp1025?Itemid=161

I would like to have sef canonical:
https://strugarstvo.si//trgovina/merilna-tehnika/merilna-sablona-za-navoje-metricna

I did set in template use canonical category to yes, but not working.
I don't also have all product set canonical.
Is hard to edit 8000 product and for each one manual canonical , is possible to do this with ROCsvi?
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
_________
If you want to find out which URL it is, set the CDATA option to No and check your XML file where the browser tells you it has a problem.
___________

Yeah It have problem from first URL first product, but when I inspect this url is just fine and It is working before no special tags nothing.
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello,

Yeah It have problem from first URL first product, but when I inspect this url is just fine
The URL does not meet the XML specifications, that is why the browser is complaining about it. The & is a reserved character for example. I do not know what else is in the URL of course, the XML no longer shows it. That is why the CDATA tag exists, this tells the XML parser to not treat it as anything special.

The two URLs you listed above are two completely different products, they cannot be canonical to each other. The URL with the Itemid is odd because it is not a proper SEF URL, something is wrong with the generation of the SEF URLs. RO CSVI does not generate the SEF URL itself but gets it from Joomla. You can try to refresh the SEF URLs by going to Maintenance -> VirtueMart -> Refresh SEF URLs.

When you run the export, make sure the debug is enabled and post the debug log for us to check.
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. # 7
Accepted Answer Pending Moderation
Yes correct canonical for URL
https://strugarstvo.si/component/virtuemart/struzne-ploscice/knux-160405r11-qp1025?Itemid=161
is
https://strugarstvo.si//trgovina/struzne-ploscice/knux-160405r11-qp1025
I inspected different product to many pages I have open,

I already did SEF URLs by going to Maintenance -> VirtueMart -> Refresh SEF URLs. and didn't help.

Sir I know is hard to believe but I don't have any character & or similar to my URL all these product were already before send by XML to google merchant centre, Amazon, Slovenian Bolha and so on in Joomla 3. Unfortunately old component don't support J4 and I'm quite happy with RO CSVI.

That is way I'm worried because something not's OK with URLs

Also I don't like to send component/virtuemart/ in my URL

Thank you
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello,
https://strugarstvo.com/bolha.xml

And I get error

I don't see any error with that link. Please see attached screenshot. But I am looking into the issue of component/virtuemart showing in the product_url. Will keep you updated on my findings.
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. # 9
Accepted Answer Pending Moderation
______
But I am looking into the issue of component/virtuemart showing in the product_url. Will keep you updated on my findings.
______

Please do so, this is rely important thank you.
  1. more than a month ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
____
I don't see any error with that link. Please see attached screenshot. But I am looking into the issue of component/virtuemart showing in the product_url. Will keep you updated on my findings.
___

There is no error because I use CDATA for Url links

But keep in mind this behaviour start appear after our conversation here https://rolandd.com/support/ro-csvi/import-prices-and-stock

Before you can see all URl were shown without CDATA.

I do't know if this info is any help to you just my observation.

Thank you.
  1. more than a month ago
  2. RO CSVI
  3. # 11
Accepted Answer Pending Moderation
Hello,

Just something I came to think of, once the URLs are correct SEF URLs, I think you will not see the issue either. Now the SEF URLs have the ? in them, that might be problematic. Using CDATA is recommended anyway, if there is ever a URL using restricted characters it will not immediately break the XML markup.

Let's see what Tharuna comes back with tomorrow.
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. # 12
Accepted Answer Pending Moderation
Hi
Thanks for support,
I don't mind using CDATA but I would like to have proper SEF canonical URls

this is the link from my back up of old J3 page, please see. at the moment is on the .eu domain Is created with old component, and I try to recreate with RO Csvi component on .com.

From .EU old back up:
https://strugarstvo.eu/en/?option=com_productxport&view=server&code=bolha.com&tmpl=component

Currently:
https://strugarstvo.com/bolha.xml

I don't see any ? in SEF urls.
  1. more than a month ago
  2. RO CSVI
  3. # 13
Accepted Answer Pending Moderation
Hello,

So I have been looking into this some more and found out it comes from the Itemid we include. I uploaded a patch file with the changes to deal with this and ran the XML export. Now I can see the correct URLs.

Please check and let me know if this is fine 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. # 14
Accepted Answer Pending Moderation
That is awesome job, also a great support.

Will this patch be include in to next update?

Also I have some minor the thing to ask, but is no so important

Here
https://strugarstvo.com/bolha.xml
under <product_attribute> tag I use rule condition to display code block if custom field value exist.

But Im, not rely happy with display because there should be tag not value.

I try to achieve result for tag <product_attribute> as is displayed here:

https://strugarstvo.eu/en/?option=com_productxport&view=server&code=bolha.com&tmpl=component

If this could be achievable will be perfect.

Thank you

P.S

I wish you also merry Christmas and happy new year
  1. more than a month ago
  2. RO CSVI
  3. # 15
Accepted Answer Pending Moderation
Hello,
Will this patch be include in to next update?

Yes the patch will be included in next RO CSVI release.

But Im, not rely happy with display because there should be tag not value.

RO CSVI rules runs on field values and not on fields itself and so the block of code is shown as value. I changed <product_attribute> as a node in XML Layout in template but the other nodes are considered as value of <product_attribute> node.

So I did few changes to If custom exist Material obdelovanca rule on your site and added <product_attribute> node to XML Layout and also added two custom template fields. Now I see the first product gets the <product_attribute> node but the other products have different COM_VM_CUSTOM_LASNOSTI_MATERIJAL_OBDELOVANCA value which does not match to the value set in conditional rule and so <product_attribute_description><text> node is empty. See attached screenshots. You can work on these changes and also apply it on other fields.

I wish you also merry Christmas and happy new year

Merry Christmas and happy new year to you.
Attachments (4)
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
Great thank you for your for all help Tharuna and Rolland

I will play with this settings and I hope empty nodes in xml don't cause troubles when I submit XML.

And my suggestion for the next feature in your component which is already awesome, is option to display block of code with nodes and custom field values if custom field exist. This will make perfect XML, more than anyone could wish for.

I manage to achieve this in J3 with this code maybe it will help you.


on J3 I did like this in php:

if ($product->custom_field_90) {
echo "<product_attribute>\n";
echo "<attribute_id>12</attribute_id>\n";
echo "<product_attribute_description>\n";
echo "<text>";
list($value)=explode(chr(0),$product->custom_field_90);
if ($value == "VM_COS_MATERIAL) {
$matValue = Steel | Steel alloys (P)";
}

  1. more than a month ago
  2. RO CSVI
  3. # 17
Accepted Answer Pending Moderation
Hello,
And my suggestion for the next feature in your component which is already awesome, is option to display block of code with nodes and custom field values if custom field exist. This will make perfect XML, more than anyone could wish for.

Thank you for your suggestion. You are our first user coming with this request. We will consider this feature once we get more requests.
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
  • Page :
  • 1
  • 2


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