[solved] Future FIX for 2 constants used in back-end and front-end

  • Posts: 72
  • Thank you received: 5
  • Hikashop Business
1 year 3 weeks ago #291977

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.7

I have edited this 2 constants in language file: FILES and FIELDS, both of them are used in Back-end and in the Front-end.
But i want to change the values only for front-end.
Please see the image.

Attachments:
Last edit: 1 year 3 weeks ago by oxido.

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

  • Posts: 23424
  • Thank you received: 3639
  • MODERATOR
1 year 3 weeks ago #291979

Hello,

In such case,it might be interesting to use a "view override" so you can use a different translation key for the front-end part.
www.hikashop.com/support/documentation/1...-display.html#layout

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.
The following user(s) said Thank You: oxido

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

  • Posts: 72
  • Thank you received: 5
  • Hikashop Business
1 year 3 weeks ago #292053

unfortunately is not working.
If i delete this constant "FILES" from Language Override, Front-end and Back-end, it will still show "Files" value.
Ive tried to find the constant "FILES" in front-end, using DIsplay view files, but this works only on Hikashop part, in my screenshots, the front-end is from Hikamarket (adding a new product).
Ive tried to change the constant in backend, in the leftmenu.php view. but there is no constant of FILES.
Ive only found this:

<?php
	foreach($this->menudata as $href => $name) {
?>			<li><a href="<?php echo $href; ?>"><?php echo $name; ?><i class="icon-chevron-right"></i></a><div style="clear:left;"></div></li>
<?php
	}
	if(HIKASHOP_BACK_RESPONSIVE){
		?>
		<li id="responsive_menu_scrolltop_li_<?php echo $this->menuname; ?>">
			<a style="text-align:center;" href="#" onclick="window.scrollTo(0, 0);">
				<span class="responsive_menu_scrolltop" style="padding: 6px 12px 18px 12px; "></span>
			</a>
			<div style="clear:left;"></div>
		</li>
		<?php
	}
?>

So, can you have another solution for my problem?

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

  • Posts: 65661
  • Thank you received: 9581
  • MODERATOR
1 year 2 weeks ago #292074

Hi,

The text of the menu in the HikaShop configuration is generated dynamically. You can't edit it directly easily.
The best is to edit the view displaying the product edition page in HikaMarket.
With the "Display view files" setting of the HikaShop configuration, which is mentioned in the link Jerome gave you, you can quickly find that the view file used for the display of the product edition page in HikaMarket is the file "form" of the view "productmarket". So edit that file via the menu Display>Views of HikaShop.
There, you'll find that code: monosnap.com/file/ABy1k5b4Okh2L1LtelV9N2LtBhZnuQ
You can check the FILES translation namekey there to something like HIKAMARKET_FILES
and then, in your translation override file, you can add such line:
HIKAMARKET_FILES="Upload your assets here"
That way, you can keep the default translation of FILES for the HikaShop backend and modify the HikaMarket interface with your custom text.
So no need for another solution.

The following user(s) said Thank You: oxido

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

  • Posts: 72
  • Thank you received: 5
  • Hikashop Business
1 year 2 weeks ago #292096

Thanks guys, Solved!

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

Time to create page: 0.063 seconds
Powered by Kunena Forum