Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Contact Form  (Read 2941 times)

Offline Nuno Neff

  • Full Member
  • ***
  • Posts: 246
  • Karma: +28/-10
    • View Profile
Contact Form
« 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?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2108
  • Karma: +332/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Form
« Reply #1 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.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Nuno Neff

  • Full Member
  • ***
  • Posts: 246
  • Karma: +28/-10
    • View Profile
Re: Contact Form
« Reply #2 on: October 07, 2024, 06:27:43 AM »
Thank you abolabo ;)

 

Powered by SMFPacks Social Login Mod