Spree 3.x -Create a custom promotion rule - spree

I wanted to create a custom promotion rule to check if User buys an item again, they will be discount 10% of item’s price. (Admin able to config this in Spree's CMS)
Ideally, in user order page user would see the “Buy again” button, the item will be add to cart and the cart will be discount 10%.
Anyone can tell me how to do it, there is any extension/code that I can reference.
Thanks in advance!

I am not sure about your needed rules but you can define custom promotional rules. Go through with the following document:
https://guides.spreecommerce.org/developer/promotions.html

Related

How to let the limited access dashboard partners to also add variants in django oscar

I have gone to the django-oscar dashboard and went to Fulfillment - > Partners,
there I created a partner and linked a user and gave a limited dashboard access.
Now I see that most of the drop-downs are not visible to them(partner), that's fine.This is due to the permission given 'Can access dashboard'.
But, when I go to add the products, I see only the Stock and Pricing tab is there on the left, but there is no tab for variants, how do I get it to show in the dashboard of the partner also?
Should I give any other permission for the user linked ?
According to the docs link https://django-oscar.readthedocs.io/en/releases-1.6/ref/apps/dashboard.html in the note it says The permission-based dashboard currently does not support parent or child products.Supporting this requires a modelling change. If you require this, please get in touch so we can first learn about your use case. , but how and whom do I contact?
Or can I extend some of the partner views to achieve this?

Wagtail:How to have multiple types of admin

I am making a blogging website using wagtail so we have multiple writers so I need that no one can see drafts of other users and only the superadmin can post the blogs but I can't find that setting.
Previewing and submitting pages for moderation
The Save/Preview/Submit for moderation menu is always present at the bottom of the page edit/creation screen. The menu allows you to perform the following actions, dependent on whether you are an editor, moderator [...]
Source: http://docs.wagtail.io/en/v2.3/editor_manual/new_pages/previewing_and_submitting_for_moderation.html
Editors (you call them writers) can submit for moderation. Moderators can publish. So this part of your requirements is built in. My advice is to create users for each type and play around to get a feeling for this workflow.
There is no (out of the box) way to show pages to their creators only. However, you can give groups access to parts of the page tree:
Go to a page in the admin.
Top right, click the Privacy setting. Public is the default.
Change to 'Private, accessible to users in specific groups'.
Choose a group.
Now only users in this group can edit this section. So this page and all it's child pages.
Default there are two groups: Editors and Moderators. You can create new groups via /admin/groups/new/. If you give each user it's own group, you have what you want. Their pages will live in their own part of the page tree though.
Note that when you create a group it is also possible to limit permissions per content type. So you can make a group of users responsible for content of a specific type.
Wagtail users, groups, permissions, workflows and privacy settings makes it possible to configure permissions in a fine grained way. This will be sufficient in most cases.
When you have a project requirement that is more demanding, you can always add some extra logic to meet your requirement. Python/Django/Wagtail is a flexible software stack. But before going there, I would advice you to see if the standard settings are sufficient. If not, you should describe your requirements in more detail.

Opencart products page with special price

I want to have example.com/special and there list products with special price, what is the best way to do that ?
Requirements: 1.
have url /specials/
use category.tpl template
My idea: create new page in information, in controller send parms to catalog/category to fetch specials products, maybe exist more clear way ?
Special page is available by default in OpenCart. When You will set “old price – new price” for product. So, It product will automatically added in special page.
You can see in default OpenCart special page demo. Click Here
For example a product may have cost $200, but using the specials option in OpenCart you can set the price to $150. That way customers see the “old price – new price” difference.
Here’s how to set up a specials in OpenCart
From your OpenCart admin interface, hover over the Catalog tab and
click Products.
This is the list of products you have on your website. Find the
product you want to discount and click Edit.
Click on the Special tab.
Click Add Special in order to fill in the information for your
special price. Again, you have a number of options almost identical
to the discount page:

How to use Opencart Product Profile?

anyone know how to apply Opencart 1.5.6 new feature product profile? which is located in the admin menu - catalog - profile ?
I heard it can be used to break payment into several part, but i don't understand how it really works. Can i use it to let my buyer pay in 50% first then after my product is ready to ship, they pay the rest 50% again with that feature?
Thank You very much.
follow the documentation and dont forget to enable payment gateway like paypal express
http://docs.opencart.com/display/opencart/Profiles

How to add fixed Prescription charge in Prestashop

How to add fixed Prescription charge in Prestashop
Something similar to
http://www.vusionglasses.com/58-men-women-eyewear-endis-eyeglass-frames-bold-rectangular.html?id_combination=46
What Vusionglasses is doing is passing additional cost as per prescription and then in controller adding it to the product price.
I'm not able to figure out exactly where should I put my additional price code?
in my site. There are 4 packages and user has to select one and that much additional cost should be added to product while adding it to cart.
Adding this using combinations and inbuilt features is impossible for all products!
please help.
Solved this problem by
1. Creating a customization field for each product while importing.
2. Create a custom form on product page as per requirement.
3. Before adding the product to cart, save the custom form data through Product Customization field.
This will add the customization throughout the shopping process.