Hi Chris,
Thanx for you prompt response. Before you go diving in there let me first
give you an update with the new instance of 0.9.1-pre.
I created a downloadable product in the sample shop and I bought it
successfully. So it may have been that version had the bug. But I still have
problems with the download link and it might be related.
I added this to _order_tracking_details.html and now I get the link in the
order view:
{% if order.downloadlink_set.all %}
<h4>Download now</h4>
{% for dl_link in order.downloadlink_set.all %}
<a href="{{ dl_link.get_absolute_url }}">Name Goes Here
</a>
<p>{{ dl_link.product }}</p>
<br/>
{% endfor %}
{% endif %}
The original code if found on google was:
<a href="{{ dl_link.get_absolute_url }}">{{ dl_link.product.name }}</a>
But that breaks because dl_link.product doesn't have a value.
BTW dl_link.get_absolute_url does have a value. Selecting the link does take
me to a download page (Once you click the link, the download will be
counted. If you have trouble ...). Selecting the product link on that page
goes to a Not Available page but that might have soomething to do with the
fact that I'm not using Apache or anything.
On 30 March 2010 00:06, Chris Moffitt <[email protected]> wrote:
> It may be a bug of some sort with the way the order status is changed.
>
> I see a couple ways to fix it but I want to make sure I understand it all
> before I start trying to change something.
>
> Basically the capture_on_ship_listener is firing and a valid order isn't
> being received by the listener - causing it to error out. I can think of a
> couple of solutions but want to dive into it a bit more and verify the
> solution before I blindly start changing things.
>
> -Chris
>
> On Mon, Mar 29, 2010 at 4:31 PM, Mike Metcalfe <[email protected]>wrote:
>
>> On 29 March 2010 22:50, Mike Metcalfe <[email protected]> wrote:
>>
>>> On 29 March 2010 21:50, Chris Moffitt <[email protected]> wrote:
>>>
>>>> try running python manage.py satchmo_check
>>>
>>>
>> I created a instance and now I get:
>> Checking your satchmo configuration.
>> Using Django version 1.1.1
>> Using Satchmo version 0.9.1-pre hg-unknown
>> Your configuration has no errors.
>>
>> I did a grep of the apps directory and I still get the same single result:
>> ./payment/utils.py: purchase = order.get_or_create_purchase()
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Satchmo users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<satchmo-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/satchmo-users?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<satchmo-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/satchmo-users?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.