We use checkout1 and wish to have a shipping option pre selected how can this be done?
Thanks in advance.
We use checkout1 and wish to have a shipping option pre selected how can this be done?
Thanks in advance.
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
Can we change it to a drop down list?
Or even have one of the radio buttons pre selected?
Thanks in advance.
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
Has no one done this?
We just need one option as a default due to some customers making errors and causing odd errors in the orders.
We have access to the source as well.
Thanks.
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
Still anyone?
Bump
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
Add this to your checkout1 page :-
Courtesy of Rugster.Code:<script type="text/javascript"> if (document.getElementById("ShippingMethodID1")) { document.getElementById("ShippingMethodID1").checked = true; } </script>
TTFN
BFG
This solution did not work.
It looked like it would but no joy.
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
tried it on the checkout1 page and on the skin we use for the checkout page. No joy. Tried it on chrome and ie.
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
Go to your checkout1 page - make sure you're logged in (or have submitted your address details to 'get shipping methods), then paste this into your address bar :-
You should see the first radio button for the shipping methods become checked.C#/VB.NET Code:
javascript:void(document.getElementById("ShippingMethodID1").checked = true)
(Just tried it on your site & it works.....).
TTFN
BFG
The JavaScript injection works however the JavaScript on the page does not...
Very odd...
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
make sure the element that's rendered on the page has its ID defined, and not just name.
We know the ID is defined as the JavaScript injection works fine. As well as this you can view the source on the page and see all ID's listed.
For some reason the JavaScript doesn't seem to work when simply placed on the page.
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
Where exactly are you pasting it mate - does it throw an error?
Can you put it in place & let me have a look?
TTFN
BFG
Pasting in your code
in the head of the template used only on checkout1C#/VB.NET Code:
<script type="text/javascript">
if (document.getElementById("ShippingMethodID1")) {
document.getElementById("ShippingMethodID1").checked = true;
}
</script>
I have been playing with the code on local and everytime i get it working (in the aspx file or the template) i cause another issue.
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
Ahh - that might be your problem.
If it's in the head - then it might be trying to run before the page has downloaded.
i.e. before "ShippingMethodID1" actually exists.
I put mine just before the closing </body> tag.
TTFN
BFG
Still no joy![]()
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience
No just doesn't work. Nothing different happens.
=====
Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
Execution Mode: 64 Bit
Dot Net Developments - E-commerce By Experience