Hi

I think I've got it:

For Configurable products the price update signal gets the product slug for
each product variation, and then is not able to find the tiered price as it
belongs to it's product father. I'd created a patch for the
satchmo_ext/tieredpricing/models.py file to retrieve the father's tiered
price if the variation does not have one. I'd attached the patch to the
ticke<http://bitbucket.org/chris1610/satchmo/issue/1194/tiered-price-resolution-not-consistent>
t.


****IMPORTANT***** Please check the patch code as I'm so newbie with django
and Satchmo and I have the impression that this can be done slightly
cleaner.


Regards

2010/8/5 Alvaro Gomez <[email protected]>

> Hi Chris
>
> I'm referring to this template:
>
>
> http://bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/product/templates/product/detail_configurableproduct.html
>
> In line 19:
>
> satchmo.variations = {{ details|as_json }};
>
> The "details" variable is not returning the tiered prices if those has been
> set inside the product. Then the price is overriten with the non-tiered one
> by the javascript "update_price" function. For General discount Pricing
> tiers this works.
>
>
> I'd updated the ticket with this information too.
>
>
> Regards
>
> 2010/8/5 Chris Moffitt <[email protected]>
>
> I'm not sure which template you're talking about. Could you use the url
>> from the bitbucket source page of the specific file?
>> http://bitbucket.org/chris1610/satchmo/src
>>
>> -Chris
>>
>> On Wed, Aug 4, 2010 at 6:43 PM, Alvaro Gomez <[email protected]>wrote:
>>
>>> Hi Chris
>>>
>>> I have to reformulate the ticket as is not properly described. To
>>> identify where the problem is, do you have a hint about how (and where) the
>>> content of the "details" variable is generated in the custom product
>>> template?. I cannot find it.
>>>
>>>
>>> Regards
>>>
>>> 2010/8/4 Chris Moffitt <[email protected]>
>>>
>>>>  I took a quick look at it and I do think there is an issue. I haven't
>>>> tried to troubleshoot yet but it does appear to be a problem with the
>>>> default install. Feel free to update your ticket with more notes &  a patch
>>>> if you're feeling ambitious.
>>>>
>>>> -Chris
>>>>
>>>>
>>>> On Tue, Aug 3, 2010 at 7:28 PM, Alvaro <[email protected]> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>>
>>>>> I'd found an issue in the Product display page for configurable
>>>>> products using Tiered Pricing.
>>>>>
>>>>> When I set a tiered price based in a fixed amount the this price is
>>>>> ignored for configurable products but not for regular ones. If i add
>>>>> this product to the cart then the correct tiered price appears. I'd
>>>>> checked the HTML from the Product page and the tiered price is
>>>>> corrrectly set in the page load but is overritten by the:
>>>>> satchmo.update_price();  javascript function because the json value
>>>>> returned by the variable satchmo.variations = {{ details|as_json }};
>>>>> is the default price and not the tiered one. If the Tiered price is
>>>>> set by percentage in the Tier definition, then it works fine.
>>>>>
>>>>> I'm not sure if the problem is in my templates or in the satchmo code
>>>>> itself.
>>>>>
>>>>> Can anybody reproduce the problem? I'm using Satchmo 0.92-pre
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> --
>>>>> 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.
>>>>
>>>
>>>
>>>
>>> --
>>> Alvaro
>>> www.dorsalcero.net
>>>
>>> --
>>> 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.
>>
>
>
>
> --
> Alvaro
> www.dorsalcero.net
>



-- 
Alvaro
www.dorsalcero.net

-- 
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.

Reply via email to