FCFav to only add instead of toggle ?

More
5 years 9 months ago #74004 by Natwork
Hello,
in order to batch toggle items that haven't be manually added yet, how can I know if item is favoured by user (when loading, with PHP for exemple) ?

Something like :
Code:
<?php if ($item[$i]->favoured): ?> <!--some HTML or PHP variable--> <?php endif; ?>
Or maybe is there a way to directly get user's favoured items list ?

When I check the fcfavs cookie, the only value I see is
Code:
%7B%7D
, and it doesn't change if I toggle items... So I guess favoured items aren't stored in cookie, and I can't see anything usefull using
Code:
var_dump($item)
or
Code:
var_dump($user)
... So 'im confused : where is stored user's favorites items information, and how to check if item is favoured ?

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

More
5 years 9 months ago - 5 years 9 months ago #74025 by ggppdk
Hello

about favourites

Can you test this version in a testing website
(In extension manager use install via URL)
github.com/FLEXIcontent/flexicontent-cck/archive/3.3.x.zip


-- 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...
Last edit: 5 years 9 months ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.263 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