Hikamarket Like

  • Posts: 147
  • Thank you received: 6
  • Hikamarket Multivendor Hikashop Business
1 year 10 months ago #342489

-- HikaShop version -- : 4.5.1
-- Joomla version -- : 3.10.9
-- PHP version -- : 7.4.29

Hello, ???
1. I only want the like button on some products, not all - How can I turn the like button off for some products?
or - what is the code to add an item to the like products, so I can create a custom field and add the script to the icon.
2. I only want the like button to appear on the product's page not in the product list. How do i turn it off for some products?
3. Please provide details for how I can change the ugly heart icon.
Name of file, location of file.
4. The shaking of the heart is a bit much for our site, how can i turn it off.
AND
5. How do I create a menu item to view my liked products??????? Solved

Last edit: 1 year 10 months ago by wrina iamwe. Reason: Solved one problem

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
1 year 10 months ago #342491

Hi,

1. There is no option to turn off the option for some products. That will require some development in the plugin.

2. There is no option to turn off the like button on the listings. However, that's a good idea and easy to add so I've added that possibility in the settings of the plugin by setting the listing postion to "not displayed". Download again the plugin on our website and install it on yours to get that capability.

3. and 4. Both are done by the CSS code in the plugin. So it's in the file plugins/hikashop/like/like.php
You'll find this code:

.hikashop_product_not_liked i.fa-2x.fas.fa-heart {
	text-shadow: -1px 1px 0px ".$heartcolor.",
		1px 1px 0px ".$heartcolor.",
		1px -1px 0px ".$heartcolor.",
		-1px -1px 0 ".$heartcolor.";
	color: ".$backgroundcolor.";
	transition: color 0.5s, text-shadow 0.5s;
}
.hikashop_product_liked i.fa-2x.fas.fa-heart {
    text-shadow: -1px 1px 0px ".$backgroundcolor.",
		1px 1px 0px ".$backgroundcolor.",
		1px -1px 0px ".$backgroundcolor.",
		-1px -1px 0 ".$backgroundcolor.";
	color: ".$heartcolor.";
	transition: color 0.5s, text-shadow 0.5s;
}
i.fa-2x.fas.fa-heart {

	position: relative;
	animation-duration: 5s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in;
}
a.hikashop_product_like_link {
    width: 40px;
    height: 24px;
}
a.hikashop_product_like_link:hover > i.fa-2x.fas.fa-heart {
	animation-name: shakeAnim;
}
@keyframes shakeAnim {
  0% {left: 0}
  1% {left: -1px}
  2% {left: 3px}
  3% {left: -6px}
  4% {left: 6px}
  5% {left: -3px}
  6% {left: 1px}
  7% {left: 0}
}
So you can remove that CSS and use your own CSS instead.
For example:
i.fa-2x.fas.fa-heart {
background-image: url('http://mywebsite/myimage.jpg');
}

5. Go in the Joomla menu manager and create a menu item of the type "HikaShop products listing".
First, configure it to display all your products.
Then, activate the "Only liked products" setting of the menu item (under the "products options" tab, and you'll be left with only the products already liked on the menu item listing.

The following user(s) said Thank You: wrina iamwe

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

  • Posts: 147
  • Thank you received: 6
  • Hikamarket Multivendor Hikashop Business
1 year 10 months ago #342533

Hello Nicolas,
1. I have redownloaded the plugin, and there is no "listing position to "not displayed"".
Please let me know where I can download the newer version as it is not listed with my subscription. I can only find the version I downloaded based on going to: My Orders/invoice (see image).
2. Would it be too difficult for you to limit the like button, by category? And just a field where i can list the category id, with a comma for other categories - Just a general inquiry, as I only want video to be liked so they can be quickly referenced.
3. I would prefer to use icon fa-circle-plus -- I have changed all ref to fa-heart -- yet, circle-plus, which is also a free icon, does not appear.
Any suggestions?

Wrina

Last edit: 1 year 10 months ago by wrina iamwe.

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
1 year 10 months ago #342537

Hi,

1. There seem to have been a mix up with the install packages.
That place is the correct place to download the latest version. I've reuploaded the install package so that it is the correct version.
Please try again and you should get that new choice after you reinstall the plugin.

2. It's possible to add with some development but it's not as easy as what I did for the "not displayed" choice.
It will require proper development and proper testing.

3. I would need a look at the situation to be able to better understand the situation to be able to tell you what's wrong with what you did.
Could you provide a URL of a page so that I can analyze the situation ?

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

  • Posts: 147
  • Thank you received: 6
  • Hikamarket Multivendor Hikashop Business
1 year 10 months ago #342573

Hello Nicolas,
When selecting listing position "not displayed, it does not save.
See short video: vimeo.com/722379465/20ed372f35
Just waiting on the update

Also, I have removed the animation and changed the fa-heart to fa-plus-circle (so, I know what to do when I receive your updated file).

Just need to change the text, but the "Click here to like this product" and the "Click here to unlike this product" are not in the language overrides.
Where can I change this text???

Thanks for your help
Wrina

Last edit: 1 year 10 months ago by wrina iamwe.

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
1 year 10 months ago #342596

Hi,

1. That's a bug in Joomla which doesn't work properly with an empty value when the default value is not empty as well.
That's why it work fine for the second option, which defaults to an empty value while it doesn't work for this new choice as it defaults to "top-right".
So I've changed the new choice to use "no" instead of an empty value and it's working now.
I've uploaded a new package again. Please try.

2. Regarding the texts, these use normal translations and thus you can change them with translation overrides. However, as you saw, if you edit the language file under the Language tab of the HikaShop configuration, you won't see the translations of the plugin on the left side. That's because these are only HikaShop translation texts.
The plugin has its own translation file.
However, on the right side of the page, it's an override file for all the translation texts on your website.
So you can directly write the translation keys with the text you want on the right side and it will work:
CLICK_HERE_TO_LIKE_THIS_PRODUCT="Click here to like this product"
CLICK_HERE_TO_UNLIKE_THIS_PRODUCT="Click here to unlike this product"

Note that this is also compatible Joomla's translation override system so you should be able to do it via Joomla's, like any other extension:
www.joomdev.com/language-overrides-in-joomla-4/

The following user(s) said Thank You: wrina iamwe

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

  • Posts: 147
  • Thank you received: 6
  • Hikamarket Multivendor Hikashop Business
1 year 10 months ago #342599

Nicolas,
Thank you for your help and for adding the functionality.
It looks a lot better!!!

The following user(s) said Thank You: nicolas

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

Time to create page: 0.064 seconds
Powered by Kunena Forum