Favorites products

  • Posts: 125
  • Thank you received: 2
3 years 12 hours ago #340093

-- HikaShop version -- : 4.5
-- Joomla version -- : 3.10
-- PHP version -- : 7.4

Hi is Hikashop have a Favorites product?
Something like users can select their favourites products.
Thank you

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
3 years 6 hours ago #340103

Hi,

There are two ways to do it.
You could use the wishlist system:
www.hikashop.com/support/documentation/5...config.html#features
You could use the "like" plugin:
www.hikashop.com/marketplace/product/155-product-like-btn.html

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

  • Posts: 125
  • Thank you received: 2
2 years 11 months ago #340156

You could use the wishlist system:
www.hikashop.com/support/documentation/5...config.html#features

I have enabled it. Now button is displayed in product details.
My question is how to display, that button, on the product in the category list view?
Thank you

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
2 years 11 months ago #340163

Hi,

Edit the settings of your menu items via the joomla menu manager. There, under the "products options" tab, you'll have a display setting for the add to wishlist button.

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

  • Posts: 125
  • Thank you received: 2
2 years 11 months ago #340214

Thank you
One more is it possible to be some image of the heart, not text?

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

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
2 years 11 months ago #340215

Hello,

Almost everything is possible via css custom command, learn here how to add your own css command.

Then, step by step, you have to keep the button container, but remove the content to replace it by your required image.

// Remove content
.container_class_html .element_class {
    display: none;
}
// Add your image
.container_class_html {
    background-image: url(YourWebsite/folder/ImageUrl.png)
}

Hope this will help you to achieved what you need.
Regards

Last edit: 2 years 11 months ago by Philip.

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

  • Posts: 125
  • Thank you received: 2
2 years 11 months ago #340279

I have add
// Remove content
.container_hikabtn hikawishlist .element_class {
display: none;
}
// Add your image
.container_hikabtn hikawishlist {
background-image: url( freepngimg.com/download/web_design/65470...like-png-file-hd.png )
}

but nothing is changed :unsure:

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
2 years 11 months ago #340284

Hi,

Philippe's code requires that you change the CSS classes in his code with the classes of the elements you want to affect. Just copy/pasting what he provided won't work.
And in this case, what he proposed won't work anyways because the button of the wishlist doesn't have a container div.

I think there is a much simpler solution though. You can just add a translation override like this:

ADD_TO_WISHLIST="<img src='https://freepngimg.com/download/web_design/65470-emoticon-button-smiley-facebook-like-png-file-hd.png' />"
www.hikashop.com/download/languages.html#modify

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

  • Posts: 125
  • Thank you received: 2
2 years 11 months ago #340301

Thank you that is essayer solution and working as expected ;)
How to add that button on the top position, above the product image, now it is on the bottom under quantity?

Attachments:
Last edit: 2 years 11 months ago by komir.

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
2 years 11 months ago #340305

Hi,

You can do that with CSS code. For example:

.hikawishlist{
    position: relative;
    top: -432px;
    left: -98px;
}

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

Time to create page: 0.070 seconds
Powered by Kunena Forum