Page 1 of 1

Downloadable product bug?

Posted: Thu Apr 01, 2010 11:00 pm
by mmartin028
Hello,

I'm currently running version 1.4.4 and only sell downloadable products at http://www.TwoBuckLoops.com. There seems to be a problem when there's an order for more than 10 products at a time. Let's say you order and pay for 15 products and go to your download page. You will see 10 download links on the first page and then should see the 5 others on the second page.

However, you can't get to the second page. When you click on the little number 2 at the bottom to go to the next page, it stays on page 1. Same goes if you have even more pages. It always stays on page 1 and you can't get to your other download pages. There are no errors that pop up. It just simply stays on page 1.

Has anyone else seen this problem? I tried doing a search in the forums but couldn't find anything.

Mike

Re: Downloadable product bug?

Posted: Fri Apr 02, 2010 1:42 pm
by readyman
Yep, this looks like a bug.
In catalog/controller/account/download.php

Add the following to line 35... this will include the newly added seo rewrite tool
$this->load->model('tool/seo_url');

then go down to line 99(or 100 now)
change
$pagination->url = HTTP_SERVER . 'index.php?route=account/download&page=%s';

to

$pagination->url = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=account/download&page={page}');

I don't think you really need to include the seo url part, but I just put it there to stay consistent with the rest of the code. I believe the problem here was that %s should have been updated to {page}

Re: Downloadable product bug?

Posted: Fri Apr 02, 2010 1:44 pm
by readyman
Unfortunately, it looks like this bug is still in 1.4.6.

Re: Downloadable product bug?

Posted: Fri Apr 02, 2010 7:20 pm
by Qphoria
fixed in the next version