hi. for some reason i cant choose target currency when exporting virutemart products.. im using multiple currency in VM. i also run few times update available fields. in export im also using field salesprice with setting is price on. what is the reason?
i just updated ro csvi for latest version. im using joomla 5 and vm 4.4.0
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
ok. i dont understand the logic of that step, but it helped..
i have one more question. im using this eshop with multiple languages. but technically its working on multiple domains. different domains for different languages.
in export i cant use sef urls because i get error "The SEF URLs cannot be loaded as we did not receive the OK status. You can check that the Domain Name set in the Global Configuration of RO CSVI is the correct domain name. We received HTTP code 303 and the message ."
for product url and product image url im using rule for replace url from one in your settings..
so there is no way how to get sef urls for this other domains?
ok. the original issue with currencies is still not resolved. i found out that after i run the get rates from ecb, the prices in feed are completely different from prices i have on my eshop. i need to export using my prices from virtuemart... not some automatic recalculations.. im using my own prices without any conversion rates.
Hi,
First of, the SEF URLs, a 303 means a redirect has happened and we do not follow redirects. As for having multiple languages that should not be a problem because when you run the Refresh SEF URLs, this is done for all languages in your system. To get the SEF URLs for different domains you would need to change the domain name in the global settings of RO CSVI.
As long as the website does not return a 200 OK status the refresh of the SEF URLs will not happen. We need to find out why the redirect happens. RO CSVI calls the url https://DOMAIN/index.php?option=com_csvi&task=sefs.getsef&format=json&lang=LANGUAGE
If you have redirects in place due to the different languages/domains there should be an exception for the above URL as it is not domain specific.
Changing the domain name is not ideal but the only way I see this work as the system is not designed to work on multiple domains from a single website.
Second your prices. You should not need any conversion rates unless you are also dealing with multiple currencies that you want converted.
i need to export using my prices from virtuemart
That is fine but we need to see how we can find out when to get which price. In your screenshot I cannot see if you have assigned specific shopper groups to each price. We do not calculate prices ourselves but get them from VirtueMart because there can be all kinds of rules attached to a price. How does VM determine if it needs to use Koruna, Zloty or Euro? Does it depend on the shopper?
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
i dont understand the question. the currency is choosen by the visitor.. its a core vm feature with vm module for currency. shopper groups are for different using..
and what is your "target currency" option then for? it dont do anyting regardless what currency i choose there.. as i send you the printscreen before, you can see i have set price for every currency.. and that prices i need to export.. so how to get them if your "target currency" do nothing?
for my multidomain issue. as you said, your extension is not designed to work on multiple domains. so thats the only reason why its not working. i cant change the domain in your settings because than it broke my other templates. so the question is. can you give us option to ignore this one main domain setting on some exports? or can you give us option to setup multiple domains that will be accepted?
Hi,
i dont understand the question. the currency is choosen by the visitor.
That is the answer I am looking for. The visitor can choose which currency they would like to pay in.
its a core vm feature with vm module for currency. shopper groups are for different using..
Yes and no, you can use shopper groups to determine which prices a visitor sees.
and what is your "target currency" option then for?
This is used for converting currencies from your shop currency to another currency. So, let's say your shop is Euro and you want to export in Dollars. You would select dollar there. That is converting the actual value, not using the value you have setup in your shop.
We are going to check this further and get back to you, need to check how you can get the currency you want. We will get back to you on that.
your extension is not designed to work on multiple domains. so thats the only reason why its not working.
That is primarily because most users do not run a setup like yours. I think this is not even native Joomla either as Joomla has no multi-domain support.
can you give us option to ignore this one main domain setting on some exports?
Well, you can work around that with the replacement rules. You can create a find/replace URL and assign it to the relevant field. Let's say you have an export template for product URLs that have a domain of a.com but you want it to be b.com, you can create a replacement rule that changes a.com into b.com during export. You are still going to need one template per domain. RO CSVI won't export all domains in 1 file, at least I do not see how that would work.
or can you give us option to setup multiple domains that will be accepted?
There will not be mutli-domain support build into RO CSVI as there is simply not enough users for such a change. As I mentioned earlier, I think the replacement rule might give you want you want. With the rules you can manipulate the export in many ways. Something else I just thought of. RO CSVI supports template overrides, what you could do is create a copy of the product export template and in the export template set the domain name you want to use. In your export template for that specific domain you would choose the override for that specific domain.
You can read about creating the overrides in this document. You only need a 1 line change in that case. You will find in the file plugins/csviaddon/virtuemart/com_virtuemart/model/export/product.php the line
$this->domainName = $this->settings->get('hostname');
which you would change to
$this->domainName = 'https://mydomain.com;
where you change mydomain.com to whatever domain you want in the copy of the file, not the original file. This way you can have exports for as many domains as you like.
i cant change the domain in your settings because than it broke my other templates.
You would change it back once the task is done that you are doing.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
ok. i will wait for your reply to currencies issue.. those prices are set in vm and are using normally frontend so there should be a way how to export them..
so the "target currency" option is a different feature from prices in vm. and can export prices in currency that are not even used in vm? thats strange feature. if anyone need this he can use simple rule for conversion.. ok. so i hope there is a way how to export my actual prices.
as for the multidomain issue. im already using rule for changing domain for product url and picture url. but it only works if i dont use sef urls. if i enable sef urls i get that error.. i cant change the domain settings back and forth, because all these templates are running on cron for products feeds.. i understand there is not much users with this workflow, but in fact i dont understand why you are putting ony one domain to your extension. if you just create relative urls as all joomla is using there will be no issue. thats the advantage of cms like joomla, they can be manipulated many ways. i dont understand why you restrict the outcome for only one domain. but ok. i will look into that override solution.. it will be able to work if i have multiple vm product exports running daily on cron for different domains?
thank you
if anyone need this he can use simple rule for conversion
The problem is that exchange rates vary, so using the ECB currencies list makes sure you are not charging too much or too little.
ok. so i hope there is a way how to export my actual prices.
We are looking into it already.
it will be able to work if i have multiple vm product exports running daily on cron for different domains?
Yes because the domain is set in the override and not dependent on the global configuration setting.
but in fact i dont understand why you are putting ony one domain to your extension. if you just create relative urls as all joomla is using there will be no issue.
You cannot use relative URLs for external exports for example to send a product list to another party.
if i enable sef urls i get that error..
Did you check why that URL redirects or how to ignore a redirect for that URL? I am guessing it has to do with redirecting to a specific domain even though it is a non-sef URL.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Hello,
We have added the feature of setting currency filter in VirtueMart Product export and VirtueMart Price export in the attached patch file. Load the patch file and set the currency filter in Price Currency field on Options tab. Run the export and check. Let us know on how that goes.
Override looks fine. The error with 303 redirect issue is not something we can fix. Your server is doing the redirect with SEF URLs. Please check what is causing this or if there is any way to ignore these redirects.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Hi,
I checked the template GOOGLE_MERCH DE but you have not selected any currency on that template. Once I selected Euro, I am getting the price in euro with the euro currency name. You can see the attached screenshot with the changed setting that I did. In the export file is no mention of CZK in that case.
I also had a check on the SEF URLs, when you run them from the citricidal.cz the request is forwarded to nutribiotic.eu, that is why you get that error. Running the request on nutribiotic.eu itself does not trigger a redirect. That is something you can look into.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
you are working with wrong template. i write you i have problem with template id 17.. i need prices in czk. and sef do not work there on any domain.
you are working with wrong template.
You are working with the wrong override. Since we posted a patch file to give you the option to select the currency you want to export you should also update your override. I have turned off the override on template ID 17, then you get the correct price and currency. Easiest is to create a new override with your change since I think the change you made is only the domain name.
and sef do not work there on any domain.
You should check with Mighty Sites how to prevent the redirect. There should not be a redirect on that URL because we want to get the SEF URLs for the domain we request.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
ok, i created another override again from the product.php file. and it seems finally i can get my prices...
thank you for that..
in the override i change the domain, but it still do not work. mightysites would not be the issue as everything else on the web is working correctly. what redirect do you mean? the export is running in backend on domain citricidal.cz. there is none redirect from mightysites.. its your extension is somehow restricted for one domain and is expecting something with urls during the export process.. and it seems it dont work even if we rewrite the domain in that override.. that export is not working even on main or alias domain.. so i dont know what redirection from mightysite is the issue.. in this case it would work on one of them.. so its some workflow issue in your extension.
so its some workflow issue in your extension.
No it is not, you are also the only person with this issue. So to give you some insight, RO CSVI sends out a request to https://citricidal.cz/index.php?option=com_csvi&task=sefs.getsef&format=json&lang=en and this returns an HTTP 303 status. The same thing you will see when you do a cURL call to that URL:
curl -X POST -I "https://citricidal.cz/index.php?option=com_csvi&task=sefs.getsef&format=json&lang=en"
HTTP/2 303
server: openresty
date: Sat, 27 Dec 2025 16:23:56 GMT
content-type: text/html; charset=utf-8
content-length: 0
location: https://nutribiotic.eu/index.php?option=com_csvi&task=sefs.getsef&format=json&lang=en
expires: Wed, 17 Aug 2005 00:00:00 GMT
cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
pragma: no-cache
set-cookie: e7e7af23f369a12872ab86222d0ca2c0=801cea4b79703012a0a06b670278fac5; path=/; secure; HttpOnly
last-modified: Sat, 27 Dec 2025 16:23:56 GMT
alt-svc: h3=":443"; ma=86400
A normal response would be to get a 200 OK status. So, why is your server returning an HTTP 303 status?
there is none redirect from mightysites
So what is doing that redirect then?
its your extension is somehow restricted for one domain and is expecting something with urls during the export process.
Well, you need to specify the domain name somewhere that you want to use in your URLs. RO CSVI cannot help that you use 1 site for a number of different domains. This is a use-case so rare we have no support for that.
The one thing you can try is to modify the file administrator/components/com_csvi/helper/sef.php and remove line 182.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
ok. thanks for more info.
just one quick question.. is that result the same error if you change the language code in that url??
https://citricidal.cz/index.php?option=com_csvi&task=sefs.getsef&format=json&lang=cs
ok. i just make that curl check with correct language code and i get 200 code respond..
so that redirection is making the wrong language in that url you provided.. i have setup language to czech in the template so it seems your url is ignoring that..
Hi,
i have setup language to czech in the template so it seems your url is ignoring that..
Where did you see that in the code or you are just guessing?
I had a further look at how you can override the domainname from the global configuration and I think I found a solution but you will need to test that. First off, your override that you have now can be reverted. So line 151 looks like this again.
$this->domainName = $this->settings->get('hostname');
After line 145 you can place this code and replace abc with the domain name you want to use.
$r = new \ReflectionObject($this->settings);
$p = $r->getProperty('params');
$p->getValue($this->settings)->set('hostname', 'abc');
$this->sef = new \CsviHelperSef($this->settings, $this->template, $this->log);
Check then if you get the SEF URLs.
Our testing also revealed something else that gave some insight. Domain nutribiotic.eu with lang eu gives a 200, domain nutribiotic.eu with lang cs gives a 303, domain citricidal.cz with lang es gives a 200.
So if your domain name is set to nutribiotic.eu and template language to cs, you will get that 303. Now with this override the domain should be citricidal.cz with language cs to get you that 200 request.
Let us know how it goes.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
hi.
yes, now it seems it finally works..
thank you for that.
i was reffering to the url you provided in previous post - https://citricidal.cz/index.php?option=com_csvi&task=sefs.getsef&format=json&lang=en.
there is wrong language code that was causing wrong redirection you posted as an issue. i dont know where that url is using, but if you change the language code at the end to correct one, the curl answer was 200..
the redirections you mention at the end is correct. as i write before, when i was sending login data, its possible to login to the both domains admin with the same data..
i was testing and running template export from both domains backend, but was getting that error on both before.. now it works from both.
thank you again
Hi,
i was testing and running template export from both domains backend, but was getting that error on both before.. now it works from both.
Glad to hear that it works.
there is wrong language code that was causing wrong redirection you posted as an issue.
Yes, it took some time to realize how the system actually works and that there is no en language.
All is well that ends well. I will close this issue. In case you have further questions/issues please create a new topic.
Happy holidays.
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.