Blog

Clear order data timer

User (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); } else […]

Cart timer and modal

User (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); } else […]

Cart timer script

User create 20 min timer when ever user visit on buy.php and afater 20 min complete all local storgae should clear Even if user closed the broswer and come agai and if 20 min complete then clear the previous cart in js Assistant Got it—here’s a drop-in JS snippet that: – starts a **20-minute cart […]

HTML loop in JavaScript

User We have javascript array with data tickets : Array(2) 0 : {section: 'tiered', type: 'ADULT', price: 18, quantity: 2} 1 : {section: 'tiered', type: 'CHILD', price: 14, quantity: 1} now I have a event loop each event has section,type and price Now I want to fill quantity if its avaul tickets array otherwise set […]

Correct sentence grammar

User When I get this issue I've started debugging and applied some code changes in order.php in stripe payment token code in staging site at that time, But currently its only on staging site , So I want to update that some changes has been made staging site to make improvement Correct above sentence Assistant […]

Multiple upload buttons code

User public function probo_upload_field_to_cart_items($cart_item, $cart_item_key) { if (!empty($cart_item['probo_uploader_url'])) { $upload_url = esc_url($cart_item['probo_uploader_url']); $button = 'Upload Files'; echo $button; } } make it to handle muliple loine item has multile upload files button Assistant Here’s a drop‑in version that renders **one Upload button per unit** (qty) and also supports **multiple URLs per line item** if you […]

Facebook in-app browser fix

User on facebook in-app browser let orderData = { tickets: [], addOns: [], total: 0 }; // Store event date string globally for use in order summary let selectedEventDateString = ''; // Global add-ons data for label lookup let globalAddOnsData = []; // Cache DOM elements const domCache = { form: null, ticketSections: null, addOnsGrid: […]

New chat

User Refused to load the stylesheet 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback. Understand this error buy-tickets.php?event_id=358&event_date_id=2327:1 Refused to load the stylesheet 'https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'". […]

Issue in Facebook browser

User for external browser its workn gfine Assistant Got it 👍 So you mean **on an external browser (Chrome, Safari, etc.) everything works fine**, but the issue only happens **inside the Facebook in-app browser**, right? That usually happens because Facebook’s in-app browser has stricter rules or missing features — especially around **iframes, CSP (Content Security […]

Facebook in-app browser issue

User for other browser its working fine Assistant Got it 👍 So the issue only happens **inside Facebook’s in-app browser**, while Chrome, Safari, Firefox etc. are working fine. This usually points to one of these causes: 1. **Facebook in-app browser limitations** – Some features (e.g., Stripe Elements, Google Pay iframes) don’t render correctly inside the […]