-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Deleting item from cart problem #2433
Comments
I just tested it, and I can't reproduce your error, works fine here using the latest Firefox web browser on Linux. What web browser are you using? |
because your using a extension that changes the cart url |
it was a stupid commit because the only way it works is looking for the word cart in the url. what about if some one used another language and decided not to have the word cart int he url. |
its pointless using seo urls on the cart page! google does not need to index an empty cart page for your seo rankings. thsis code int he common.js is the issue but your code is not the solution.
|
It was opencart-russia Idiot has also left a big possible security issue right int he middle of the code! |
Daniel, you did not want to take the commits, and said not to write SEO stuff more. And who's the idiot? It was necessary to understand and easy to fix, and not to leave everything as is. Idiot! |
i only accepted your commit because i thought you knew what you were doing. |
@mhcwebdesign doesn't matter now, I see a recent commit has remove the URL_Alias entries for cart, checkout etc. I am using FireFox latest on Windows. Also got the same with IE on Windows. |
I add this in header.php if (isset($this->request->get['route'])) { and in header..tpl cur_route = ''; then replace if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') { with if (cur_route == 'checkout/cart' || cur_route == 'checkout/checkout') { and work just fine. |
@GomDani } else {
var query = String(document.location.pathname).split('/');
if (query[query.length - 1] == 'cart') value['route'] = 'checkout/cart';
if (query[query.length - 1] == 'checkout') value['route'] = 'checkout/checkout';
if (value[key]) {
return value[key];
} else {
return '';
}
} |
@danielkerr, big possible security issue! Where?. Show all, and we will correct, if you can't! Why was it necessary to remove the right direction for seo ? Daniel, it is foolish on your part to go back commits. show me please where and let's fleshing out as it should be! Here 1000 developers and anyone can help, do not blindly reject help. |
@ravilrrr The security hole I believe @danielkerr is referring to is that fact that @opencart-russia failed to escape the data during a sql query, which leaves the system open to attack. |
@OpenCartAddons |
@ravilrrr I agree, replacing route in all URLs with a clean SEO version is ideal. I'm sure @danielkerr isn't against this idea either. |
This is the third time I have posted this Daniel
Please check it before you jump to conclusions
This is from a stock install of the latest master with no modifications added
Result - Item is deleted in the mini cart in header but remains in the shopping cart main body.
Reason - See my Pull request ( #2312 ) that you dismissed out of hand calling it stupid. If you have a different/better fix, by all means, go with it, but don't you dare call me stupid again without just cause!
The text was updated successfully, but these errors were encountered: