Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Place Products on Sale
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brian Lee  
View profile  
 More options Jul 28 2010, 5:41 pm
From: Brian Lee <ble...@gmail.com>
Date: Wed, 28 Jul 2010 14:41:44 -0700 (PDT)
Local: Wed, Jul 28 2010 5:41 pm
Subject: Place Products on Sale
How can I place a product on Sale so that the below code's if case is
triggered (from default product template)?

I thought it would be to have two prices with one having expiration
date. But that is not the case.

        {% if sale %}<strike id="fullprice" style="display:
block;">{{ product|discount_price:""|currency }}</strike>{% endif %}
        <span id="price">{{ product|discount_price:sale|currency }}</span>

Where do I need to look to see how {% if sale % is triggered?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lzantal  
View profile  
 More options Jul 28 2010, 6:36 pm
From: lzantal <lzan...@gmail.com>
Date: Wed, 28 Jul 2010 15:36:20 -0700 (PDT)
Local: Wed, Jul 28 2010 6:36 pm
Subject: Re: Place Products on Sale
Hi,
I run into the same issue awhile back. It's on my list to make it more
clean and use a templatetag
instead of this Hack.
But here is a quick hack to show the full price strike through and the
sale price
"""
<p>
<span class="product-titles">Price:</span>
{% if product.get_qty_price_list.1.1 %}
   <span style="text-decoration: line-
through;">{{ product.get_qty_price_list.0.1|currency }}</span>
   &nbsp
   <span style="color:red;">{{ product|discount_price:sale|currency }}
</span>
{% else %}
   {{ product|discount_price:sale|currency }}
{% endif %}
</p>
"""

Hope it helps

lzantal

On Jul 28, 2:41 pm, Brian Lee <ble...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John-Scott  
View profile  
 More options Jul 28 2010, 6:49 pm
From: John-Scott <john.scott.atlak...@gmail.com>
Date: Wed, 28 Jul 2010 15:49:39 -0700 (PDT)
Local: Wed, Jul 28 2010 6:49 pm
Subject: Re: Place Products on Sale
On Jul 28, 5:41 pm, Brian Lee <ble...@gmail.com> wrote:

> How can I place a product on Sale so that the below code's if case is
> triggered (from default product template)?

> I thought it would be to have two prices with one having expiration
> date. But that is not the case.

>         {% if sale %}<strike id="fullprice" style="display:
> block;">{{ product|discount_price:""|currency }}</strike>{% endif %}
>         <span id="price">{{ product|discount_price:sale|currency }}</span>

> Where do I need to look to see how {% if sale % is triggered?

Proper 'sales' as normally understood (30% off Brand X, no discount
code required) are not directly supported in Satchmo as best as I can
tell.

The 'sale' template tag returns an actual Discount code object if and
only if there is an automatic discount (aka store wide sale). See [1]
for the relevant criteria used for selecting a Discount as 'sale'.

No other types of Discounts or temporary price reductions will
automatically show up for this template tag. I'm am currently trying
to work out a template tag which will cover all cases, but it's a
beast.

[1] http://bitbucket.org/chris1610/satchmo/src/0bd6df5821d2/satchmo/apps/...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stanislav Mihaylov  
View profile  
 More options Oct 16 2012, 10:10 am
From: Stanislav Mihaylov <st.michay...@gmail.com>
Date: Tue, 16 Oct 2012 07:10:10 -0700 (PDT)
Local: Tues, Oct 16 2012 10:10 am
Subject: Re: Place Products on Sale

Hello Scott, I was wondering did you manage to develop this template tag
after all ? I am trying to implement sales for particular products without
discount code too...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
LZAntal  
View profile  
 More options Oct 16 2012, 2:52 pm
From: LZAntal <lzan...@gmail.com>
Date: Tue, 16 Oct 2012 11:53:41 -0700
Local: Tues, Oct 16 2012 2:53 pm
Subject: Re: Place Products on Sale
Hi,

I needed that functionality as well. I ended up using is adding a second price for the product with an expiration date then in my template I check for that price.
"""
{% if product.get_qty_price_list.1.1 %}
        <span style="text-decoration: line-through;">{{ product.get_qty_price_list.0.1|currency }}</span>
        &nbsp;
        <span style="color:red;">{{ product|discount_price:sale|currency }}</span>        
{% else %}
        {{ product|discount_price:sale|currency }}
{% endif %}
"""

Hope it helps.

Laszlo
http://twitter.com/LZAntal

On Oct 16, 2012, at 7:10 AM, Stanislav Mihaylov <st.michay...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stanislav Mihaylov  
View profile  
 More options Oct 21 2012, 3:40 pm
From: Stanislav Mihaylov <st.michay...@gmail.com>
Date: Sun, 21 Oct 2012 12:40:27 -0700 (PDT)
Local: Sun, Oct 21 2012 3:40 pm
Subject: Re: Place Products on Sale

Thank you for your answer, I also found this solution by reading through
the topics in the group - it is good for displaying the full price and then
the discounted one.
Nevertheless, my client wanted a more comprehensive way of creating sales
from the admin panel - being able to create 'absolute amount off',
'percentage of'f' and multibuy sales from the type '3 for the price of 2'
and being able to apply it to multiple products without having to open
every product's edit page, so I ended up creating custom 'Sale' model that
has a similar interface to 'Discount', but instead of messing with
discounts, its save method creates such second prices for products,
selected from a multi-choice checkbox widget. In order to connect the
'Sale' to the created second prices for further reference and CRUD
operations, I subclassed the 'Price' model with my own 'SalePrice' that has
a foreign key to Sale. So a new Sale creates SalePrices and they in turn
create Price entries, while Satchmo's original models stay unmodified.
If anybody needs any further details of how I did it, feel free to ask!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gg  
View profile  
 More options Nov 15 2012, 12:51 pm
From: gg <gulamg...@gmail.com>
Date: Thu, 15 Nov 2012 09:51:48 -0800 (PST)
Local: Thurs, Nov 15 2012 12:51 pm
Subject: Re: Place Products on Sale

Hi

I would be interested to add your logic of code and I think that may help
me in my current satchmo shop. Would it be possible for you to send me your
code please ?

Thanking you in advance.
++


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stanislav Mihaylov  
View profile  
 More options Nov 26 2012, 12:23 pm
From: Stanislav Mihaylov <st.michay...@gmail.com>
Date: Mon, 26 Nov 2012 09:23:08 -0800 (PST)
Local: Mon, Nov 26 2012 12:23 pm
Subject: Re: Place Products on Sale

Hi,

I am sorry for the late reply, I must have missed the email notification
from your message. Do you still need my help? I am glad to help you, but
please give me more details of what exactly do you need as functionality.
Do you need just the models and admin code or also ideas of how to
implement it in the template, displaying a product sale e.g.?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gg  
View profile  
 More options Nov 27 2012, 12:09 am
From: gg <gulamg...@gmail.com>
Date: Mon, 26 Nov 2012 21:09:22 -0800 (PST)
Local: Tues, Nov 27 2012 12:09 am
Subject: Re: Place Products on Sale

Hi

Thanks for your reply.

Yes. I still need your help very much.

I would be highly obliged to get the codes and also the way to implement it
in the template for displaying products. Presently I am running into couple
of problems with the existing standard discounting module which has few
bottlenecks.

As you said discounting is one entity, Sales across the shop is another
entity like "Get3 if you buy 2" etc..I agree with you.

I am looking forward to your kind help.

Thanking you in advance.
++


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »