Search found 16 matches

by Moxamint
Tue Feb 28, 2023 1:01 pm
Forum: Community Help & Support
Topic: Switching Notify Customer from On to Off
Replies: 1
Views: 333

Switching Notify Customer from On to Off

Hi, In admin -> orders -> Edit -> Status History, there is a "Notify Customer" switch that defaults to "ON". What should I do to make it default to "OFF"? I dug into the code and found line 145 in admin/includes/actions/orders/views/edit.php: <?= (new Tickable('notify',...
by Moxamint
Wed Feb 01, 2023 4:58 am
Forum: Community Help & Support
Topic: Order Edit: Extract name and country from delivery address
Replies: 6
Views: 829

Re: Order Edit: Extract name and country from delivery address

I wish you good luck! If you get stuck, I think I could be a little more helpful, and maybe others know better than me - as a PRO-Supporter you have of course also the option to post in the VIP-forum to get expert advice from core coders, should we fail to solve things here. So at least there is a ...
by Moxamint
Sat Jan 28, 2023 11:12 pm
Forum: Community Help & Support
Topic: Order Edit: Extract name and country from delivery address
Replies: 6
Views: 829

Re: Order Edit: Extract name and country from delivery address

I think you could make a hook in includes/hooks/admin/orders listening to inject_redirects, which would have to check for action=edit and then redirect to action=your_custom_edit. If going the JS-way, there is a function that gets elements from classes (https://www.w3schools.com/jsref/met_document_...
by Moxamint
Sat Jan 28, 2023 9:51 am
Forum: Community Help & Support
Topic: Order Edit: Extract name and country from delivery address
Replies: 6
Views: 829

Re: Order Edit: Extract name and country from delivery address

Instead of editing core, I think you could hi-jack the action and redirect it to your custom action with a hook. Alternatively, you might be able to just hook in some JavaScript to append the data to the title. If you look in invoice.php, I think you can see how to get the data you need. Sorry for ...
by Moxamint
Sat Jan 28, 2023 7:07 am
Forum: Community Help & Support
Topic: Order Edit: Extract name and country from delivery address
Replies: 6
Views: 829

Order Edit: Extract name and country from delivery address

Hi, In admin=>orders=>edit of any order, the page title is something like "Order #56", for example. To make the order number match a specific naming convention, I need to extract the customer/recipient's name and the country name from the delivery address to add to the page title. How do I...
by Moxamint
Fri Jan 27, 2023 1:44 pm
Forum: Community Help & Support
Topic: Overriding includes/modules/notifications/n_checkout.php
Replies: 4
Views: 658

Re: Overriding includes/modules/notifications/n_checkout.php

Hook snippet from PWA: class hook_shop_siteWide_pwa { public $version = '4.6.0.'; public function listen_orderMail($parameters) { $products_review_links = HOOK_PWA_EMAIL_REVIEWS . "\n"; $email_order = &$parameters['email']; $order = $parameters['order']; $link = Guarantor::ensure_glob...
by Moxamint
Fri Jan 27, 2023 12:06 pm
Forum: Community Help & Support
Topic: Overriding includes/modules/notifications/n_checkout.php
Replies: 4
Views: 658

Re: Overriding includes/modules/notifications/n_checkout.php

Kofod95 wrote: Fri Jan 27, 2023 11:57 am PWA does it with hooks, I don't remember exactly how, but I could dig it up, next time I'm at my PC :)

//Daniel
Please - thank you!
by Moxamint
Fri Jan 27, 2023 11:40 am
Forum: Community Help & Support
Topic: Overriding includes/modules/notifications/n_checkout.php
Replies: 4
Views: 658

Overriding includes/modules/notifications/n_checkout.php

Hi, I was trying to override includes/modules/notifications/n_checkout.php with templates/override/includes/modules/notifications/n_checkout.php without success. The former file does not seem overridden by the latter. I'm doing so to change the subject of the order notification e-mail, in which I'd ...
by Moxamint
Thu Jan 19, 2023 4:13 pm
Forum: Community Help & Support
Topic: Addon to Confirm Privacy and Conditions in Checkout
Replies: 5
Views: 818

Re: Addon to Confirm Privacy and Conditions in Checkout

For everyone who's faced with this problem too: It was not possible to install the Module in Admin-Panel in my case. But I solved it manually Walkthrough: Insert a record to database in table hooks with this values hooks_site: shop hooks_group: checkout_confirmation hooks_action: injectFormDisplay ...
by Moxamint
Mon Aug 16, 2021 8:21 am
Forum: Community Help & Support
Topic: Help needed updating last part of old Inactive customers addon
Replies: 13
Views: 4190

Re: Help needed updating last part of old Inactive customers addon

For anyone interested ... the latest 1.4.0 of my Reporting tool, now has a new feature which allows actions with checkboxes based on results. I have also added checkboxes to the "Customer No Orders Ever Report" that allows you to check all and simply click DELETE and they will all be remo...