Blog

Manage add/edit form

User manage add/edit form same controller and open same page like feed.php in concrete cms Assistant Got it. Here’s a clean pattern for **one Single Page (feed.php)** that handles both **Add** and **Edit** in the same controller in Concrete CMS 9+. — # 1) Single Page + Controller structure /application /single_pages feed.php <– one page […]

PHP code fixes

User Assistant Here are the **minimal fixes** you need: — ### 1) Imports (add at the top) use PagerfantaPagerfanta; use PagerfantaAdapterFixedAdapter; use ConcreteCoreSearchPaginationPagination; — ### 2) Fix the wrong helper call in `tracklog()` Replace: ['page' => $page, 'perPage' => $perPage, 'offset' => $offset] = $this->getPagination(); with: ['page' => $page, 'perPage' => $perPage, 'offset' => $offset] […]

Fix WooCommerce fatal error

User <script> jQuery(document).ready(function ($) { //Check for an entry cookie in the product's category <?php $product_cat = false; $product_id = $product->get_id(); $product_cats = get_the_terms( $product->get_id(), 'product_cat' ); if ( $product_cats ) { $product_cat = $product_cats[0]->term_id; } if ( $product_cat && !get_post_meta( $product_id, '_pmm_consultation_form_id', true ) ): ?> var categoryId = '<?php echo absint($product_cat); ?>'; if […]

AWS EC2 T3 prices

User Awsbec2 t3 prices Assistant Here’s what I found regarding **AWS EC2 T3 instance pricing**, focusing on the most recent and accurate information: — ### Pricing Overview (US East – N. Virginia / On-Demand Linux) – **T3.medium** (2 vCPUs, 4 GiB RAM) • ~$0.0416 per hour (~$30.37 per month) citeturn0search3turn0search6 – **T3.large** (2 vCPUs, 8 […]

Integrate Google Pay WooCommerce

User Integrate google pay to woocommerce Assistant Got it! Here’s the clean, proven way to add **Google Pay** to WooCommerce (the same flow I recommend on most stores). # Option A (recommended): via Stripe (or WooCommerce Payments) This is the fastest and most stable path. Stripe (and WooCommerce Payments, which uses Stripe under the hood) […]

Replace add to cart button

User replace add to cart button at shop page for sepecif product type woocommerce Assistant Got it ✅ — you want to replace the **Add to Cart** button on the **shop/archive page** for a specific WooCommerce product type. We can do this with the `woocommerce_loop_add_to_cart_link` filter. Here’s a working snippet you can drop into your […]

Udaipur sunset caption

User Time flies 2026 is four months away. 2020 is nearly six years gone. In between, everything changed, quietly, slowly, all at once. We lost people. We let go of things we thought would last forever. We found pieces of ourselves in the wreckage. Time didn't wait. It moved, and we had to follow. Some […]

Delivery date integration

User Delivery dates and suppliers inside the cart and checkout: So when a user has a Probo product inside the cart and checkout they should be able to select a delivery date and from there get the suppliers for that specific date. For example it should look something like this: This should also work with […]

Cart timer update

User const DURATION = 20 * 60 * 1000; // 20 minutes const TWO_MINUTE_MS = 5 * 60 * 1000; const DEADLINE_KEY = "cart_deadline"; // localStorage key const ORDER_KEY = "fossettsOrderData"; // your order data key // Get deadline from localStorage or set new let deadline = localStorage.getItem(DEADLINE_KEY); if (!deadline) { deadline = Date.now() + […]

Add 2 minute modal

User <script> (function () { const DURATION = 5 * 60 * 1000; // 20 minutes const DEADLINE_KEY = "cart_deadline"; // localStorage key const ORDER_KEY = "fossettsOrderData"; // your order data key // Get deadline from localStorage or set new let deadline = localStorage.getItem(DEADLINE_KEY); if (!deadline) { deadline = Date.now() + DURATION; localStorage.setItem(DEADLINE_KEY, deadline); } […]