Brand Url

  • Posts: 36
  • Thank you received: 1
  • Hikashop Business
6 days 10 hours ago #373021

-- url of the page with the problem -- : www.dailybread.co.uk
-- HikaShop version -- : 6.5.0
-- Joomla version -- : 3.10

In the product edit you can enter the brand url for related products in the SEO section.
In doing so the link on the front view opens in a new page. target is set to blank

How or where do I change it so it opens in the same page.

Thanks

Last edit: 6 days 10 hours ago by dailybread.

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

  • Posts: 86042
  • Thank you received: 14174
  • MODERATOR
6 days 5 hours ago #373025

Hi,

There is no setting for it, the target is written directly in the view file of the product page.

Your product pages use the "Tabular" layout, so the file to change is product / show_tabular.php. Go in the HikaShop backend, menu Display > Views, search for show_tabular, and click on the file to edit it. Look for the line containing MANUFACTURER_URL :

echo \Joomla\CMS\Language\Text::sprintf('MANUFACTURER_URL', '<a href="' . $this->element->product_url . '" target="_blank">' . $this->element->product_url . '</a>');

Remove target="_blank" from that line and save. Saving from that interface creates a view override in your template, so the change will not be lost when you update HikaShop.

Note that each product page layout has its own file, so if you later switch the "Layout on the product page" setting of the HikaShop configuration to another layout, the same change has to be made in the file of that layout.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum