If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / Admin Discount Coupons Search

Admin Discount Coupons Search

Started by oldngrey on 14 May 2023, 5:08 AM · Views: 1,959

Results 1 to 13 of 13
14 May 2023, 5:08 AM
#1
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Post #1 by oldngrey

zc158a PHP 8.2
Has anyone got ideas on making the search box in Discount Coupons work? It has never working with any version of ZC I have used since 1.5.5?

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

2 Jun 2023, 3:26 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,337
Plugin Contributions:
41

Post #2 by mprough

Be awesome if the column headers where sortable ascending & descending as well =)

~Melanie

2 Jun 2023, 3:58 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #3 by swguy

@OldNGrey can you be more specific?
I tested index.php?main_page=discount_coupon&action=lookup with a specific coupon code (the coupon code value, not the coupon name value) and it worked with 1.5.7/Bootstrap.

Then I tested admin/index.php?cmd=coupon_admin, used the search box with a specific coupon code and it also worked.

Note the search is not a substring match; you must provide the exact coupon code.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

2 Jun 2023, 10:18 PM
#4
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Post #4 by oldngrey

Yes testing with a specific coupon code works.
I assumed that it was like other searches in admin and worked on substrings.
I would rarely remember a Coupon Code but I do remember partial Coupon names based on my naming conventions.

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

3 Jun 2023, 8:09 AM
#5
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #5 by carlwhat

OldNGrey:

Yes testing with a specific coupon code works.
I assumed that it was like other searches in admin and worked on substrings.
I would rarely remember a Coupon Code but I do remember partial Coupon names based on my naming conventions.

so you like the various substring search methods that goes on in the admin?

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

7 Jun 2023, 12:25 AM
#6
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Post #6 by oldngrey

Yes. Categories key word searches works well in 1.5.8 unlike 1.5.7 and earlier.
This would be a real bonus if applied to Coupons

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

7 Jun 2023, 1:02 AM
#7
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #7 by carlwhat

OldNGrey:

Yes. Categories key word searches works well in 1.5.8 unlike 1.5.7 and earlier.
This would be a real bonus if applied to Coupons

glad to hear. it also works on products, customers, specials, and featured items...

when i have some time, i will take a look at coupons...

changing the search function was something i worked on for v158; glad someone is finding it useful (besides me!)

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

7 Jun 2023, 10:14 AM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #8 by swguy

This would be a real bonus if applied to Coupons

Agreed. Thanks @carlwhat.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

7 Jun 2023, 11:36 AM
#9
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #9 by carlwhat

swguy:

This would be a real bonus if applied to Coupons

Agreed. Thanks @carlwhat.

i took a quick look at it last night. it is not a trivial change. unfortunately.

might be a bit before i can get to it.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

9 Jun 2023, 6:44 AM
#10
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Post #10 by oldngrey

It's a nice to have. I looked at the code and can see that it's a major change.

ZC158a is such a quantum leap ahead of my early zc installs 15 yrs ago. I dips my lid to you all, it obviously was a mighty effort to get to the current build.

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

6 Nov 2023, 12:48 AM
#11
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #11 by carlwhat

OldNGrey:

It's a nice to have. I looked at the code and can see that it's a major change.

ZC158a is such a quantum leap ahead of my early zc installs 15 yrs ago. I dips my lid to you all, it obviously was a mighty effort to get to the current build.

i did do a PR on this change. it has not yet been merged into the ZC repo at this time.

perhaps you might want to try it? it is just replacing 1 file.

you can see the PR here.

if you do try and replacing the file, please let us know how it goes.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

6 Nov 2023, 3:58 AM
#12
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Post #12 by oldngrey

Wow! It works on just a partial word phrase eg "stone" finds AdamStone, David Stone; DavidStone01; PeterJohnstone01.
A brilliant change. Thank you very much.

Tested on zc158a PHP 8.2.4; 8.1;7.4.19

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

6 Nov 2023, 2:16 PM
#13
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #13 by carlwhat

OldNGrey:

Wow! It works on just a partial word phrase eg "stone" finds AdamStone, David Stone; DavidStone01; PeterJohnstone01.
A brilliant change. Thank you very much.

Tested on zc158a PHP 8.2.4; 8.1;7.4.19

:thumbsup:

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.