kpfund
Starting Member
22 Posts |
Posted - 01/06/2022 : 11:07:52
I have updated MAPGA with the new version of ECT, and am having the same issue as March a couple years ago: https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=112579
I looked up the thread to see what the fix was, and didn't see what the actual fix was... Thanks!
-Kurt
|
Phil
ECT Moderator
United Kingdom
7715 Posts |
Posted - 01/07/2022 : 06:35:40
|
kpfund
Starting Member
22 Posts |
Posted - 01/10/2022 : 07:36:03
I did. More than once, just in case. When I view the source and look at the version the site is using, this is in the comments at the top of the js file: * Last Modified: 2021-12-09 We are using ect on other sites and are not having the same issue.
The file is called like this: <script type="text/javascript" src="/js/ectcart.js" async defer></script> I have tried it without the async and defer tags as well.
|
Phil
ECT Moderator
United Kingdom
7715 Posts |
Posted - 01/10/2022 : 07:53:15
Edited by - Phil on 01/10/2022 07:53:50
|
kpfund
Starting Member
22 Posts |
Posted - 01/10/2022 : 10:51:15
While the site is a wordpress site, the ECT installation is probably the dreamweaver version - the site has been using this since forever. It is currently running 7.4.6 of the ect software. Are you asking us to abandon the old page structure and recode to use shortcodes instead?
|
Vince
Administrator
42874 Posts |
Posted - 01/10/2022 : 13:54:12
quote: Are you asking us to abandon the old page structure and recode to use shortcodes instead?
This makes it much easier to integrate with WordPress for anyone setting up a site now, but this should work as it is. quote: The file is called like this: <script type="text/javascript" src="/js/ectcart.js" async defer></script> I have tried it without the async and defer tags as well.
It looks to me like it is the "async defer" that is causing this. Can you try removing that again and then let us know so I can check it again. Vince Click Here for Shopping Cart SoftwareClick Here to sign up for our newsletterClick Here for the latest updater
|
kpfund
Starting Member
22 Posts |
Posted - 01/11/2022 : 06:05:58
I have made that update.
If you like, I can give you ftp credentials. Contact me at kurt.pfund AT easterassociates DOT com.
|
Vince
Administrator
42874 Posts |
Posted - 01/12/2022 : 04:06:49
|
kpfund
Starting Member
22 Posts |
Posted - 01/12/2022 : 06:33:18
Are you sure? I seeing the same thing... Here is a link to a screenshot: https://www.mapga.org/wp-content/uploads/2022/01/Screenshot-2022-01-12-at-09-31-25-MAPGA-Shopping-Cart.png
|
Phil
ECT Moderator
United Kingdom
7715 Posts |
Posted - 01/12/2022 : 06:41:53
|
1818charlie
ECT Moderator
United Kingdom
1198 Posts |
Posted - 01/12/2022 : 06:43:14
The cart appears to be working fine from my end. Have you carried out a hot refresh ?  Steve Bolton Lancashire
Edited by - 1818charlie on 01/12/2022 06:49:31
|
kpfund
Starting Member
22 Posts |
Posted - 01/12/2022 : 10:47:30
I have. The cart actually works fine. What is happening is in the dropdown menu on page - immediately after you make a selection, the selection option changes to undefined and the price on page does not update:  Server side, everything is fine - the submit submits the correct information. It looks like the client side code(javascript) is unable to find the html element that has been changed. This sounds like the page is not reading the new javascript file, but no matter how many times I reload the new code or refresh the page or view it on a different computer, it is still the same! It is confusing users - but only the ones that pay attention! It is probably something dumb as @#$^, but I have no idea what the issue is.
|
kpfund
Starting Member
22 Posts |
Posted - 01/12/2022 : 10:56:08
Okay, it was even dumber than @#$^.
There was an extra javascript include in the footer file. That was pointing to old version of the file (lost in the directory tree) which must have been overwriting the new copy. Last time it was fixed, it had the async defer instructions which caused the new file to load last, but for some reason the new file will not wait patiently.
Good grief! Sorry for the headache!
|
kpfund
Starting Member
22 Posts |
Posted - 01/12/2022 : 11:05:55
BTW, the WordPress improvements look really nice. We will probably implement that next time we give the site a facelift.
|
|
|