Jump to content

PS 1.7.5.0: Store contact details 'registration number' not displayed


KennethB.

Recommended Posts

All,

I'm setting up a new installation of Prestashop 1.7.5.0. with the default theme for now and one of the fields I have come across is 'registration details' (Configure -> Shop Parameters -> Contact -> Stores -> Contact Details).

I filled in every field in the contact details including this 'registration number' but all fiels except for the registration number are displayed in the front office.
How can I get the content of 'registration number' to also be displayed there?
Is this perhaps displayed elsewhere in Prestashop font office?

   

See attachment for a screenshot of what I mean.

PS registration number display issue.pdf

Edited by KBruyninckx (see edit history)
Link to comment
Share on other sites

  • 5 months later...
  • 6 months later...
  • 4 weeks later...

My solution to the problem is to add reg_number to contact_infos array

$contact_infos = [
            'company' => Configuration::get('PS_SHOP_NAME'),
			'reg_number' => Configuration::get('PS_SHOP_DETAILS'),// added to show Registration Number 
            'address' => [
                'formatted' => AddressFormat::generateAddress($address, array(), '<br />'),
                'address1' => $address->address1,
                'address2' => $address->address2,
                'postcode' => $address->postcode,
                'city' => $address->city,
                'state' => (new State($address->id_state))->name[$this->context->language->id],
                'country' => (new Country($address->id_country))->name[$this->context->language->id],
            ],
            'phone' => Configuration::get('PS_SHOP_PHONE'),
            'fax' => Configuration::get('PS_SHOP_FAX'),
            'email' => Configuration::get('PS_SHOP_EMAIL'),
        ];

and in ps_contactinfo.tpl file you can use $contact_infos.reg_number to show the info

Edited by jacksfregio (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...