Jump to content

IPCommerceFan

Clients
  • Posts

    493
  • Joined

  • Last visited

Reputation Activity

  1. Thanks
    IPCommerceFan reacted to Daniel F in IPS 4.6.8 - 3rd Party Developer News   
    IPS 4.6.8 is going to remove following extensions:
    core/extensions/core/Sitemap/Applications.php core/extensions/core/Sitemap/Profiles.php So if your 3rd party applications or plugins hook into any of these files, please be warned.
     
    Everything else 3rd Party related from our changelog:
    I'm really excited about the last point.
    Now you're be able to set a member group as not deletable, to prevent that a group which is used for member promotions, or which is literally essential for your 3rd party code can be deleted by the admin.
    /** * Can this group be deleted? * * @param \IPS\Member\Group $group The group * @return void */ public function canDelete( $group ) : bool { return TRUE; }  
    Just a short update after a while:)
  2. Like
    IPCommerceFan reacted to Daniel F in Self Hosted Zapier   
  3. Like
    IPCommerceFan reacted to sound in nexus suggestions - a couple basic ones   
    couple of basic suggestions
     
    1.  add a view counter to product items - for obvious reasons
    2.  when cloning/copying a product item - set the   $primaryTable['p_store'] = 0; so that the new unedited clone/copy doesn't show immediately in the store
     
  4. Like
    IPCommerceFan reacted to opentype in Commerce: deactivate product copies   
    When I add similar products I use the useful “Copy” function in the ACP. Problem is, that the new product with the name “[product name] copy” instantly becomes available in the shop, even though I haven’t actually configured it yet. 
    I suggest that the copy function creates each copy with the default status “deactivated” instead of taking over the status from the copied product. 
  5. Like
    IPCommerceFan reacted to Sonya* in How to use {expression="\IPS\Member::loggedIn() ?   
    Look here for member https://invisioncommunity.com/4guides/themes-and-customizations/template-syntax/using-expressions-in-logic-r139/
    member translates to \IPS\Member::loggedIn(). 
    {{if member.member_id}}  
  6. Like
    IPCommerceFan reacted to Nathan Explosion in How to use {expression="\IPS\Member::loggedIn() ?   
    Works fine here:

    But it also doesn't (and there is a good reason as to why, in my case):

     
    Question: what version of IPS 4 are you working on?
  7. Like
  8. Like
    IPCommerceFan reacted to Maxxius in How to use {expression="\IPS\Member::loggedIn() ?   
    I just realized it does not work on 4.5. Only on 4.6.
    Thanks for your help guys!
  9. Like
    IPCommerceFan reacted to Maxxius in How to use {expression="\IPS\Member::loggedIn() ?   
    Hey thanks! I seem to be getting some results now. Though not all of them. For testing purposes I just paste the code to show near the logo. After I find code to be working I paste it in head. The code is not visible on the site. The variables are wrapped in <script> and get collected by google tag manager.
    What worked is quite a number of member object values mentioned in here https://invisioncommunity.com/developers/rest-api?endpoint=core/members/GETindex#object-rank
    HOWEVER outputting RANK did not work with the example you provided:

  10. Thanks
    IPCommerceFan got a reaction from Maxxius in How to use {expression="\IPS\Member::loggedIn() ?   
    Hey @Maxxius, yeah, using a Pages block is just my way of quickly testing something out.
    If we're talkin' page templates, then one thing to remember is anything encapsulated by double curly braces is parsed as PHP, and anything in single curly braces echoes the variable.
    So, in a template, this would look like:
    {{$apiOutput = \IPS\Member::loggedIn()->apiOutput();}} {$apiOutput['joined']} {$apiOutput['rank']['name']} You could not, however, do:
    {\IPS\Member::loggedIn()->apiOutput()['joined']} since there is not a variable in the single curly braces.
    Where in globalTemplate do you want this to appear, exactly?
  11. Thanks
    IPCommerceFan reacted to Daniel F in How to use {expression="\IPS\Member::loggedIn() ?   
    You could either take a look at the core_members database table or the system/Member/Member.php class to see all the available fields.
     
    The lazy way would be probably Member::logged()->apiOutput() , which would return an array with following data:
    /** * Get output for API * * @param \IPS\Member|NULL $authorizedMember The member making the API request or NULL for API Key / client_credentials * @param array|NULL $otherFields Array of additional fields to return (raw values) * @return array * @apiresponse int id ID number * @apiresponse string name Username * @apiresponse string title Member title * @clientapiresponse string timezone Member timezone * @apiresponse string formattedName Username with group formatting * @apiresponse string ipAddress IP address used during registration * @apiresponse \IPS\Member\Group primaryGroup Primary group * @clientapiresponse [\IPS\Member\Group] secondaryGroups Secondary groups * @clientapiresponse string email Email address * @apiresponse datetime joined Registration date * @clientapiresponse string registrationIpAddress IP address when registered * @clientapiresponse int warningPoints Number of active warning points * @apiresponse int reputationPoints Number of reputation points * @apiresponse string photoUrl URL to photo (which will be the site's default if they haven't set one) * @apiresponse bool photoUrlIsDefault Indicates if the value of photoUrl is the site's default * @apiresponse string coverPhotoUrl URL to profile cover photo (will be blank if there isn't one) * @apiresponse string|null profileUrl URL to profile * @clientapiresponse bool validating Whether or not the validating flag is set on the member account * @apiresponse int posts Number of content item submissions member has made * @apiresponse datetime|null lastActivity Last activity date on the site. * @clientapiresponse datetime|null lastVisit Last distinct visit date on the site. * @clientapiresponse datetime|null lastPost Latest content submission date. * @apiresponse int profileViews Number of times member's profile has been viewed * @apiresponse string birthday Member birthday in MM/DD/YYYY format (or MM/DD format if no year has been supplied). * @apiresponse [\IPS\core\ProfileFields\Api\FieldGroup] customFields Custom profile fields. For requests using an OAuth Access Token for a particular member, only fields the authorized user can view will be included * @apiresponse [\IPS\core\Achievements\Rank] rank Rank * @apiresponse int achievements_points Points */  
  12. Like
    IPCommerceFan reacted to Daniel F in Display FA icons in radio fields - theme settings   
    Set the type to "Other/Manual" and then use following code:
    <?php $options = ['fa-angle-up' => '<i class="fa fa-angle-up"></i>', 'fa-chevron-up' => '<i class="fa fa-chevron-up"></i>', 'fa-window-close' => '<i class="fa fa-window-close"></i>']; return new \IPS\Helpers\Form\Radio("core_theme_setting_title_{$row['sc_id']}", $value, FALSE, array( 'options' => $options, 'parse' => "raw" ), NULL, NULL, NULL, 'theme_setting_' . $row['sc_key']); Result:


     
    You could also use the IPS\Helpers\Form\Custom form field type which allows you to literally customize the whole output...
     
     
  13. Like
    IPCommerceFan got a reaction from Computer Candy in Invision Commerce Presale Question   
    Yeah same results here, though I have to assume most probably pay to remove the "Powered by Invision Community" line if they're selling products.
    There is no built-in functionality which would call up a specific picture based on form selections.
    There is functionality which can change stock level or price depending on which options are selected on the form, though, so a developer could likely look at how this works and apply the same logic to which image is displayed, of the uploaded package images.
    e.g.:
    The form:

    The package:

    This is what a developer could probably accomplish:

    mockup
    Where the dropdown options are sourced from here:

     
     
    Ultimately I feel this should be a built-in functionality since you see it everywhere, but the fact it can be willed into existence with some code is at least a benefit of using this platform.  I explored Shopify and BigCommerce a few years ago, but ultimately came back to Commerce due to its flexibility for our use case, and the integrated support ticket system.
  14. Thanks
    IPCommerceFan reacted to Marc Stridgen in [Bug] Can't upgrade Commerce package / PHP 8 TypeError   
    Thank you for reporting the bug there, and for the detail you have got to in order to show what is happening. I have added this to our internal bug tracker so that it can be resolved in a future release.
  15. Like
    IPCommerceFan reacted to Marc Stridgen in Group-specific starting point   
    Just thought I would come back to this to let you know we have added a quick case study for people who want to achieve this using the pages application. Of course if there is anything you feel would be good to add in there, feel free to let me know.
     
  16. Agree
    IPCommerceFan reacted to Iwooo in Hump Day: 4.6.7 is officially out!   
    Hi, I thought that I will see this issue addressed - 
    Didn't see it in 4.6.4-5-6 and now :( 
  17. Agree
    IPCommerceFan reacted to Iwooo in Add JSON Schema for Pages App and other rich snippets!   
    Despite that Pages App has "Reviews" tab for entries they are not used for SCHEMA JSON. There is no rich snippet for it. 
    Google is focusing more and more on direct answers, answer boxes, review boxes, faq schemas. 
    We need those in IPB. Invision teams says on and on about SEO improvements so please add something that really works for SEO and getting higher CTR. 





     
    I created this topic after getting no help from Invision team here - 
    And I was forced to use support to get answer which was:

  18. Like
    IPCommerceFan reacted to Daniel F in Error after upgrading 4.6.7 -> undeclared static property   
    You won’t be able to run the upgrader with IN_DEV mode 🙂 
  19. Thanks
    IPCommerceFan reacted to Matt in Hump Day: 4.6.7 is officially out!   
    Yes, we are aiming for a release every single month which will bring a mix of new features and bug fixes.
  20. Agree
    IPCommerceFan reacted to Stuart Silvester in Commerce as a ticket system?   
    If you use the pipe/incoming email functionality, anyone regardless of whether they are registered or not can create tickets by emailing you.
  21. Thanks
    IPCommerceFan got a reaction from Roboko in REST API - How to send Arrays?   
    Hi @Roboko
    Here's an example you can plug into a custom php block for testing purposes. Just update communityUrl, apiKey, and the specified member ID:
    <?php //REST API URL and KEY $communityUrl = 'https://www.yourdomain.com/'; $apiKey = 'abcdefghijklmnopqrstuvwxyz123456'; $id = 1; //Member ID // REST Endpoint $endpoint = "/core/members/{$id}"; $curl = curl_init( $communityUrl . 'api' . $endpoint ); // POST data $curl_post_data = array( 'customFields' => array( '3' => 'foo', '4' => 'bar' ), ); // Prepare data for cURL POST $curl_post_data = urldecode(http_build_query($curl_post_data)); //Turn parameter array into a string that looks like 'category=1&author=1&title=test file', etc. Only non-null items are included in this list. urldecode turns characters like %26 back into &. // POST Data curl_setopt_array( $curl, array( CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_HTTPAUTH => CURLAUTH_BASIC, CURLOPT_USERPWD => "{$apiKey}:", CURLOPT_POST => TRUE, CURLOPT_POSTFIELDS => $curl_post_data ) ); // Get Response JSON $response = curl_exec( $curl ); // Build object $response = json_decode($response); echo \IPS\Member::load($response->id)->url()->setQueryString( 'tab', 'field_core_pfield_3' ); echo \IPS\Member::load($response->id)->url()->setQueryString( 'tab', 'field_core_pfield_4' ); Hope it helps!
  22. Agree
    IPCommerceFan reacted to Computer Candy in Invision Commerce Presale Question   
    Thank you very much for your thorough replies.
    Yeah, it's pretty surprising that it doesn't have thumbnail changing built in depending on your option choices. It is pretty standard practically everywhere now. And super important for certain types of products.
    Hopefully someone can come up with an easy modification for this. I can't imagine that people who sell clothing for example, can be happy about thumbnails not changing based on color choices or design variations.
    I'm not sure if this will fit my needs unfortunately. It really may infact just be too basic. This one functionality alone is very important for how I'd be using it.
    We're selling collectables of varying condition. People need to be able to select the quality grading available, and then see actual photos of the product. We can't have 30 different listings for the same product just to get around this limitation. Not only is it logistically unfeasible, and a headache for customer navigation, it's gotta be really bad on SEO.
  23. Like
    IPCommerceFan reacted to CoffeeCake in Registration emails going to spam   
    Trying to understand what the issue is here--are you using a Google Workspace (previously GSuite) to send e-mails from your forum, or an actual consumer @gmail.com account?
    This is likely not an IPS issue, but rather one of:
    Your SPF/DKIM records are not correct The account you are using to send e-mail from has been flagged enough times by recipients that it is considered by the email providers to be spam
  24. Like
    IPCommerceFan got a reaction from Ramsesx in Invision Commerce Presale Question   
    You might try searching google for "Store" and "Powered by Invision Community".
    We've used Commerce (Nexus) for almost a decade with great success:
    https://www.trifectaperformance.com/
    Our use case might be considered a "simple" implementation, but given Commerce runs on IC's framework, the sky is the limit if some functionality that doesn't exist is needed.
  25. Like
    IPCommerceFan got a reaction from Computer Candy in Invision Commerce Presale Question   
    You might try searching google for "Store" and "Powered by Invision Community".
    We've used Commerce (Nexus) for almost a decade with great success:
    https://www.trifectaperformance.com/
    Our use case might be considered a "simple" implementation, but given Commerce runs on IC's framework, the sky is the limit if some functionality that doesn't exist is needed.
×
×
  • Create New...