Re: OpenCart 1.5.1.3 Bug Thread
Posted: Mon Mar 05, 2012 7:57 am
I can also confirm I have the same bug on my store even tho it's not a *clean install*.solojuve1897 wrote:*Reposted* - Is there no fix for this? [...]
OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
I can also confirm I have the same bug on my store even tho it's not a *clean install*.solojuve1897 wrote:*Reposted* - Is there no fix for this? [...]
It means it could not load this file:Pittman wrote: Notice: Error: Could not load language checkout/success! in /home3/johncpit/public_html/johnpittman/opencart/system/library/language.php on line 26
solojuve1897 wrote:*Reposted* - Is there no fix for this?
Do the following:
First: Have a clean install of OpenCart 1.5.1.3
1. Put something in the cart.
2. Go to checkout
3. Choose Register account
4. Input all your details and uncheck "My delivery and billing addresses are the same."
5. Choose "I want to use a new address" and input your details
6. Complete the order.
7. Go to the admin and check the new order.
8. Choose "Payment Details"
The bug: The payment details are empty!
It's really strange that this hasnt been reported before? Or maybe it has? It's kind of a big bug. What to do to fix this issue?
Code: Select all
PHP Notice: Undefined variable: payment_address in /home/bla/public_html/catalog/controller/checkout/payment.php on line 88
I am seeing this too,speedingorange wrote:I have searched and cannot find an answer to this one;
Have it occurring on two sites so am pretty sure it is a bug? common factors are that they both run paypal standard?
(may just be that I am not searching in the right places but I spent a good hour googling & searching the forums)
I am getting the error:
I believe this is different to the "payment_address_id" and "shipping_address_id" errors as I have already applied the fix for these,Code: Select all
PHP Notice: Undefined variable: payment_address in /home/bla/public_html/catalog/controller/checkout/payment.php on line 88
Anyone any ideas on how to fix this as It has cost me several sales in the past few days.
Cheers
James
Code: Select all
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/payment.php on line 88
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/payment.php on line 88
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 120
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 121
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 122
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 123
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 124
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 125
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 126
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 127
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 128
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 129
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 130
2012-03-03 8:40:40 - PHP Notice: Undefined variable: payment_address in /home/xxx/public_html/catalog/controller/checkout/confirm.php on line 131
matts118 wrote:Hi. I found a bug, and also fixed it. The USPS module gives incorrect values for foreign currencies as it multiplies the US$ value twice. It isn't so noticeable with Euros etc as they are already close to the US$, but if you have Yen or Hungarian Forints, you get shipping equivalents of thousands of dollars.
The fix is:
go to catalog/model/shipping/usps.php
find this line (it occurs several times)
'text' => $this->currency->format($this->tax->calculate($this->currency->convert($cost, 'USD', $this->currency->getCode()), $this->config->get('usps_tax_class_id'), $this->config->get('config_tax')))
replace with
'text' => $this->currency->format($this->tax->calculate($cost, $this->config->get('usps_tax_class_id'), $this->config->get('config_tax')))
find
'cost' => $this->currency->convert($cost, 'USD', $this->config->get('config_currency')),
replace with
'cost' => $cost,
The problem is this $this->currency->convert() converts the currency from US$, and then the format() function does it again, so the initial US$ number is multiplied twice by the new currency. So need to remove the $this->currency->convert().
Please excuse me quoting this again but is this not of concern to the developers? If I type a three word string into the search box, it seems to present all products with either of the three words. To clarify if a product contains only one of the three words, it is still presented in search results.storm-cloud wrote:Not 100% sure if this is a bug but thought this would be a good place to start.
I have found that the search box at the top of the store only references one word. For example, if I enter "Word A" and "Word B", the results appear. Then if I change "Word B" even if the word is gibberish, the results stay the same.
Now I have products that "Word A" is the same but "Word B" is different, but if I search with the two words, the results are the nearly same (the order changes slightly but the two word match is not being prioritised in any way). It seems that the search is not paying attention to "Word B" at all.
Surely if I search for a two word string that matches a product with both words, then the products matching with both words should show up at the top of the results list, and those products only matching with one word should be filtered out or placed at the end of the list?
Code: Select all
<?php if ($category['category_id'] == $category_id) { ?>
<a href="<?php echo $category['href']; ?>" class="active"><?php echo $category['name']; ?></a>
<?php } else { ?>
Code: Select all
<?php if ($discount_amount_cart) { ?>
<input type="hidden" name="discount_amount_cart" value="<?php echo $discount_amount_cart; ?>" />
<?php } ?>