Remove the word Yes from product select button

  • Posts: 63
  • Thank you received: 3
4 years 2 months ago #323865

-- url of the page with the problem -- : charter1227catering.co.uk/takeaway/produ...urger-and-chips.html
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.2
-- Browser(s) name and version -- : chrome 85.0.4183.83
-- Error-message(debug-mod must be tuned on) -- : N/A

Hi there,

I can see that I can remove the work Yes using the language override in Joomla HIKASHOP_YES

I have changed Yes to a blank which removed the word, but now the product ID is showing.

Is there a way I can just have the tickbox with nothing after it?

Many thanks,

Ian

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 years 2 months ago #323874

Hello,

We don't really understand why the option id is display, here...
Did you use an HikaShop Override ?
If you don't know, just process a test with a default template like ProtoStar, and tell us if that solve your "Id Display" issue.
Awaiting new elements from you to progress on your subject.

Regards

Last edit: 4 years 2 months ago by Philip.

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

  • Posts: 63
  • Thank you received: 3
4 years 2 months ago #323898

Thank You Philippe,

I used the Joomla Override and have also found the HikaShop Override in views/product/front end/option for my template and attempted to comment out the line line below - but it comes up with an error 403 Access to this resource on the server is denied when I try to save.

$text = JText::_('HIKASHOP_YES');

I don't think that will do any good though because is I override the word yes with a blank, it reveals the product number as per the original problem.

Interesting - if i change override from yes to a star * - the star will show which is a possible workaround. Shame it doesn't work if i just put a space in.

Many thanks,

Ian

Last edit: 4 years 2 months ago by ians.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
4 years 2 months ago #323915

Hi,

You should do a translation override like that:

HIKASHOP_YES="<span clas='myclass'>Yes</span>"
That way, you can just hide it on your product page with CSS:
.hikashop_product_page .myclass{ display:none; }

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

  • Posts: 19
  • Thank you received: 0
3 years 11 months ago #326997

Hi,
It doesn't seem to work in my environment.
What is the syntax to activate your solution to display nothing after making the translation override?

Currently at line 55 in product / option.php
$text = JText::_('HIKASHOP_YES');

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
3 years 11 months ago #327030

Hi,

My solution doesn't require modifying the product / option.php view file.
As I said, you need to do a translation override, which can be done under the Languages tab of the Hikashop configuration:
www.hikashop.com/download/languages.html#modify
And for the CSS code I gave, you can also add it in the HikaShop configuration:
www.hikashop.com/support/documentation/1...ize-the-display.html

Regarding the error @ians had when saving the view override file, it's because of a security mechanism on his server which detects the PHP code sent by the browser when saving the overrides and blocks it.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum