VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum
Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Scripts in export

Scripts in export 28 Jul 2016 13:38 #1

Hello,

Great plugin!

I am running Joomla! 3.5.1, VirtueMart 3.0.14 and EU Sales Reports 0.5.
The issue I found is that in an exported document there are java scripts?
<script id="updateChosen_js" type="text/javascript">//<![CDATA[ 
if (typeof Virtuemart === "undefined")
	var Virtuemart = {};
	Virtuemart.updateChosenDropdownLayout = function() {
		var vm2string = {editImage: 'edit image',select_all_text: 'Alles selecteren',select_some_options_text: 'Voor iedereen beschikbaar'};
		jQuery("select").each( function () {
			var swidth = jQuery(this).css("width")+10;
			jQuery(this).chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text,disable_search_threshold: 5, width: swidth});
		});
	}
	Virtuemart.updateChosenDropdownLayout(); //]]>
</script>

<script id="vm.countryState_js" type="text/javascript">//<![CDATA[ 
vmSiteurl = "http://localhost/jolo/";

		jQuery( function($) {
			$("#virtuemart_country_id_field").vm2front("list",{dest : "#virtuemart_state_id_field",ids : "735",prefiks : ""});
		}); //]]>
</script>
<script id="keepAliveTime_js" type="text/javascript">//<![CDATA[ 
var sessMin = 15;var vmAliveUrl = "index.php?option=com_virtuemart&view=virtuemart&task=keepalive";var maxlps = "5";var minlps = "2"; //]]>
</script>

Any idea how to resolve this?

Kind regards,
Jack Houben
The administrator has disabled public write access.

Scripts in export 30 Jul 2016 19:58 #2

Dear Jack,
Thank you for reminding us about this issue (we have encountered this ourselves with our own EU sales reports, but we just removed the JS manually before submitting the exported file to the tax authorities, rather than fixing the bug for sure - shame on us, I know...).

We have now fixed this issue for good and released a new version 0.6 of the plugin.

Best regards,
Reinhold
The administrator has disabled public write access.

Scripts in export 01 Aug 2016 10:10 #3

Thanks!
The administrator has disabled public write access.

Scripts in export 01 Aug 2016 10:39 #4

btw:
You could add onchange to the checkbox on line 50 in default.php (tmpl folder)
Change:
                        <label><input type="checkbox" <?php if ($this->include_taxed_orders) { ?>checked <?php } ?> name="include_taxed_orders" value="true" style="vertical-align: top; position: relative; bottom: 1px;">&nbsp;<?php echo vmText::_('VMEXT_EU_RECAP_INCLUDE_TAXED'); ?></label>

into
                        <label><input type="checkbox" <?php if ($this->include_taxed_orders) { ?>checked <?php } ?> name="include_taxed_orders" value="true" style="vertical-align: top; position: relative; bottom: 1px;" onchange="this.form.submit();">&nbsp;<?php echo vmText::_('VMEXT_EU_RECAP_INCLUDE_TAXED'); ?></label>

Now the results always reflect the selected period and option.
The administrator has disabled public write access.

Scripts in export 06 Aug 2016 15:14 #5

Dear DaSteelMan,
Thank you for noticing (I actually always ignored this little inconvenience and simply pressed the button to refresh). I have included the onchange attribute to the tag. So, the fix should be included in the next version.

Best regards,
Reinhold
The administrator has disabled public write access.

Scripts in export 07 Aug 2016 14:26 #7

Thanks!
The administrator has disabled public write access.

[SOLVED] Scripts in export 06 Aug 2016 15:14 #6

Problem solved.
The administrator has disabled public write access.

VM - Shopping cart

 x 

Cart empty

Login Formular