FCFav to only add instead of toggle ?

More
6 years 7 months ago - 6 years 7 months ago #73466 by Natwork
Hi,

On a catalogue website, with a custom pre-order feature (this website isn't ecommerce - logged users can pre-order items but there is no paiement).
To enhance user experience, i'd like to use FCFav feature to list all items pre-ordered for each user. I think I can achieve this by setting each pre-ordered items as favorite at the preorder validation.
The javascript function
Code:
FCFav(88, 'item', 0)
toggle item as favorite/not favorite, so if the same user pre-order multiple times the same item, it will be set/unset each time.

Is there a call that I can do to only set item as favorite ?
Last edit: 6 years 7 months ago by Natwork.

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

More
6 years 7 months ago #73468 by micker
hello why you didn't use link menu to favorite item? it load all item are favorit for user connected ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
6 years 7 months ago #73469 by ggppdk
Hello

I guess you are renaming the language strings (Joomla language overrides) to do this

Regarding UX

do you suggest to have a seperate "Remove button" for favourites ?
do you also want to be able to favour an item more than 1 times ? aka "Preorder it NN times" ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
6 years 7 months ago #73472 by Natwork

micker wrote: hello why you didn't use link menu to favorite item? it load all item are favorit for user connected ?

I'll do this to display items, but my question is more about adding to favorites

ggppdk wrote: do you suggest to have a seperate "Remove button" for favourites ?

Yes, on menu item i'll let user remove items, but I can use the classic toggle button for that.

ggppdk wrote: do you also want to be able to favour an item more than 1 times ? aka "Preorder it NN times" ?

Yes, but I don't need to count them. I mean, if item is already in favorites, it just don't change.

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

More
6 years 6 months ago #73535 by Natwork
Hi,
is there any way to achive this, or am I asking for something that doesn't exist ?

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

More
6 years 6 months ago #73539 by ggppdk
Hello

it should be a checkbox

and then

we can use any type of Javascript to style it like a switcher (like in mobile and modern web apps)

We can use switcher for Bootstrap 2 or Bootstrap 4
www.bootstraptoggle.com/


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.608 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline