How Do I Remove Quantity field?

20 views
Skip to first unread message

chawk

unread,
Jun 13, 2012, 8:30:05 PM6/13/12
to Satchmo users
My items are strictly digital and they can only purchase one. Is
there a way to just have the add to cart button?


alkatron

unread,
Jun 14, 2012, 4:55:22 AM6/14/12
to satchm...@googlegroups.com
On 06/14/2012 02:30 AM, chawk wrote:
> My items are strictly digital and they can only purchase one. Is
> there a way to just have the add to cart button?
>
>
>
In the product template (product.html) change

<input type="text" size="5" name="quantity" id="quantity" value="1"
class="priced" />

to

<input type="hidden" size="5" name="quantity" id="quantity" value="1"
class="priced" />

and remove

{% trans "Quantity" %}


chawk

unread,
Jun 14, 2012, 12:51:14 PM6/14/12
to satchm...@googlegroups.com
Thanks i actually figured that out but the problem I was having is that the cache apparently was not allowing in new changes to be reflected. Can you tell me how to clear the cache files so that the changes to be reflected? Thank you

alkatron

unread,
Jun 14, 2012, 1:48:39 PM6/14/12
to satchm...@googlegroups.com
Django cache

https://docs.djangoproject.com/en/1.3//topics/cache/#the-low-level-cache-api

cache.clear()

if you intended the sorl thumbnails cache

http://thumbnail.sorl.net/management.html

python manage.py thumbnail clear


Your problem sound strange, i think it isn't a cache problem but that
satchmo still uses old template, check

http://www.satchmoproject.com/docs/dev/customization.html#template-customization

chawk

unread,
Jun 14, 2012, 6:12:05 PM6/14/12
to satchm...@googlegroups.com
Alkatron, 

thank you for getting back to me.   You are right it was not a cache deal at all.   I had my 

TEMPLATE_DIRS = (
    "/full/path/to/my/templates",

Only established in my settings.py file.   When adding 

TEMPLATE_DIRS = (
    "/full/path/to/my/templates",
)

to the local_settings.py as stated in the instructions it solved my problems.   Thank you very much. 

Reply all
Reply to author
Forward
0 new messages