Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Category exclude instead of include option #1

@fourroses666

Description

@fourroses666

When I have, lets say, 30 categories and I would like to exclude 1 category from discount/promocode I have to add all 29 categories except the 1.

Would it be possible use selectbox, include / exclude category, of have a selectbox in the search?


Also;
When you add the code I get a nice popup.
But when adding the code to the category which is excluded from promocodes you still get the popup message "Kortingscode is toegevoegd!".

Can a different message be used for that?

My toastify script/settings:

<script>
	/* promocode */
	$(document).on('promocode-register-complete.promocodes', function(e, params) {
		if (params.response.status) {
			Toastify({
				text: 'Kortingscode is toegevoegd!',
				close: false,
				position: 'bottom'
			}).showToast();
		} else {
			Toastify({
				text: 'Kortingscode is ongeldig!',
				close: false,
				position: 'bottom',
				backgroundColor: '#d20000'
			}).showToast();
		}
	}).on('promocode-remove-complete.promocodes', function(e, params) {
		if (params.response.status) {
			Toastify({
				text: 'Kortingscode is verwijderd',
				close: false,
				position: 'bottom'
			}).showToast();
		}
	});
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions