Category: AI Conversations

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 […]

Code fix for double-post

User <script> window.location='https://fossettscircus.com/success/?eid=" . $order_info->event_date_id . "&oc=" . $order_info->order_code . "'; </script> ' "; goto continue_with_wordpress; exit(); } else { sendErrorMail( "Order not saved", "Order not saved but charge paid" . var_export( $order_info, true ) ); if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { header('Content-Type: application/json'); echo json_encode([ 'success' => false, 'message' => 'Order could not […]

Remove index.php CodeIgniter

User remove index.php from url codeignter Assistant In CodeIgniter, by default URLs look like this: http://example.com/index.php/controller/method To remove `index.php` from the URL, you need to do two things: — ### **1. Update `config.php`** Open `application/config/config.php` (CodeIgniter 3) or `app/Config/App.php` (CodeIgniter 4) and set: $config['index_page'] = ''; For CI4: public string $indexPage = ''; — ### […]

PaymentIntent fix guide

User <script> window.location='https://fossettscircus.com/success/?eid=" . $order_info->event_date_id . "&oc=" . $order_info->order_code . "'; </script> ' "; goto continue_with_wordpress; exit(); } else { sendErrorMail( "Order not saved", "Order not saved but charge paid" . var_export( $order_info, true ) ); if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { header('Content-Type: application/json'); echo json_encode([ 'success' => false, 'message' => 'Order could not […]