Post by iplocker » Sat Nov 16, 2024 2:36 am

Hello.
Can we add an option to choose also with sku the products in the coupons beside the name of the products? https://prnt.sc/zgFFd6cTOO65
Opencart 3.0.3.6
Thanks

Attachments

Coupons-Sku-Choose.jpg

Coupons-Sku-Choose.jpg (434.32 KiB) Viewed 1088 times

Last edited by iplocker on Tue Nov 19, 2024 12:19 am, edited 1 time in total.

Active Member

Posts

Joined
Sun May 26, 2013 6:39 pm


Post by JNeuhoff » Sat Nov 16, 2024 2:49 am

This would require a modification of OpenCart. If you can't any suitable extension on the OpenCart marketplace then maybe find a professional developer from the Commercial Support section of this forum, who can do such a modification for a charge.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by khnaz35 » Sun Nov 17, 2024 1:23 am

Do you mean you want both conditions to be met or any of the conditions to be met?

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by iplocker » Sun Nov 17, 2024 1:33 am

Hello. Any of the conditions to be met !! Thanks

Active Member

Posts

Joined
Sun May 26, 2013 6:39 pm


Post by softmonke » Mon Nov 18, 2024 11:07 am

If by "SKU", you are referring to the "Model" field, there's a very simple and quick change you can make to "admin/view/template/marketing/coupon_form.twig" so that the autocomplete search can include the "Model" field. To do so, you will have to look for the following function:

Code: Select all

$('input[name=\'product\']').autocomplete({
Then in the Ajax request's URL, append "filter_model" to it.

If you are referring to the actual SKU product field, then you will need to make modifications to allow the autocomplete search to include SKU. A quick way would be to simply modify the SQL query in "getProducts" function in "admin/model/catalog/product.php" (do note that this will apply the change to everything that uses the "getProducts" model function). But in general I think you would probably need to take a look at the following:

- "autocomplete" function in "admin/controller/catalog/product.php"
- "getProducts" function in "admin/model/catalog/product.php"

Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager ProDrag & Drop Sort Order

Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.


User avatar
Active Member

Posts

Joined
Tue May 23, 2023 4:42 am


Post by paulfeakins » Mon Nov 18, 2024 6:49 pm

iplocker wrote:
Sun Nov 17, 2024 1:33 am
Hello. Any of the conditions to be met !! Thanks
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Bing [Bot] and 13 guests