Jump to content

Claudia

Member
  • Posts

    262
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Claudia

  1. I had the code changed for this in earlier versions of CC but now i am using CC647 and PHP 8.1

    I am the only one that uses my computer and I am in admin for some reason or other a lot.  With this new version I am constantly being logged out.  Any way to stay logged in?

    Thanks

  2. in the admin/skin/order.index

    Line 18

     <thead>

                <tr>

                   <td>&nbsp;</td>

                   <td nowrap="nowrap">{$THEAD.cart_order_id}</td>

                   <td>&nbsp;</td>

                   <td>{$THEAD.customer}</td>

                   <td>{$THEAD.sold_site}</td>

                   <td>{$THEAD.site_full_address}</td>

                   <td nowrap="nowrap">{$THEAD.status}</td>

                   <td>{$THEAD.date}</td>

                   <td>{$THEAD.total}</td>

                   <td>&nbsp;</td>

                </tr>

             </thead>

     

    Line 50:

     <td><span class="editable" name="sold_site[{$order.order_id}]">{$order.sold_site}</span></td>

  3. "Do you have any code to process that new column?"

    In looking closer I don't think I did for this sold_site column

    "Has there been any prior discussion on the forum about customizing your admin skin to do this?"

    Yes for my stuff shown above - but nothing for the Orders tab where there is no save button

    And the info won't be coming from the "product"  like the other code.  It will all stay in the order summary.  I had this in the source customer before I removed it

      if (isset($_POST['sold_site']) && is_array($_POST['sold_site']) && Admin::getInstance()->permissions('customers', CC_PERM_EDIT)) {
            foreach ($_POST['sold_site'] as $customer_id => $sold_site) {
                $result = $result || $GLOBALS['db']->update('CubeCart_customer', array('sold_site' => $sold_site), array('customer_id' => (int)$customer_id));
            }
                    if ($result) {
                $GLOBALS['main']->successMessage("Some or all Sold Sites updated.");
            }
            $send_redirect = true;
        }

     

  4. I don't have anything for sold_site at line 720.  What whould my full code be?

    I had my code for other stuff around line 327"

    example:

     $filemanager = new FileManager(FileManager::FM_FILETYPE_DL);
                    foreach ($inventory as $product) {
                      if ( empty($product['excel_name']) ) {
       $product_excel_name_record =
    $GLOBALS['db']->select('CubeCart_inventory','excel_name',array('product_id'
    => $product['product_id']));
       $product['excel_name'] = $product_excel_name_record[0]['excel_name'];
    }    

  5. I think this is what you want:

    POST
       https://www.claudiasbargains.com/admin_xxxxxxx.php?_g=orders&sold_site[0]=cb-store&multi-status=&multi-action=&go=Go&search[order_number]=&search[search_customer_id]=&search[statu

     

    This is Request Payload:   -----------------------------7665031632393229901537355182

    The cb-store is my editible column

    I had that column ajax from my admin/customer but could never get it to save to the order when I updated the customer so I removed coding from customer and removed the ajax_sold_site from the order - just have it as sold_site.  I can change the sold_site "inside" the order and it will change on the main orders tab and in the special data tab I have in the order.  I just can't change and save from the main "orders" tab where it shows all the orders.

     

     

  6. Found the problem.  Part of my code looked like this for some reason.  Any ideas why?

    <ul>{foreach $GALLERY_ARRAY as $gallery_image}
                      {if $gallery_image@index > 0}
                      <li id="gallery_imageset_{$gallery_image.file_id}">
                         <img src="../../AAA%20CC%206.4.6/CC%206.4.6%20Download/Original%20Do%20Not%20Edit/admin/skins/default/templates/images/source/{$gallery_image.filepath}{$gallery_image.filename}" title="{$gallery_image.filepath}{$gallery_image.filename}" />
                      </li>

    Just saw I had similair in translations

       <input type="hidden" name="" id="">
                <a href="{$translation.edit}" title="{$translation.name}">
                 <img src="../../AAA%20CC%206.4.6/CC%206.4.6%20Download/Original%20Do%20Not%20Edit/admin/skins/default/templates/language/flags/{$translation.language}.png" alt="{$translation.name}"></a>
                &nbsp; <a href="{$translation.edit}" title="{$translation.name}">{$translation.name}</a>
             </div>

     

  7. Whenever I try to logout of admin I get this red banner and I cannot logout.  I have no other windows open and have not used the back button.

    Security Alert:  Possible Cross-Site request forgery (CSRF).  Please do no use multiple tabs/windows or the browser back button.

     

    cPanel error log (nothing in admin error log):

     

    [28-Jul-2022 00:38:55 America/Louisville] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 1170

    [28-Jul-2022 04:28:34 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

    [28-Jul-2022 04:28:35 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

    [28-Jul-2022 08:26:35 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

    [28-Jul-2022 09:43:43 America/Louisville] PHP Warning:  Security Warning: Illegal array key "images/" was detected and was removed. in /home/xxxxxx/public_html/classes/sanitize.class.php on line 114

    [28-Jul-2022 11:12:45 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

    [28-Jul-2022 11:12:55 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

    [28-Jul-2022 11:14:06 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

    [28-Jul-2022 11:14:17 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

    [28-Jul-2022 11:17:03 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

    [28-Jul-2022 11:17:05 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

    [28-Jul-2022 11:17:06 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxx/public_html/classes/sanitize.class.php on line 155

×
×
  • Create New...