Django shop offers app
Project description
# MP-Shop | Offers
### Installation:
1) Install using PIP:
```
pip install django-mp-shop-offers
```
2) Add `'offers'` to `INSTALLED_APPS`.
3) Add `path('offers/', include('offers.urls'))` to `urlpatterns`.
4) Add `offers/offers.js` to js files list.
### Template example:
```
<a href="javascript:void(0);" data-role="show-price-offer-modal">
Send offer
</a>
```
```
<script>
$(window).load(function() {
new PriceOfferModal({
url: '{% url 'offers:modal' object.id %}',
$target: $('[data-role="show-price-offer-modal"]')
});
$('.pgwSlideshow').pgwSlideshow();
$('.pgwSlideshow .ps-current a').attr('data-fancybox', 'gallery').fancybox();
});
</script>
```
### Requirements:
* django >= 2.0.6
* python >= 3.5.2
### Installation:
1) Install using PIP:
```
pip install django-mp-shop-offers
```
2) Add `'offers'` to `INSTALLED_APPS`.
3) Add `path('offers/', include('offers.urls'))` to `urlpatterns`.
4) Add `offers/offers.js` to js files list.
### Template example:
```
<a href="javascript:void(0);" data-role="show-price-offer-modal">
Send offer
</a>
```
```
<script>
$(window).load(function() {
new PriceOfferModal({
url: '{% url 'offers:modal' object.id %}',
$target: $('[data-role="show-price-offer-modal"]')
});
$('.pgwSlideshow').pgwSlideshow();
$('.pgwSlideshow .ps-current a').attr('data-fancybox', 'gallery').fancybox();
});
</script>
```
### Requirements:
* django >= 2.0.6
* python >= 3.5.2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-mp-shop-offers-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66ed4378f66ab086c1898dab4764663c3c2e3045bc8436b056026db14c551213 |
|
MD5 | 400044435df698c16839f3a6f839c15e |
|
BLAKE2b-256 | f46fbb2ca70f7fc36cf6ddf493ab0a601d1acebe6ffebcd4394d746bccf3bad4 |