Blog

Dropdown image load fix

User function prof_display_similar_products_from_subcategory() { global $product; if (!$product || !is_a($product, 'WC_Product')) { return; } $similar_products = prof_get_similar_products_from_subcategory($product->get_id()); if (empty($similar_products)) { return; // No similar products found } //$max_display = 4; // Limit for displayed products $product_count = count($similar_products); // Function to fetch Linguise translated URLs function prf_get_linguise_translated_url($source_link) { global $wpdb; $source_path = rtrim(str_replace(wp_parse_url(site_url(), PHP_URL_PATH), '', […]

Task Interface Error Fix

User ConcreteCoreCommandTaskRunnerCommandTaskRunner::__construct(): Argument #1 ($task) must be of type ConcreteCoreCommandTaskTaskInterface, ConcretePackageShoppingFeedManagerCommandGenerateMerchantFeedCommand given, called in /var/www/html/packages/shopping_feed_manager/src/Command/Task/Controller/GenerateMerchantFeedController.php on line 33 Assistant The error you're encountering: ConcreteCoreCommandTaskRunnerCommandTaskRunner::__construct(): Argument #1 ($task) must be of type ConcreteCoreCommandTaskTaskInterface, ConcretePackageShoppingFeedManagerCommandGenerateMerchantFeedCommand given means you're passing a `Symfony Command` (i.e., `GenerateMerchantFeedCommand`) where Concrete CMS expects a `ConcreteCoreCommandTaskTaskInterface`. — ### 🔍 What's the problem? Concrete […]

Concrete Task Manager Inquiry

User Use Concrete task managwer Assistant Could you please clarify what you mean by **"Concrete task manager"**? Do you mean: 1. A **task management system built in Concrete CMS** (like a custom package)? 2. The **Task process system** in Concrete CMS (e.g., tasks run via `bin/concrete c5:tasks` command)? 3. A **custom task manager app** you're […]

Summer Mocktail Recipe

User Recipe for summer mocktail Assistant Here's a refreshing **Summer Mocktail** recipe — easy, fruity, and perfect for hot days! — ### 🍓 **Tropical Berry Citrus Cooler** #### **Ingredients (serves 2–3):** – 1 cup mixed berries (strawberries, blueberries, raspberries) – 1 orange (juiced) – 1 lemon (juiced) – 1 tablespoon honey or agave syrup (optional, […]

Meerdere categorieën restrictie

User add_action('current_screen', 'restrict_order_access_based_on_category'); function restrict_order_access_based_on_category() { if (!is_admin()) return; $screen = get_current_screen(); if ($screen->id !== 'shop_order') return; if (!isset($_GET['post']) || get_post_type($_GET['post']) !== 'shop_order') return; $order_id = absint($_GET['post']); if (!$order_id) return; // 🔒 Category to restrict $restricted_category_slug = 'bijna-verboden'; // Change this $allowed_usernames = ['prof_nethues']; // Add your allowed usernames here $current_user = wp_get_current_user(); $order = […]

Preventing Double Scans

User document.addEventListener('deviceready', function () { if (cordova.platformId === 'android') { var permissions = cordova.plugins.permissions; permissions.checkPermission(permissions.CAMERA, function (status) { if (!status.hasPermission) { // Request permission permissions.requestPermission( permissions.CAMERA, function (status) { if (status.hasPermission) { navigator.splashscreen.hide(); // Hide splash after permission initializeApp(); // Proceed with your app } else { navigator.app.exitApp(); // Exit if denied } }, function […]

Common Navbar Framework7

User Fossettscircus Scanner <script> </script> <script> </script> <script> </script> <script> </script> <script> </script> Make common navbar to use on every page Assistant To make a **common navbar** that appears on every page in your Framework7 + jQuery Cordova app, follow these steps: — ### ✅ 1. **Create a Common Navbar HTML (Reusable Component)** **File**: `components/navbar.html` […]

App first launch fix

User document.addEventListener('deviceready', function () { // Initialize Framework7 window.f7App = new Framework7({ el: '#app', name: 'FossettsCircusApp', theme: 'auto', routes: [ { path: '/', url: 'pages/home.html' }, { path: '/event/:id/:dateId/', url: 'pages/event-details.html' } ] }); // ✅ Corrected main view with `url` set: window.mainView = window.f7App.views.create('.view-main', { url: '/' }); // Start the app after permissions […]

Item Quantity Clarification

User Could you please confirm are you talking about item quantity or 2 different items in order Correct above Assistant Sure! Here's the corrected version of your sentence: **"Could you please confirm whether you're referring to the quantity of a single item or two different items in the order?"** Let me know if you'd like […]

Probo Configurator Integration

User Implement Probo Configurator product User stories • As a customer, I want to be able to configure products on my website using the Connect Configurator. • As a webshop owner, I want to be able to get the payload of the product so it can be used in the Order Payload. Important notes • […]