AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Nuno Neff on October 05, 2024, 07:49:07 AM

Title: Contact Form
Post by: Nuno Neff on October 05, 2024, 07:49:07 AM
How do I remove my store's address from the contact form, as my store is online only and doesn't have a physical address?
Title: Re: Contact Form
Post by: abolabo on October 07, 2024, 05:04:58 AM
you have two ways:
 1. change text via hook

Code: [Select]
    public function onControllerPagesContentContact_UpdateData()
    {
        $that = $this->baseObject;
        $that->view->assign('text_address', 'Some your title');
        $that->view->assign('store', '');
        $that->view->assign('address', 'You new Address here');
    }

2. change storefront/view/****/template/pages/content/contact.tpl file (if you have specific template). NOTE: in case when you use "novator" or "default" template your changes will be overridden by future upgrades of core.
Title: Re: Contact Form
Post by: Nuno Neff on October 07, 2024, 06:27:43 AM
Thank you abolabo ;)