Post by BrightMindProds » Tue Apr 13, 2010 11:21 pm

Qphoria wrote:
BrightMindProds wrote:Option Value in Products Bug - with Languages

Ok... i see "something" like this but not exactly. I see the same issue in 1.4.6 as well
1. Have 2 languages enabled
2. Add an option and 2 values. Example (Color: Red and Blue)
3. Add it in both languages
4. Save
5. Edit the product again
6. Options listbox shows:
Color
Red
Blue
Red
Blue

The first Red and Blue work fine.
The second Red and Blue are empty and show nothing

Exactly!
You Got it.

This is the problem.

Any Clue? I was about to go mad thinking that was me having a night mare.
Thanks for spending some time looking at it.


Posts

Joined
Wed Feb 17, 2010 9:14 pm

Post by chrisbaldie » Wed Apr 14, 2010 12:49 am

Warning: Division by zero in /home/xxxxx/xxxxx/system/library/pagination.php on line 27

http://www.nevereverafter.com Comic.
http://www.chrisbaldie.com/blog Blog.


User avatar
Newbie

Posts

Joined
Tue Apr 13, 2010 8:41 pm

Post by jaxinternet » Wed Apr 14, 2010 1:17 am

can anyone help me here? each time there is an error like an image is missing or something very simple, the whole cart stops functioning. Is there something I need to do here so at least the cart will function with 1 or 2 mising images?

where can I get a full manual to learn ALL the ins and outs of this shopping-cart system?

Thanks

Webmaster 2: QSM|QSM Directory|Online Shop|ZimBuz|SA2010


Newbie

Posts

Joined
Sat Feb 13, 2010 12:30 am
Location - Glasgow Scotland

Post by i2Paq » Wed Apr 14, 2010 1:31 am

Coupon not taking correct discount off, thanks to rathina.

The coupon discount cannot be greater than the amount of the products.

So a $6 item, with a 10% discount, 10 is > than 6, so it goes to min 6, then 6 is used as the % instead of 10.

Confirmed, it also does this when using any other shipping module.

Fix by Qphoria

1. EDIT: catalog/model/total/coupon.php

2. FIND:

Code: Select all

$coupon['discount'] = min($coupon['discount'], $coupon_total);
3. REPLACE WITH:

Code: Select all

if ($coupon['type'] == 'F') {
	$coupon['discount'] = min($coupon['discount'], $coupon_total);
}

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.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Qphoria » Wed Apr 14, 2010 1:34 am

chrisbaldie wrote:Warning: Division by zero in /home/xxxxx/xxxxx/system/library/pagination.php on line 27
While doing what?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Wed Apr 14, 2010 3:55 am

BrightMindProds wrote:
Qphoria wrote:
BrightMindProds wrote:Option Value in Products Bug - with Languages

Ok... i see "something" like this but not exactly. I see the same issue in 1.4.6 as well
1. Have 2 languages enabled
2. Add an option and 2 values. Example (Color: Red and Blue)
3. Add it in both languages
4. Save
5. Edit the product again
6. Options listbox shows:
Color
Red
Blue
Red
Blue

The first Red and Blue work fine.
The second Red and Blue are empty and show nothing

Exactly!
You Got it.

This is the problem.

Any Clue? I was about to go mad thinking that was me having a night mare.
Thanks for spending some time looking at it.
Ok The fix:

1. EDIT: admin/view/theme/default/template/catalog/product_form.tpl

2. FIND:

Code: Select all

<select id="option" size="20" style="width: 100%;">
              <?php $option_row = 0; ?>
              <?php $option_value_row = 0; ?>
              <?php foreach ($product_options as $product_option) { ?>
              <?php foreach ($languages as $language) { ?>
              <?php if ($language['language_id'] == $language_id) { ?>
              <option value="option<?php echo $option_row; ?>"><?php echo $product_option['language'][$language_id]['name']; ?></option>
              <?php } ?>
              <?php if ($product_option['product_option_value']) { ?>
              <?php foreach ($product_option['product_option_value'] as $product_option_value) { ?>
              <?php foreach ($languages as $language) { ?>
              <?php if ($language['language_id'] == $language_id) { ?>
              <option value="option<?php echo $option_row; ?>_<?php echo $option_value_row; ?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $product_option_value['language'][$language['language_id']]['name']; ?></option>
              <?php $option_value_row++; ?>
              <?php } ?>
              <?php } ?>
              <?php } ?>
              <?php } ?>
              <?php $option_row++; ?>
              <?php } ?>
              <?php } ?>
            </select>
3. REPLACE WITH:

Code: Select all

<select id="option" size="20" style="width: 100%;">
              <?php $option_row = 0; ?>
              <?php $option_value_row = 0; ?>
              <?php foreach ($product_options as $product_option) { ?>
              <option value="option<?php echo $option_row; ?>"><?php echo $product_option['language'][$language_id]['name']; ?></option>
              <?php if ($product_option['product_option_value']) { ?>
              <?php foreach ($product_option['product_option_value'] as $product_option_value) { ?>
              <?php foreach ($languages as $language) { ?>
              <?php if ($language['language_id'] == $language_id) { ?>
              <option value="option<?php echo $option_row; ?>_<?php echo $option_value_row; ?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $product_option_value['language'][$language['language_id']]['name']; ?></option>
              <?php $option_value_row++; ?>
              <?php } ?>
              <?php } ?>
              <?php } ?>
              <?php } ?>
              <?php $option_row++; ?>
              <?php } ?>
            </select>

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by younglai » Wed Apr 14, 2010 4:14 am

Qphoria wrote:
younglai wrote:Approve New Customers:
Don't allow new customer to login until their account has been approved.

:o
This function is invalid ... .. still can not log in after the approval of the user
I have this working fine for me. What steps you are taking to approve them
System-> Settings -> Approve New Customers: yes
Sales -> Customer -> test user Status -> Enabled

web -> log off -> (Login again) -> log in -----> Error: No match for E-Mail Address and/or Password.

(I checked the account password is correct)

When
System-> Settings -> Approve New Customers: No
Log log normal operation can

???

Newbie

Posts

Joined
Sat Apr 03, 2010 1:46 pm

Post by i2Paq » Wed Apr 14, 2010 4:24 am

younglai wrote:
Qphoria wrote:
younglai wrote:Approve New Customers:
Don't allow new customer to login until their account has been approved.

:o
This function is invalid ... .. still can not log in after the approval of the user
I have this working fine for me. What steps you are taking to approve them
System-> Settings -> Approve New Customers: yes
Sales -> Customer -> test user Status -> Enabled

web -> log off -> (Login again) -> log in -----> Error: No match for E-Mail Address and/or Password.

(I checked the account password is correct)

When
System-> Settings -> Approve New Customers: No
Log log normal operation can

???
You must be doing something wrong because it works.

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.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by santossg » Wed Apr 14, 2010 5:26 am

Qphoria wrote:There is one in
catalog/controller/information/information.php
for the catalog side

There is also
admin/controller/information/information.php
for the admin side

The error shows that the controller process can't read that file. This means that either the file isn't there, or maybe the parent directory has no read options set. Be sure the parent "information" folder is set to 755 (at least 644)
In fact I have no admin/controller/information/ folder.

I can only found admin/controller/catalog/information.php and catalog/controller/information/information.php

I just download the http://opencart.googlecode.com/files/op ... v1.4.7.zip and there is no admin/controller/information/information.php

Newbie

Posts

Joined
Tue Mar 23, 2010 6:18 am

Post by chrisbaldie » Wed Apr 14, 2010 7:03 am

Qphoria wrote:
chrisbaldie wrote:Warning: Division by zero in /home/xxxxx/xxxxx/system/library/pagination.php on line 27
While doing what?

I think it appeared once I had created more than 8 products.

And that error appears on every category page and specials page, and doesn't display any of the products.
but home page still displays the latest 8.

http://www.nevereverafter.com Comic.
http://www.chrisbaldie.com/blog Blog.


User avatar
Newbie

Posts

Joined
Tue Apr 13, 2010 8:41 pm

Post by Qphoria » Wed Apr 14, 2010 7:24 am

santossg wrote:
Qphoria wrote:There is one in
catalog/controller/information/information.php
for the catalog side

There is also
admin/controller/information/information.php
for the admin side

The error shows that the controller process can't read that file. This means that either the file isn't there, or maybe the parent directory has no read options set. Be sure the parent "information" folder is set to 755 (at least 644)
In fact I have no admin/controller/information/ folder.

I can only found admin/controller/catalog/information.php and catalog/controller/information/information.php

I just download the http://opencart.googlecode.com/files/op ... v1.4.7.zip and there is no admin/controller/information/information.php
Yea thats fine. i mistyped. Regardless, the only one that matters is the one in catalog/controller/information/information.php

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Wed Apr 14, 2010 7:33 am

chrisbaldie wrote:
Qphoria wrote:
chrisbaldie wrote:Warning: Division by zero in /home/xxxxx/xxxxx/system/library/pagination.php on line 27
While doing what?

I think it appeared once I had created more than 8 products.

And that error appears on every category page and specials page, and doesn't display any of the products.
but home page still displays the latest 8.
It means you don't have these filled out in the main settings:
* Default Items per Page (Admin):
* Default Items per Page (Catalog):
Those are required fields and the installer sets default values for those so you must have removed them in the database manually somehow

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by hobbymate » Wed Apr 14, 2010 10:52 am

Product not reflected in store after 79 item...I insert item 80 but the item not appear in the store front.
Please help

Newbie

Posts

Joined
Sat Feb 20, 2010 11:00 pm

Post by blockhunter » Wed Apr 14, 2010 2:52 pm

There is a minor bug in the admin\controller\localisation\country.php and admin\controller\localisation\zone.php files.

In getList() method when creating the $data array, there is a hard coded 10 for the start and limit.

Newbie

Posts

Joined
Wed Apr 14, 2010 2:02 pm

Post by Qphoria » Wed Apr 14, 2010 7:22 pm

blockhunter wrote:There is a minor bug in the admin\controller\localisation\country.php and admin\controller\localisation\zone.php files.

In getList() method when creating the $data array, there is a hard coded 10 for the start and limit.
Thanks!

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by i2Paq » Wed Apr 14, 2010 7:32 pm

Qphoria wrote:
blockhunter wrote:There is a minor bug in the admin\controller\localisation\country.php and admin\controller\localisation\zone.php files.

In getList() method when creating the $data array, there is a hard coded 10 for the start and limit.
Thanks!
What to do to get it working?

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.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Qphoria » Wed Apr 14, 2010 7:45 pm

blockhunter wrote:There is a minor bug in the admin\controller\localisation\country.php and admin\controller\localisation\zone.php files.

In getList() method when creating the $data array, there is a hard coded 10 for the start and limit.
Its not broke, it just doesn't use the admin limit.

Change:

Code: Select all

'limit' => 10
To:

Code: Select all

'limit' => $this->config->get('config_admin_limit')
Last edited by i2Paq on Wed Apr 14, 2010 8:51 pm, edited 1 time in total.
Reason: Made it more readable

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by rednet » Thu Apr 15, 2010 3:30 am

Hi,

If product, category, manufacturer or information have the same seo keyword the front store doesn´t work fine.

You must be control duplicate´s seo keywords by oc_url_alias.keyword field with unique value.
I use "ALTER TABLE `oc_url_alias` ADD UNIQUE (`keyword`);" but you don´t have a control function in the system.
Error: Duplicate entry 'apple' for key 2
Error No: 1062
INSERT INTO ds_url_alias SET query = 'product_id=42', keyword = 'apple'

Newbie

Posts

Joined
Wed Feb 10, 2010 6:09 am

Post by baran » Thu Apr 15, 2010 8:46 am

Qphoria wrote:
blockhunter wrote:There is a minor bug in the admin\controller\localisation\country.php and admin\controller\localisation\zone.php files.

In getList() method when creating the $data array, there is a hard coded 10 for the start and limit.
Its not broke, it just doesn't use the admin limit.

Change:

Code: Select all

10
To:

Code: Select all

$this->config->get('config_admin_limit')

I have the same problem and I have done what you have written above but it still shows 10 products despite I have 15 products in my control pannel.

Thanks for any help.

New member

Posts

Joined
Wed Mar 17, 2010 9:33 pm

Post by a_smith » Thu Apr 15, 2010 4:38 pm

issue with 147 admin countries list (admin-system-localisation-countries).
not all countries from db show up on the list.
Last edited by i2Paq on Thu Apr 15, 2010 5:19 pm, edited 2 times in total.
Reason: Removed some

Newbie

Posts

Joined
Wed Apr 14, 2010 10:25 pm
Who is online

Users browsing this forum: No registered users and 18 guests