Marshall
Ecommerce Template Guru
USA
1916 Posts |
Posted - 04/10/2019 : 07:44:10
There once was a parameter hideshipaddress=TRUE, but since retired. Is there a switch for hideshipaddress=FALSE to force the shipping address fields to appear without having to check Ship to another address? ASP v6.9.6
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
Andy
ECT Moderator
95440 Posts |
Posted - 04/10/2019 : 07:53:57
|
Marshall
Ecommerce Template Guru
USA
1916 Posts |
Posted - 04/10/2019 : 13:48:22
I have a client who wants it to display by default. Thanks though.
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/10/2019 : 15:46:12
I have quite a bit of experience in this part of the cart. Without looking closer, based on recollection, I think it's an easy thing... I take a look in a bit to see if I spot the solution.
|
Marshall
Ecommerce Template Guru
USA
1916 Posts |
Posted - 04/10/2019 : 17:15:23
I have not taken a close look either and was thinking there may be a CSS solution using display:block !important. Could be wrong though. MarshallCENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/10/2019 : 17:34:02
I've got several projects going this evening, but I happen to recall this post - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=110167 Some of this (below from that post) deals exactly with that feature. If it's javascript, and I think all of it is, then you can probably manipulate it in the DOM without any mods to the core files. I'll see if I can poke around here in a bit. window.onload = onPageLoad(); $("#shipdiff").click(function() { verifychange(this) }); function onPageLoad() { if($("#shipdiff").prop('checked') == false) verifychange('#shipdiff'); } function verifychange(obj) { if($(obj).is(":checked")){ document.getElementById("scountry").value = 1; checkoutspan('s');
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/10/2019 : 18:26:15
It should work just fine with the .php version if anyone reading this needs it. :::EDITED - Fixed Confirmed works 4/12/2019::: Below code goes just below the cart include line <script> if (document.getElementById("shipdiff")) { document.getElementById("shipdiff").checked = true; } </script>
Edited by - dbdave on 04/12/2019 08:23:00
|
Marshall
Ecommerce Template Guru
USA
1916 Posts |
Posted - 04/11/2019 : 04:21:15
Did not work. The box was checked, but the shipping information was still hidden.
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/11/2019 : 06:51:21
Hi Marshall, I just installed in on my .php dev site and it works fine there too - can you try it there? http://www.floridasurpluswarehouse.com/dev/products.php
If it's not working there, let me know what browser you are using.
David
|
Marshall
Ecommerce Template Guru
USA
1916 Posts |
Posted - 04/11/2019 : 06:56:59
Worked in FF and IE, but not in Chrome.
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/11/2019 : 07:14:54
Interesting... I just checked in Chrome and it worked fine for me.
Maybe try document.onload instead on window.onload
http://sking7.github.io/articles/223897826.html
|
Marshall
Ecommerce Template Guru
USA
1916 Posts |
Posted - 04/11/2019 : 07:41:41
Still no joy.
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/11/2019 : 09:01:35
Ok, sorry I tried. I can't imagine why it's not working for in Chrome. It works fine for me on two websites in any browser I can test with. Take care...
|
Marshall
Ecommerce Template Guru
USA
1916 Posts |
Posted - 04/11/2019 : 09:39:04
I appreciate you help as always David.
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
Paradise
Ecommerce Template Guru
USA
1602 Posts Pre-sales questions only (More Details...)
|
Posted - 04/11/2019 : 12:23:51
Doesn't work for me either unless you uncheck the checkbox and recheck.
Mark Responsive Design Deals Ecomm Plus - ASP 6.8 www.paradiseclothingco.com
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/11/2019 : 14:10:04
Maybe it's a timing thing. This evening, I can try to put a one second delay on it to see what happens. Mark, is this Chrome for you, or some other browser?
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/11/2019 : 17:39:40
Hi, the interesting thing is when I put a delay on it, I got the issue you describe. Ticked, but no action. So I removed the function and I moved it up to just below the include line. Mark, can you or Marshall try it again on this site? http://www.floridasurpluswarehouse.com/dev/products.php
David
|
Paradise
Ecommerce Template Guru
USA
1602 Posts Pre-sales questions only (More Details...)
|
Posted - 04/11/2019 : 19:26:03
It worked this time, on my iPad using chrome.
Mark Responsive Design Deals Ecomm Plus - ASP 6.8 www.paradiseclothingco.com
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/11/2019 : 23:32:01
So, if you see this Marshall, give it a try. Insert this just below the cart include line I added a check for the element to prevent error as well. <script> if (document.getElementById("shipdiff")) { document.getElementById("shipdiff").checked = true; } </script>
|
Marshall
Ecommerce Template Guru
USA
1916 Posts |
Posted - 04/12/2019 : 04:20:15
Worked this time. Good job David!
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 04/12/2019 : 08:20:16
Great news... 
|
|
|