AbanteCart Community

AbanteCart Development => Customization help => Topic started by: behold on July 25, 2017, 01:50:05 PM

Title: Remove newsletter op in customer account
Post by: behold on July 25, 2017, 01:50:05 PM
Been successful in removing newsletter sign up from most of the site - still can't remove from customers account page under "NOTIFICATIONS AND NEWSLETTER" (see image)

(http://)
Title: Re: Remove newsletter op in customer account
Post by: abantecart on July 27, 2017, 10:46:45 AM
You need to remove newsletter sendpoint from the class

https://github.com/abantecart/abantecart-src/blob/master/public_html/core/lib/im.php#L55

Title: Re: Remove newsletter op in customer account
Post by: behold on July 27, 2017, 10:57:09 PM
Thank you for that!

Would like to edit the text as well - need to remove "AND NEWSLETTER" and modify text below (see image).

the email option(s) are already ticked - and cannot be unticked

I found and edited im.xml as well as notification.xml. (were the only places a word search found) made the edits and uploaded to server - cleared cache - but text is still the same.

Apparently i can't insert the code as its being flagged as an external link - images attached...

thanks in advance for your help
Title: Re: Remove newsletter op in customer account
Post by: abantecart on August 02, 2017, 02:38:17 PM
If you edit language file directly, changes will not be taken into effect as text already loaded into database. Language XML files are only one time use files.

You need to edit text in the admin

http://docs.abantecart.com/pages/localization/language_definitions.html

If you still need to load from XML file, you need to delete language text for entire section and XML file will be picked up again.

Title: Re: Remove newsletter op in customer account
Post by: behold on August 02, 2017, 09:26:16 PM
ah ha  :o
Thanks!