Re: Overriding method calls from proxy models
It would be nice to see the code of the first event handler. If it has any return values, using return, then all events after it will not be fired. It is just the standard OpenCart code in catalog/model/checkout/order/addOrderHistory() not returning anything OK, I've created a testcase which is a l...
Jump to post- Thu Sep 19, 2024 9:58 pm
- Replies 5
- Views 2046
Overriding method calls from proxy models
Hello, I have a problem with methods which are being called from another method in the same model not firing events registered for them. Example: I have registered an event for the catalog/model/chekcout/addOrderHistory() method, which works as expected. However, I have created another method in the...
Jump to post- Wed Sep 18, 2024 10:53 pm
- Replies 5
- Views 2046
Re: Register as extension seller
Yes, I did after some time. They have a 50% tax, so I'm wondering whether it's worth developing extensions at all...
Jump to post- Tue Dec 25, 2018 4:18 am
- Replies 4
- Views 872
Re: Register as extension seller
It took me less time to write the extension than to publish it...
Jump to post- Thu Nov 29, 2018 9:24 pm
- Replies 4
- Views 872
Register as extension seller
Hello,
I am applying to become an extension seller and I sent an application form via my account, however it's been more than 2 days already, and I haven't received a confirmation email.
How log does it usually take to get a confirmation email?
Regards,
Alex
- Thu Nov 29, 2018 3:45 am
- Replies 4
- Views 872
Modification system breaks JavaScript code
Hello, I just stumbled upon this very annoying and serious bug. One of my modifications has a lot of JavaScript/JQuery code, in it I have sth. like $.ajax({ ... }); notice the semicolon at the end of the ajax() call. When I reload the modifications, my modified file however contains $.ajax({ ... } s...
Jump to post- Thu Aug 16, 2018 8:40 pm
- Replies 0
- Views 1483
Re: "base" tag generating server load
LOL base tag causing high server loads. Its not going to be the case as Daniel has stated. As I said, the only change I made was use absolute instead of relative URLs and remove the base tag, and the wrong requests are gone! So for me it's obvious what's causing the problems. Once again, it's such ...
Jump to post- Tue Nov 08, 2011 2:48 am
- Replies 11
- Views 2388
Re: "base" tag generating server load
this was fixed in 1.5.1.1 the problem was there were some missing files and using seo urls. it was fixed by removing the js links to the missing images. might be better using htaccess to ignore requests for missing images. Daniel, I think you don't understand the issue. I didn't get requests only f...
Jump to post- Thu Nov 03, 2011 7:17 pm
- Replies 11
- Views 2388
Re: "base" tag generating server load
Of course, I removed the html base tag from the head section, so that all browsers use full paths
Jump to post- Wed Nov 02, 2011 9:28 pm
- Replies 11
- Views 2388
Re: "base" tag generating server load
I set $this->data['base'] inside all controllers whose templates require an absolute path, and then instead of 'catalog/...' I use '<?php echo $base; ?>catalog/...' The change is required also for all css and js files. Then, for the ajax requests I have declared a global "base" variable in...
Jump to post- Wed Nov 02, 2011 8:41 pm
- Replies 11
- Views 2388
"base" tag generating server load
First to say, this is not a bug, but behaviour with undesired side effetcs. I created a custom traffic logger for OpenCart, and I noticed that I get a lot url requests like http://store.com/categoryXXX/[b]catalog/view/theme/deault/image...[/b] http://store.com/productXXX/[b]catalog/view/javascript/j...
Jump to post- Wed Nov 02, 2011 8:04 pm
- Replies 11
- Views 2388
Don't rout all file requests through index.php in .htaccess
I was building a traffic monitor and I noticed that ALL file requests (e.g. jpg/gif/txt) go through the index.php file, which is quite CPU consuming for the server. IMHO the .htaccess should route files like this: - direct acess to all jpg, gif, png, ico, bmp, js, txt, css files (maybe I'm missing s...
Jump to post- Fri Aug 26, 2011 1:52 am
- Replies 1
- Views 558
Re: Remove route=common/home?
I think won't stop Google from indexing the http://site.com/index.php?route=common/home page. Maybe the better solution is to remove all these links in the controller: $this->document->breadcrumbs[] = array( 'href' => HTTP_SERVER . 'index.php?route=common/home', ... $this->document->breadcrumbs[] = ...
Jump to post- Mon Jun 13, 2011 3:55 pm
- Replies 6
- Views 5169
Remove route=common/home?
Hello,
I have a question, is it possible to remove the index.php?route=common/home part for all links referring to Home, so that http://site.com/index.php?route=common/home becomes just http://site.com/ ?
I think it's not good for SEO to have two home URLs with duplicate content
- Mon Jun 13, 2011 12:50 am
- Replies 6
- Views 5169
Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE
I see OC 1.4.9.3 creates a new order with order_statys_id=0 every time the checkout/confirm.php loads $this->session->data['order_id'] = $this->model_checkout_order->create($data); I understand this data is needed for the payment modules (probably not a good idea to have it in the session?), but thi...
Jump to post- Fri Feb 25, 2011 6:34 pm
- Replies 181
- Views 65011
Update data['shipping_methods'] after each product add?
Hello, I want to update the data['shipping_methods'] and data['shipping_method'] after each product add, remove, user logon, user address change, etc. The reason I want this is, because the shipping depends on cart sub-total, as well as on user zone, and I want to display the shipping cost in the ca...
Jump to post- Thu Feb 17, 2011 8:48 pm
- Replies 0
- Views 298
Re: Is it safe to remove <base> tag?
But why cannot be the <base> tag be removed, what is it used for?
Jump to post- Wed Feb 16, 2011 10:55 pm
- Replies 5
- Views 1473
Is it safe to remove <base> tag?
Hello, I noticed OC uses a base tag in the header, which points to the the base path: <base href="http://localhost/" /> (for localhost). The problem with this is, I want to include some named anchors inside the "terms & conditions" page, like <a href="#shipping"> , ...
Jump to post- Wed Feb 16, 2011 7:08 pm
- Replies 5
- Views 1473
Shipping calculation logic
Needless to say, I'm pretty much disappointed with the way the whole order logic works. After finding out that "Free shipping" doesn't remove all other payed types of shipping from the list of options, I found that the cart obviously mis-calculates order's total. I have Sub-total, Shipping...
Jump to post- Fri Feb 11, 2011 11:41 pm
- Replies 3
- Views 1119
Re: Problem with cyrillic customer data
P.S.
I noticed the online OC demo works OK... So, maybe it's a question of locale settings?
- Wed Feb 09, 2011 11:58 pm
- Replies 1
- Views 543