- Posts: 34
- Thank you received: 0
custom wishlist button
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message
Goodmorning! Sorry for the banal question: how can I customize the wishlist button? I need to change the class of that button but where I can find this code?
thank you so much!
Please Log in or Create an account to join the conversation.
You can find this button in the view "product / quantity" via the HikaShop menu Display > Views.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 502
- Thank you received: 12
i have the same question, thank you for response
Please Log in or Create an account to join the conversation.
Sorry I forgot a part of the explanation.
You have to add the desired place in the following code instead of "MYCLASS"
Please Log in or Create an account to join the conversation.
- Posts: 502
- Thank you received: 12
but sorry, i don't understand ...
if i want a simple text sliceable instead off a button for "Add to wishilist", what i must to do ?
thank you very much
Please Log in or Create an account to join the conversation.
Why you talk about "desired place" if all I want to do is to change the class?
Maybe I don't undersand...How can I change the class of the button?
thank you again!
Please Log in or Create an account to join the conversation.
In the backend, go to > Display > Views, choose HikaShop, your template, frontend, then product, and scroll down to open the view "quantity" under "product". (More on that in the documentation.)
Then find the lines containing ADD_TO_WISHLIST, and/or ADD_TO_CART, depending on which button your after, or both. Follow Xavier's example to add your class name(s) to the code, and don't forget the space in front of it.
The software will save a new copy of the file, even if you screw up, you can delete it and start all over (see the trash can after saving? Ha!)
With your classes added, the button should turn into whatever your template is suggesting, or you use your own CSS to make it huge, pink and with flowers around, or just two words without anything: "cart, dammit!"
Have fun! :woohoo:
(a friendly user, just like you)
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Please Log in or Create an account to join the conversation.
now it's all clear! thank you both! Please Log in or Create an account to join the conversation.
the "hikashop_cart_button" is still there...
where i'm wrong?
Please Log in or Create an account to join the conversation.
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Please Log in or Create an account to join the conversation.
still the same...
Please Log in or Create an account to join the conversation.
Like for example
If your template, or whatever the source of your CSS and that magic .buttona is, doesn't have it, well, no wonder. You'd need to add it, then.
If you're clueless what I'm talking, though, go get some expert on the case. No shame, they don't teach this kind of stuff in elementary schools. Not yet, anyway.
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Please Log in or Create an account to join the conversation.
Maybe the problem is somewhere else because i've created in media\com_hikashop\css\frontend_default the class ".buttona"
Here it is:
is a copy of the principal button, the only difference are the colors.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
And if you had ever created and selected a custom CSS file, that is then most likely the reason why you don't see changes happening you're making in the default file.
Another reason could be that you added your .buttona CSS BEFORE the original buttons CSS. Whatever is loaded last supersedes everything before. The !important prevents that, though, for the SAME class, that's why I mentioned it, but not for another. It's one of the reasons why HikaShop and others apply often more than one class to an element, it's "more compatible" and you have control without messing with code too much.
So, there are almost always multiple ways of doing things. You could have edited the original button's CSS without applying a new class. And, of course, alternatively you could/should have gotten rid of the original class in the HTML. Either way, but then again, they don't teach that in every school.
No worries, this way we learn.
Good luck from here onwards.
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Please Log in or Create an account to join the conversation.
- Posts: 502
- Thank you received: 12
it's ok for me
Please Log in or Create an account to join the conversation.