AbleCommerce Forums
»
AbleCommerce
»
Content Management System
»
Deleting Item from the Cart -- You will not recover!
Rank: Member
Groups: Developers, HelpDesk, Registered Joined: 11/1/2018(UTC) Posts: 29
|
The store is using SweetAlert to display a popup window when you attempt to delete a product from the cart. The language in the default alert is rather foreboding -- "You will not recover!" doesn't seem like the right message to send. AC_sweet_alert_text.jpg (24kb) downloaded 1 time(s).Where is the code for this template so that we can edit this to a more gentle statement? TIA! Steve Edited by user Friday, December 6, 2019 12:52:21 PM(UTC)
| Reason: Added screen capture
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Quote:Where is the code for this template so that we can edit this to a more gentle statement? For this particular place you can change it by opening the file at this path. \Website\Areas\Admin\Views\Orders\AddOrder.cshtml Line # 351 OR Search for this line to find the exact code. Code://DELETE BASKET ITEM CODE
$(document).on('click', '.btn-delete', function () {
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
OMG I didn't even notice that!
Maybe it should read "Black SUVs will approach your driveway!"
|
|
|
|
Rank: Member
Groups: Developers, HelpDesk, Registered Joined: 11/1/2018(UTC) Posts: 29
|
@Joe ---
You'll probably have a heart attack if you remove an item from the basket. You'd better purchase it!
|
|
|
|
Rank: Member
Groups: Developers, HelpDesk, Registered Joined: 11/1/2018(UTC) Posts: 29
|
@shari -- Thanks for the effort -- but that only controls the popup on the admin side, yes? I really don't care TOO much about that. I'd MUCH rather edit the code that appears on the PUBLIC facing side. It's my customers that I want to help!
Do you know where that code is set on the public-facing pages? I'm searching now.... haven't found it yet.
Thanks, Steve
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
@Steve I thought you were asking about the admin side. Quote:The store is using SweetAlert to display a popup window when you attempt to delete a product from the cart. Can you please refer to the place on retail side where this popup appears. I remember for latest release, we have removed the confirmation box on deleting product from the cart. Or if you share the release on which you are testing. Thanks
|
|
|
|
Rank: Member
Groups: Developers, HelpDesk, Registered Joined: 11/1/2018(UTC) Posts: 29
|
Hi Shari --
AbleCommerce AC9 (Version: 9.0.1.5867) When I review the "Upgrades" section of the admin panel, I'm told that there are no available updates. Not sure how I'm using the wrong version.
In my store, this is happening when I remove an item from the minicart on the sidebar.
I have looked through so many pages, but cannot find this code base to edit!
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Hi Steve, Sure you are working on the latest release. I haven't thought of mini basket. I was referring to main basket page. We have a generic script file for these confirmation boxes at retail side. To change this text you can open the file at \Website\Scripts\alert-script.jsand search for the lines: Code:text: "You will not be able to recover!",
Edited by user Friday, December 6, 2019 3:00:37 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Developers, HelpDesk, Registered Joined: 11/1/2018(UTC) Posts: 29
|
Shari --
Thanks!
I also found that I could simply edit the CSS at [/website/content/sweetalert/sweetalert.css]. I just made the text not visible and that was sufficient.
The good news is that others may need this same edit, so now both the source JS and the CSS are here in the forum. Hopefully we save other folks some time.
Much appreciated!
Steve
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Too bad the new CMS features do not allow for editing these aspects of the website content.
|
|
|
|
Rank: Advanced Member
Groups: System, Administrators, Developers, Registered, HelpDesk Joined: 10/29/2018(UTC) Posts: 472
Thanks: 4 times Was thanked: 34 time(s) in 33 post(s)
|
Remember, that you can edit the language resource strings to change these messages.
Thanks Katie |
Thanks for your support!
Katie Secure eCommerce Software and Hosting |
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Originally Posted by: katie_able_support Remember, that you can edit the language resource strings to change these messages.
That also works for hard-coded text in javascript code? I thought that only worked for Razor view content....
|
|
|
|
Rank: Advanced Member
Groups: System, Administrators, Developers, Registered, HelpDesk Joined: 10/29/2018(UTC) Posts: 472
Thanks: 4 times Was thanked: 34 time(s) in 33 post(s)
|
You are correct Joe. My mistake. I was checking the language strings file and found several places where the confirmation messages can be changed, but for the JavaScript, it isn't part of the interface.
Sorry if I caused any confusion, Katie |
Thanks for your support!
Katie Secure eCommerce Software and Hosting |
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
Content Management System
»
Deleting Item from the Cart -- You will not recover!
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close