Requesting Location Early Generates Script Error in a Popup

Call 01323 872296


Requesting Location Early Generates Script Error in a Popup

If you wish the client to enter their location early so that shipping etc can be defined, you need to ensure that ‘Quantity on confirmation Page’ selected and that ‘Get location information early selected in Business settings.

There is however a bug in V18 (SD-8179). When an item is added to cart, you can enter the country but when you enter the second state/region a popup opens containing the html of a 500 script error.

I am grateful to Sellerdeck Development for this workaround solution:

Open the file ‘actinicextras.js’ in a plain text editor and locate the term ‘GetShippingClassesSelectHtml’. There are a couple of instances of this, but the one we are looking for is on line: 4110 or thereabouts.

There you should see the following code: –

 function GetShippingClassesSelectHtml(cmbState)
	{
	if (cmbState.id.indexOf('Delivery') == -1)
		{
		return;
		}
	ShowLoadingDialog();

Replace this code with the following: –

 function GetShippingClassesSelectHtml(cmbState)
	{
	if (cmbState.id.indexOf('Delivery') == -1)
		{
		return;
		}
	var elemShippingSelect = document.getElementById('idShippingSelect');
	if (!elemShippingSelect)
		{
		return;
		}
	ShowLoadingDialog();

save the file and upload the web site.

I have tested this soltion and it does work, thank you again to Sellerdeck Development.

Keep in touch and share

Graphicz on Social Media



01323 872296. 07836 551000.
Email:

Website by Graphicz