Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed abandoned cart report #241

Merged
merged 2 commits into from
Mar 10, 2017
Merged

Fixed abandoned cart report #241

merged 2 commits into from
Mar 10, 2017

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Mar 9, 2017

Fix for 1.9.3.1/1.9.3.x

`a:5:{i:0;s:64:"You cannot define a correlation name 'cust_mname' more than once";i:1;s:5216:"#0 /var/www/html/magento-1.9.1.0/lib/Varien/Db/Select.php(281): Zend_Db_Select->_join('inner join', Array, 'cust_mname.enti...', Array, NULL)
#1 /var/www/html/magento-1.9.1.0/app/code/core/Zend/Db/Select.php(352): Varien_Db_Select->_join('inner join', Array, 'cust_mname.enti...', Array, NULL)
#2 /var/www/html/magento-1.9.1.0/app/code/core/Mage/Reports/Model/Resource/Quote/Collection.php(224): Zend_Db_Select->joinInner(Array, 'cust_mname.enti...', Array)
#3 /var/www/html/magento-1.9.1.0/app/code/core/Mage/Reports/Model/Resource/Quote/Collection.php(90): Mage_Reports_Model_Resource_Quote_Collection->addCustomerData(NULL)

@colinmollenhour
Copy link
Member

Nit-pick: You left the joinLeft and removed the joinInner but the core code has joinInner. Probably doesn't really make a difference but is generally better to stick with upstream unless there is a reason to change.

https://github.com/OpenMage/magento-mirror/blob/magento-1.9/app/code/core/Mage/Reports/Model/Resource/Quote/Collection.php#L209

@colinmollenhour colinmollenhour merged commit 21e0697 into OpenMage:1.9.3.x Mar 10, 2017
@sreichel
Copy link
Contributor Author

@colinmollenhour can you pls merge to 1.9.3.1, too?

@sreichel sreichel deleted the hotfix/reports/model/resource/quote/collection-duplicate-cust_mname branch March 10, 2017 22:58
@colinmollenhour
Copy link
Member

As far as I understand it the 4-number branches are essentially deprecated and only the n.n.n.x branches will be maintained going forward (and mainly just the latest one).

@Flyingmana
Copy link
Contributor

But if someone needs it, you can still do a PR referencing the main PR. But please use a "Backport" label then.

@sreichel
Copy link
Contributor Author

@colinmollenhour i agree for some features that were added, but bugfixes could be backported (to at least last two versions) as in readme ...

Each Magento Version release will get its own branch that will be independently maintained with patches and backported bug fixes.

@sreichel
Copy link
Contributor Author

sreichel commented Jul 31, 2017

@colinmollenhour

Nit-pick: You left the joinLeft and removed the joinInner but the core code has joinInner. Probably doesn't really make a difference but is generally better to stick with upstream unless there is a reason to change.
https://github.com/OpenMage/magento-mirror/blob/magento-1.9/app/code/core/Mage/Reports/Model/Resource/Quote/Collection.php#L209

See #41, can you please check?

Think Fixed joinLeft / joinInner should be reverted.

@colinmollenhour
Copy link
Member

Ahh, agreed.. Looks like comparing to core was a mistake.

colinmollenhour added a commit that referenced this pull request Jul 31, 2017
seansan added a commit to seansan/magento-lts that referenced this pull request Nov 17, 2017
* Added missing functionality for getThumbnailUrl

* Import Magento Release 1.9.3.2

This is part 1 of 2 and covers all the non-copyright messages changes

Fingerprint of original file:
> openssl sha1 magento-1.9.3.2-2017-02-07-01-57-07.tar.bz2
SHA1(magento-1.9.3.2-2017-02-07-01-57-07.tar.bz2)= 16d15f00a1898c4706b4bcf5501d9aa360c87f5b

Commands used:
> cd magento-mirror
> rm -rf * .ht*
> tar xvf ../magento-1.9.3.2-2017-02-07-01-57-07.tar.bz2 --strip-components=1
> LC_ALL=C find -E * -type f -regex '.*\.(php|php\.sample|phtml|js|css|scss|sh|xml|xml\.(dist|sample|additional|template)|xsd|csv|mxml|as)' \
  -exec sed -i '' 's/2006\-2017 X/2006\-2016 X/g' {} + \
  -exec sed -i '' 's/2017 Magento/2016 Magento/g' {} + \
  -exec sed -i '' 's/2017 Phoenix/2016 Phoenix/g' {} +
> sed -i '' 's/2006\-2017 X/2006\-2016 X/g' mage
> git add -A .
> git commit

* Import Magento Release 1.9.3.2

This is part 2 of 2 and covers all the copyright message changes

Fingerprint of original file:
> openssl sha1 magento-1.9.3.2-2017-02-07-01-57-07.tar.bz2
SHA1(magento-1.9.3.2-2017-02-07-01-57-07.tar.bz2)= 16d15f00a1898c4706b4bcf5501d9aa360c87f5b

Commands used:
> cd magento-mirror
> rm -rf * .ht*
> tar xvf ../magento-1.9.3.2-2017-02-07-01-57-07.tar.bz2 --strip-components=1
> git add -A .
> git commit

* disable 'ALTER TABLE ... DISABLE KEYS' statements by default, and remove useless calls to useDisableKeys()

* Fixed add poll answer delete button

* [BUGFIX] Fix switching between customer addresses in the admin panel

* make sure address data is reset for each loop iteration
* stop setting empty region field to '0' when switching between saved addresses

Fixes OpenMage#193

* Fixed customer account downloadable list (OpenMage#242)

Testing github "Squash and Merge" method.

* Removed unreachable js

* Add SUPEE-4814

This fixes an infinite recursion loop when validating a "Products subselect" cart price rule.
Apparently the patch only got released for EE, but CE suffers from the same problem. :/

source: https://gist.github.com/piotrekkaminski/54529dadb0bc01a62a2d

* Updated Mage_Catalog_Model_Resource_Url

Updated Mage_Catalog_Model_Resource_Url, fixed is_active attribute when calling _getCategories()

* Import Magento Release 1.9.3.3

* Updated readme.md (OpenMage#270)

Just grammar pirate.

* This bug was present begining in 1.7.0.2 and is still present in 1.9.3.3. This patch has been running in production for about 4 years without any issues.

Code was mis-calcuating the qty of simple items to put back in stock for bundle (and configurable) products.

For example if you had a Bundle X that contained 10 Widgets and the customer ordered 10 of the Bundle X (thus they ordered 100 Widgets), the code previously would multiply twice when issuing a credit memo: When calling $item->getQty() on the Widget product Magento would return 100, since that's how many exist in the order. It would then multiply that by the number of Bundle X in the order (10), and would return 1000 items to the inventory for the Widget, instead of just 100.

* Possible fix of OpenMage#282

Possible fix of OpenMage#282

OpenMage#282

* Fix missing imagecreatefromwbmp

Fix missing imagecreatefromwbmp from https://magento.com/tech-resources/bug-tracking/issue/index/id/1504/

* Typo in Mage_Admin_Model_User

* Typo in Mage_Admin_Model_User

* Fix SKU chooser widget attributes to select which should be an array.

* Typo in category controller

* Typo in category controller

* [FIX] set email as sent only if customer notified

In all other places where a "email" flag is used, email_sent is only set if the flag is true.

PS:
In my opinion, the $notifiyCustomer condition is a better solution than assigning $notifiyCustomer directly to "email_sent". One can send invoices/creditmemos multiple times. Just a second run could make it look like an email was never sent (even though it was sent in the first run).

* Import Magento Release 1.9.3.4

* Set sane default session_cookie_lifetime (3 hours)

Refs colinmollenhour/Cm_RedisSession#104

* remove leftover 1.9.3.2 package files

* fix ssl version

./mage list-upgrades
Error:
list-upgrades: TCP connection reset by peer

remove specific ssl version, first because version specified TLS v1 is not supported by connect20.magentocommerce.com
https://www.ssllabs.com/ssltest/analyze.html?d=connect20.magentocommerce.com&s=52.3.167.65

and second because server can choise right version byself
tested on centos
PHP 5.5.38 (cli) (built: Feb 18 2017 08:04:56)
curl 7.54.1 (x86_64-redhat-linux-gnu) libcurl/7.54.1 NSS/3.28.4 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.21.1

* Fix slow url_rewrite query on MySQL 5.7

Fixes: OpenMage#295

* Fixes system config dependencies for multiselect fields

* Fixed undefined variable when creating shipping labels

* Adds product add to cart event

* Add possibility to remove link at sales order and account edit page

* Fixes hidden checkout config, fixes OpenMage#259

* Fixes wrong usage of getSelect()->order() method

* Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
This commit also reverts db69295

* cloudflare reset current path in file manager

check also if is post request on set current path because i've got an issue with cloudflare that make a PURGE request like this:
[REQUEST_METHOD] => PURGE
[CONTENT_TYPE] => application/x-www-form-urlencoded; charset=UTF-8
[CONTENT_LENGTH] =>
[SCRIPT_NAME] => /index.php
[REQUEST_URI] => /index.php/gestione/cms_wysiwyg_images/contents/type/image/key/e0b288aa6c56c42688c45a7f0ef4340e/?isAjax=true
without POST parameters and reset current path on file manager to the root / and with the result of we are unable to upload or delete a file.

this resolve issues with cloudflare at application level but you can fix problem at server level by limit methods on nginix to request uri
contains *cms_wysiwyg_images*
for examples (not tested):

location ~ cms_wysiwyg_images {
    limit_except POST {
        deny all;
    }
}

* Fixed typo, fixes OpenMage#334

* Update README.md regarding versioning strategy. Refs OpenMage#273 (OpenMage#333)

* Create .travis-ci.yml adding PHP lint

* Allow PHP 7.2 to fail for now.

* Exclude lib/PEAR and lib/phpseclib from PHP Lint test.

* Fix PHP lint path pruning.

* Actually fix PHP lint path pruning.

* Fix errors found via PHP lint.

* Speed up lint by excluding lib/Zend

* Import Magento Release 1.9.3.6

* Update patch list

* Remove rej file

* Fixed removeAccents method for german umlauts

* Fixed typo in Mage_HTTP_Client_Curl, fixes OpenMage#281

* Removed obsolete files, fixes OpenMage#352

* Make Mage registry related methods consistent

* Fix bug with missing close parenthesis

* Added missing comma, see OpenMage#317, fixes OpenMage#370

* Remove stray block element in checkout.xml
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Nov 27, 2017
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Dec 6, 2017
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Dec 6, 2017
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
@sreichel sreichel added the bug label Jan 11, 2018
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Feb 28, 2018
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Mar 20, 2018
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Jul 17, 2018
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Sep 19, 2018
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Feb 14, 2019
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Apr 1, 2019
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 22, 2019
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Oct 25, 2019
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
@sreichel sreichel added the Component: Reports Relates to Mage_Reports label Jun 6, 2020
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 20, 2020
Use joinLeft instead of joinInner to fix customers missing from reports.

Refs OpenMage#41
Refs OpenMage#241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Component: Reports Relates to Mage_Reports
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants