Questions tagged [extension]

Extensions enable third party developers to modify aspects of ExpressionEngine without hacking the backend scripts.

Filter by
Sorted by
Tagged with
0
votes
2answers
29 views

Unable to load ext.rte.php after updating from V2 to V6

After updating from version 2 to version 6, I get the following error when I want to edit an entry. Can anyone help me out? Notice Undefined index: extension ee/legacy/libraries/Extensions.php, line ...
0
votes
1answer
773 views

Send email from EE template with file get contents

I’m creating a custom ext. that handles form submission + email sending. When a form or reservation has been made the data is put in EE and 2 emails are being send. One email to the client and one to ...
0
votes
0answers
32 views

Get custom field entry data on before_channel_entry_delete hook

I'm using the hook before_channel_entry_delete to get custom fields of the deleted entry and use that in another context. But, when I add the hook method and try to get data, all the the custom field ...
0
votes
1answer
14 views

How can I use stash->parse in my extension

I'm writing an addon which can take an EE template, replace some variables and then crucially parse the EE tags in it and then email it. I was hoping stash:parse might come to my rescue after a day ...
0
votes
1answer
28 views

Settings for a module

I have created a module the generates a form, validates submissions, saves the data in a table that the module creates on install and then integrates with a 3rd party system. This all works great but ...
1
vote
2answers
120 views

How to get data from a hook?

How do I get the last "ID" (row) created after using the "channel_form_submit_entry_end" hook? Can the hook send me the "ID"? EE5
2
votes
2answers
32 views

How do you get the parsed html of a page on the back end? (Within an Extension Using PHP)

How do you get the parsed HTML of a page on the back end? (Within an Extension Using PHP) EE5
2
votes
2answers
137 views

EE Extension for OmniPay / Paypal

I have created a simple extension in EE to handle PayPal payments on submission of a Channel Form, which seems to be working up to a point. My problem is how do I get the extension to handle the ...
0
votes
1answer
57 views

Call a variable from a module that was created in an extension

Is there any way to pass a value from an extension to a module or a plugin in ExpressionEngine? I created this very useful extension to take advantage of the expresso store module: <?php use ...
1
vote
0answers
39 views

CartThrob price field modifier to minus some amount from cart total

I am having issue in developing cartThrob tax plugin with fieldtype Tax plugin have this fields. I have created a field type that will call that tax settings and populates here. When I view in ...
1
vote
1answer
34 views

Is it possible to use an extension in a template like a plugin?

I built an extension which works fine and I'm trying to make it work in my template but I don't know how to do and actually, I don't even know if it could work. My code looks like: class ...
0
votes
1answer
103 views

How to send HTML email (in template) from extension?

I am using the Email Class in an extension to send an email when an entry is saved with a certain status. This all works great and the emails send when they are supposed to. However, I am looking to ...
0
votes
1answer
46 views

issue with cp_js_end not running on multiple extensions

I created 2 little extensions for EE 3.5.11 that use the hook cp_js_end and they add JavaScript to each page in the control panel. The problem is that once one runs the other one does not, any idea ...
2
votes
1answer
325 views

before_channel_entry_save hook

I am writing an extension on EE 3.5.11 and I am using the before_channel_entry_save hook. In the EE documentation it says and modifications to the object will be saved. I am doing something like this ...
0
votes
1answer
59 views

Clearing the cache via API

The Expression Engine documentation for caching explains that the caches are automatically cleared upon: Submission, updating or deleting of an Entry through API I need to clear the caches via my ...
2
votes
1answer
156 views

Exp:resso Store Add a new Custom Report

The documentation suggests that you should be able to (fairly easily) create a custom report type and add it to the Exp:resso Store Reports section. But beyond the hook $reports = ee()->extensions-&...
1
vote
1answer
37 views

Custom add-on accessing method from another custom add-on …

I've got a custom add-on/extension that extends the Store module by tapping into the store_order_complete_end hook to save details of an order to an XML file stored on the server. I want to access ...
0
votes
1answer
23 views

Storing Single Option Value in Admin

I need to store a single numerical value in the admin for use in my templates. What is the best way to do this. I've reviewed Accessories, Extensions and Modules but can't seem to find something that ...
0
votes
1answer
32 views

Expresso Store custom tax rule

I've worked on a few custom plugins/add-ons before but am a bit rusty on extensions. I need to write a custom tax rule for Store and looking for guidance on targeting one of the Store extension hooks, ...
1
vote
1answer
55 views

freeform multipage reset some values from other pages

I have a multi-page form set up as following : question 1 > question 2 > question 3 > question 4 if answered yes > question 5 question 4 if answered no > question 6 All my questions have a return ...
0
votes
1answer
332 views

EE3 Extension not showing up - what am I missing?

I've read this: https://docs.expressionengine.com/latest/development/conversion/index.html and this: https://docs.expressionengine.com/latest/development/extensions.html I have a folder called: ...
0
votes
1answer
40 views

Get checkout url of cartthrob

guys. I am developing an extension for the cartthrob addon. I'd like to get the url of checkout page in ext.myaddon.php. How can I get this? Thanks.
1
vote
0answers
21 views

Expresso Store: Updating stock after order completed

Is there a way in Expresso Store when refunding or deleting an order record (eg with Extension Hooks) to modify the Stock levels. For example if an order is placed for 10 items and is subsequently ...
0
votes
0answers
65 views

Channel Entry Hooks not POST-ing fields

EE 3.4.2 Working on an EE3 Extension. I am able to utilize the channel_form_entry_form_tagdata_start to inject the custom field I need to for my Extension. This is a simple field (text) that is ...
0
votes
1answer
106 views

Using hooks in EE3 calling methods in extensions from modules

I'm new to hooks, so pardon any ignorance in the questions... So in my extension, (ext.staree.php), I have the following specifying the hook: class Staree_ext { public $hooks = array('...
1
vote
1answer
121 views

Updating an entry field, without updating every field

Using the Expression Engine Channel Entries API, is it possible to only update 1 field? Using the below code, it appears you have to grab all the field data and then re-add it to the fields. Is it ...
1
vote
1answer
142 views

Parse custom field data in entry_submission_end_hook

What I'm trying to do is parse the custom field data sent to the entry_submission_end hook. Here's what I was able to dissect out of the channel entries module, but what I'm confused is how to ...
1
vote
0answers
56 views

Cancel Entry Update / Display Error using EE3 Extension Hook

I am using a 'Channel Entry Model Extension Hook' in EE3 to allow me to carry out further validation of a selection of fields. This is working fine, currently with the 'before_channel_entry_update' ...
0
votes
1answer
67 views

How to create a member group admin?

What i try to achive is to have the following user structure: Member Group 1: Group Admin, User 1, User 2,... Member Group 2: Group Admin, User 1, User 2,... Member Group 3 ... ... I want the group ...
1
vote
1answer
56 views

Syntax for checkboxes in extension

I’m creating a custom ExpressionEngine extension and I need to add a checkbox. I’m struggling to find the options I need to use for the channel fields API. Currently I have: array( 'field_name' =...
0
votes
1answer
148 views

Cartthrob plugin for email notifications based on custom field

I found a plugin on the following site http://becordial.co.uk/expressionengine-cartthrob-email-notification-dynamic-custom-field/ which I have uploaded but does not show up in the extensions list so ...
0
votes
1answer
71 views

Expresso Store, USPS shipping options for individual products?

I'm using the USPS Shipping plugin to calculate shipping in my store. We use USPS Flat Rate Boxes to ship and most products fit in those boxes. In order to pull the correct shipping rates during ...
0
votes
1answer
24 views

MSM and bespoke extension

I have inherited a site that makes use of a bespoke extension that has a long list of settings (https://docs.expressionengine.com/latest/development/extensions.html#abstracted-settings-form-and-...
0
votes
1answer
41 views

Exp:resso Store Send Order Emails To Different Email Addresses

Is it possible to supply dynamic BCC's on Exp:resso store order confirmation emails? I have an ecommerce site that tutors can list courses on, and students can buy courses. When a course is purchased ...
0
votes
1answer
29 views

Lang text with control panel interface

On a new project, the client requires that it be possible to add/modify all text. I will be using channel entries to hold majority of the 'content' text, but I am more perplexed by how I should allow ...
0
votes
1answer
40 views

Possible to spoof last page, or end early in multi-page form?

I have a form with a number of pages and radio buttons, each one has a score attached. If the score is lower than 5 by the 5th page I need to end the form and display the results, else carry on with ...
0
votes
1answer
49 views

How do I find/make the URL to a PHP page in my extension?

If I have a control panel page and I want to submit it to a PHP page in my extensions' directory, how do I do that? What would the URL be? Or would I instead make an ACT URL? If so, how do I do that ...
0
votes
1answer
58 views

What's the proper way to alter a form in the control panel? (Using an extension in EE3)

I have looked through the hooks and cannot figure out which hook could provide a way to alter a form in the control panel (e.g. the create/edit member form or publish/edit entry form). I don't want to ...
0
votes
2answers
82 views

Do something after hook

I'm making an ExpressionEngine extension that is supposed to return to a certain URL after the user logged in. I'm using this hook: member_member_login_single. This returns me to the right url, but it ...
1
vote
2answers
646 views

How to use FreeForm Pro or EE Extension Hooks

I am a .NET/Java developer so I'm not very familiar with PHP although I have dabbled with it in the past and am a total noob with Expression Engine. I am working on a project at work along side our ...
0
votes
1answer
97 views

How to get the member id on activation link click?

I'm trying to trigger some code in an extension when a new member clicks their activation link in the welcome email e.g domain/?ACT=171&id=oZYXwJfcAx I can access the authcode using $id = $this-&...
0
votes
2answers
81 views

Hook to add a new column in control panel

For an extension I would like to add an extra column in the cp's entries overview. I have searched for a hook I could use for this, but could not find anything. I could use Zenbu, but that is a bit ...
0
votes
1answer
49 views

Update field content with extension when saving or editing an entry

I have created an extension which uses the entry_submission_ready hook. It is doing some calculations which I want to add to a field in the entry. How can I add the output of the calculations to the ...
0
votes
1answer
100 views

Shipping Rates in {shipping_method} Dropdown - Expresso Store

Is it possible to show the shipping rate next to the shipping option in the {shipping_method} dropdown? I'm using the Store USPS Shipping Extension to calculate shipping costs. I would like to show ...
0
votes
2answers
31 views

Installing Extension Ctrl+S Need Help

There is an EE extension (Ctrl+S) I want to install, but when I download it, it is just a php file, with no ReadMe file as to where to install it. I am stuck, I don’t know where to put this, to make ...
1
vote
2answers
92 views

Member Group Tabs throws blank screen after EE upgrade to 2.10

After an update to EE 2.10.1 the module Member Group Tabs throws the following error: Call to undefined method Cp::set_variable() in /path/sh_member_group_tabs/ext.sh_member_group_tabs.php on line ...
3
votes
2answers
378 views

Saving entry with grid field isn’t working

I’m creating an ExpressingEngine extension that upon activation, automatically creates a channel with fields. One of the fields the extension creates is a grid field. I create the field like this: $...
1
vote
2answers
344 views

How to create a Grid field in extension [duplicate]

I’m creating an extension that on installation, programmatically creates a channel and fields for that channel. One of the fields I’d like to create is a Grid field to store PDF documents against an ...
2
votes
2answers
125 views

Synchronise Files programmatically/automatically

I'm using phantomjs via an extension to save a screenshot into an EE file directory, but before it's accessible in the admin area, I need to synchronise files. I can't see anything in the docs for ...
2
votes
1answer
316 views

Unable to modify data with ‘entry_submission_ready’ extension hook

I’ve read a few posts on this, and for the life of me I can’t get this working. I want to intercept a Channel Form submission, and modify the submitted data. I’m using the ‘entry_submission_ready’ ...