Get live site url

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 4 months ago #337665

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4

Hi

I'm adding some OpenGraph tags to my products in product > show_default.php like this:
JFactory::getDocument()->setMetaData('og:image', ' domain.xxx/images/com_hikashop/upload/ ' . $this->row->ogimage, 'property');

There I need domain.xxx to be something that HikaShop sees as the live site, so when I move the site from the sandbox to the live site, I don't need to remember to change this.

Something like in the emails VAR:LIVE_SITE

Regards
Thomas

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
2 years 4 months ago #337675

Hello,

It's related to Joomla framework, not specially HikaShop.
docs.joomla.org/URLs_in_Joomla

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 4 months ago #337676

Of course, my mistake - I had my mind set on that VAR:LIVE_SITE

Thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum