News:

AbanteCart v1.4.2 is released.

Main Menu

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - jetman

#1
Main settings:
config_stock_checkout = 0
config_nostock_autodisable = 0

Product settings:
Track Stock = 1
Quantity = 0
Minimum Quantity = 0
Maximum Quantity = 0
Stock Checkout = 0

Options:
Option Type: selectbox
Status=1
Required=1
-> Option Values:
Default=1
Quantity=0
Track Stock=1
Price Modifier=0.00
Modify Price By=$

I did have these settings in the above admin.png attachment.

Please let me know if you need anything else.

Thank you,

Jason



#2
Basara: nope, I tried disable all the third party extensions to make sure, with no change.

Hello abolabo,

Thank you for the diagram.

On line 147 in storefront/model/catalog/product.php
-$query = $this->db->query("SELECT pov.quantity AS quantity
+$query = $this->db->query("SELECT pov.quantity AS quantity, pov.subtract AS subtract

$notrack_qnt was always set to 0. This fixes the "add to cart" button, but it still shows the wrong label of "Out of Stock." Also, I am still getting the two messages in the original post. I have to do some more poking around the code.

Jason

#3
I removed my theme from the equation, by switching to the default and I got the same problem.
#4
Hello Basara,

I ran diff and it doesn't show anything of real interest (config.php, .htaccess, .js files, photos, and extensions). I also cleared the cache on AbanteCart without luck.

Any other ideas?

Jason
#5
Hello Basara,

Yes, it is an upgrade from 1.2.10, no errors from the upgrade process
#6
General Support / Product stock and dropdown box issues
September 25, 2017, 03:30:25 PM
php 7.0.23
litespeed
AbanteCart v.1.2.11

Error Log:
2017-09-25 12:04:07 - warning: AbanteCart core v.1.2.11 current() expects parameter 1 to be array, integer given in <b>/home/xx/public_html/extensions/countrytheme/storefront/view/countrytheme/template/form/selectbox.tpl</b> on line <b>6</b>

The selectbox.tpl here is the same as the latest default.

Message Manager:

Form Field #option18 Issue
Message status:
warning
Date:
09/25/2017 12:04:07 PM
Number of repetitions:
26
Abnormal situation. All options of required field "option[18]" are disabled.


Issue #1

When a product has options and these options become out of stock, the storefront continues to show the dropdown box and add to cart button, causing the above messages. Both Stock Checkout in the product and checkout options are set to no. See attachment admin.png for the settings and storefront_1.png for the storefront. The availability shows the correct "No Longer Available" which leads to issue #2.

Issue #2

If I disable the options, oddly the availability changes to "Out of Stock" from "No Longer Available" and the Cart button changes to "Out of Stock." Both the store default and product Out Of Stock Status are set to "No Longer Available." See attachment issue_2.png


Thank you for all the fixes in 1.2.11 and all your hard work,

Jason
#7
General Support / guest_step_2 warning
May 27, 2017, 09:40:55 PM
Shipping modules: USPS, Fedex
PHP 7.0.19
LiteSpeed V6.10

Go to the guest checkout and enter an invalid zip code (ex 00000) for the delivery address on guest_step_1. The shipping modules on guest_step_2 show the correct error messages but this shows up in the error log:

2017-05-27 18:00:37 - warning: AbanteCart core v.1.2.10 Invalid argument supplied for foreach() in <b>/home/xxxx/public_html/storefront/controller/pages/checkout/guest_step_2.php</b> on line <b>336</b>

This should be a quick fix.

Jason
#8
General Support / Re: Error messages
February 12, 2017, 01:11:17 AM
Unfortunately, I am continuing to get warnings:

warning: AbanteCart core v.1.2.9 preg_match(): Compilation failed: nothing to repeat at offset 0 in <b>/home/xxx/public_html/core/engine/language.php</b> on line <b>293</b>
#9
General Support / Re: Error messages
February 11, 2017, 12:09:43 AM
The solution has been applied and I will report back in a few days.
#10
General Support / Re: non-configured warning
January 30, 2017, 03:56:32 PM
Thanks abolabo. I changed our .htaccess to the following:

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC, OR]
RewriteCond %{HTTP_HOST} :80
RewriteRule ^(.*) htp://www.mydomain.com/$1 [L,R=301] (note htp is http)

But I don't think mod_rewrite is an elegant solution since it is more complex for multi-store setups. Every domain would need its own RewriteCond and RewriteRule. php would be the better tool for the job.
#11
General Support / non-configured warning
January 30, 2017, 04:52:26 AM
A warning triggered by requesting urls with an specified port number (in this case, port 80) and the configured store url doesn't (this one was caused by a bad bot - must be from the department of redundancy department).

The store url is [http]://www.mydomain.com/ and the request is [http]://www.mydomain.com:80/

This is easily repeatable. Please note that I had to use a http header check tool to trigger the warning myself, modern browsers seem to remove the redundancy before sending the request.

Possible solution is to remove the default port number but still allow non-default port numbers (ex. 8080) before the check on line 168 in /core/lib/config.php

App Warning: AbanteCart core v.1.2.9 Warning: Accessing store with non-configured or unknown domain ( mydomain.com:80/ ).
Check setting of your store domain URL in System Settings . Loading default store configuration for now. in /home/*****/public_html/core/lib/config.php on line 210

php 7.0.13
litespeed
AbanteCart v.1.2.9
#12
General Support / Re: Error messages
January 30, 2017, 01:07:58 AM
Thank you Basara
#13
General Support / Re: Error messages
January 30, 2017, 12:47:41 AM
I am getting the same warning in our log (100+ entries). Normal visitors don't trigger the warming, so I am guessing its a bot with a malformed HTTP_ACCEPT_LANGUAGE?? I tried to trigger the warming on demand but I haven't found the winning combination.

php 7.0.13
litespeed
AbanteCart v.1.2.9
#14
General Support / Re: DB error in product.php
December 28, 2016, 01:00:26 PM
Thank you. It works perfectly  :)
#15
General Support / DB error in product.php
December 28, 2016, 01:38:03 AM
php 7.0.13
10.1.14-MariaDB
driver: amysqli
litespeed

Clicking on a product with an option in the cart, the resulting product page returns with this error:

2016-12-27 21:32:02 - database error: AbanteCart core v.1.2.9 SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':70968c2523c4ae41441b8df13a2c9231)
AND customer_group_id = '1'
AND' at line 3
Error No: 1064
SQL: SELECT product_id, price
FROM product_specials
WHERE product_id IN (1975:70968c2523c4ae41441b8df13a2c9231)
AND customer_group_id = '1'
AND ((date_start = '0000-00-00' OR date_start < NOW())
AND (date_end = '0000-00-00' OR date_end > NOW()))
ORDER BY product_id ASC, priority ASC, price ASC in <b>/home/***/public_html/core/database/amysqli.php</b> on line <b>108</b>

I am unable reproduce the error on the demo store and I replaced the core/storefront with a fresh copy but I am still getting this error. I like to know why abantecart is not removing ":70968c2523c4ae41441b8df13a2c9231"

Any ideas?

Jason

Forum Rules Code of conduct
AbanteCart.com 2010 -