I noticed that in every form that uses a country selectbox, if you by accident change the selected country to
--- Please Select ---
you get an error in the "Post Code" field:
Notice: Undefined index: postcode_required in /home/opencart/public_html/demo/catalog/controller/account/create.php on line 431Post Code:
Where can I best fix this; in the php-code or in the (inline) javascript code?
I have posted a Fix for those who have problems with Authorize.net not processing orders..
please check: http://forum.opencart.com/viewtopic.php?f=31&t=22159
I fixed it by modifying the public function postcode() in catalog/controller/checkout/guest_step_1.php
Old code:
Code: Select all
public function postcode() {
$this->language->load('checkout/guest_step_1');
$this->load->model('localisation/country');
$result = $this->model_localisation_country->getCountry($this->request->get['country_id']);
$output = '';
if ($result['postcode_required']) {
$output = '<span class="required">*</span> ' . $this->language->get('entry_postcode');
} else {
$output = $this->language->get('entry_postcode');
}
$this->response->setOutput($output, $this->config->get('config_compression'));
}
Code: Select all
public function postcode() {
$this->language->load('checkout/guest_step_1');
$this->load->model('localisation/country');
$result = $this->model_localisation_country->getCountry($this->request->get['country_id']);
$output = '';
$postcodeRequired = (count($result) > 0) ? $result['postcode_required'] : 0;
if ($postcodeRequired) {
$output = '<span class="required">*</span> ' . $this->language->get('entry_postcode');
} else {
$output = $this->language->get('entry_postcode');
}
$this->response->setOutput($output, $this->config->get('config_compression'));
}
Phil
Yes, I am getting the same error. Can anyone help and tell me how I am supposed to resolve this?bader wrote:Anyone gets this error with 1.4.9.1 when you delete an order?Code: Select all
Notice: Undefined index: subtract in /home/bader/public_html/mall/admin/model/sale/order.php on line 12Notice: Undefined index: subtract in /home/bader/public_html/mall/admin/model/sale/order.php on line 12Notice: Undefined index: subtract in /home/bader/public_html/mall/admin/model/sale/order.php on line 12Warning: Cannot modify header information - headers already sent by (output started at /home/bader/public_html/mall/admin/index.php:72) in /home/bader/public_html/mall/system/engine/controller.php on line 27
Read the first post or upgrade to 1.4.9.2 patch (see link in my signature)sumitson wrote:Yes, I am getting the same error. Can anyone help and tell me how I am supposed to resolve this?bader wrote:Anyone gets this error with 1.4.9.1 when you delete an order?Code: Select all
Notice: Undefined index: subtract in /home/bader/public_html/mall/admin/model/sale/order.php on line 12Notice: Undefined index: subtract in /home/bader/public_html/mall/admin/model/sale/order.php on line 12Notice: Undefined index: subtract in /home/bader/public_html/mall/admin/model/sale/order.php on line 12Warning: Cannot modify header information - headers already sent by (output started at /home/bader/public_html/mall/admin/index.php:72) in /home/bader/public_html/mall/system/engine/controller.php on line 27
I have tried many times but the result remains the same.
I disabled "Allow Reviews" in admin>System>Option however in the frontend, the "Sort By" still shows "Rating Highest" & "Rating Lowest" as options.
Does anyone have a quick fix?
Imagination Is Everything
IN:
Code: Select all
/catalog/view/theme/YOURTHEME/template/common/footer.tpl
Code: Select all
</body>
Code: Select all
<script type="text/javascript">
$(document).ready(function(){
$('option:contains("Rating Highest")').remove();
$('option:contains("Rating Lowest")').remove();
});
</script>
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
The date is backwards...
Opencart 1.4.9.1
Global Options Mod
Well, that depends in what part of the world you are living...momtrepreneur wrote:Anybody come across this in 1.4.9.1?
The date is backwards...
In Europe it could/would be: 11 July 2010 or 11/07/2010.
But in the US 11/07/2010 could mean 7 November 2010.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Opencart 1.4.9.1
Global Options Mod
Nah I forgot about this. I'm working on making sort values admin configurable like the order statuses and stock statuses are, so you can enter or remove any filter options you wantXsecrets wrote:I'm pretty sure this was corrected in one of the recent 1.4.x releases. If you are not using the default template though all bets are off.
Sort by model, sku, price, qty, weight, custom field, etc
In /admin/language/english/english.php and /catalog/language/english/english.php, change:momtrepreneur wrote:Oh, wow...um that's confusing! I'm in the US and use english for the cart. The order was placed on November 7, 2010. How do I get the cart to reference American dates?
Code: Select all
$_['date_format_short'] = 'd/m/Y';
$_['date_format_long'] = 'l dS F Y';
Code: Select all
$_['date_format_short'] = 'm/d/Y';
$_['date_format_long'] = 'l, F dS, Y';
Im having problem with adding things to shopping cart.
I ad one thing and continue shopping and when i select and ad another one it writes over previous one in shopping cart. And so on with next thing......Some times i actually can do it if i select same thing in different colors but most of the time no.
Recently I have installed OptionPlus module because of diversity of colors of some products......Im not sure problem is connected with this install because i did not by on my page for a while. But i m sure everything worked after upgrade to 1.4.9.1 . I don t have any other mod installed on the site.
Link to my front end for better idea whats wrong:
http://www.kovcki.co.cc
You can register and try to buy few things...the site does not sell for real yet.
I tried different browsers it is the same.
I would not like to uninstall option plus because i need it and i bought it......Qphoria can you look at this please.....if you need to see admin site.......let me know.
Im uploading product to finalize site and now this discovery ......i m stressed a little bit.
Thank you my savior.
May ini file:
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
max_upload_filesize = 100M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
Any other idea would be good.
Thx
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Users browsing this forum: No registered users and 33 guests