2022 Developer Survey is open! Take survey.

Questions tagged [extension]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
47 views

Updating hooks from v2 to v4

My company has a legacy add-on from version 2 and has now updated to version 4 of EE. With the upgrade, the hooks that fire when a new entry of a specific channel type are no longer triggering. After ...
user avatar
0 votes
2 answers
41 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 ...
user avatar
0 votes
1 answer
20 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 ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
2 votes
2 answers
36 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
user avatar
1 vote
2 answers
133 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
user avatar
0 votes
1 answer
66 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 ...
user avatar
1 vote
0 answers
43 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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
0 votes
1 answer
106 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 ...
user avatar
  • 57
0 votes
1 answer
58 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 ...
user avatar
2 votes
1 answer
345 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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 455
1 vote
1 answer
41 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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 103
0 votes
1 answer
35 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, ...
user avatar
0 votes
1 answer
344 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: ...
user avatar
0 votes
1 answer
41 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.
user avatar
1 vote
0 answers
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 ...
user avatar
0 votes
0 answers
69 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 ...
user avatar
  • 1,610
0 votes
1 answer
124 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('...
user avatar
  • 1,610
1 vote
1 answer
58 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 ...
user avatar
1 vote
1 answer
129 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 ...
user avatar
  • 455
1 vote
0 answers
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' ...
user avatar
  • 455
0 votes
1 answer
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-...
user avatar
0 votes
1 answer
42 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 ...
user avatar
  • 185
0 votes
1 answer
76 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 ...
user avatar
  • 101
0 votes
1 answer
31 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 ...
user avatar
  • 455
0 votes
1 answer
41 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 ...
user avatar
0 votes
1 answer
53 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 ...
user avatar
0 votes
1 answer
59 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 ...
user avatar
0 votes
2 answers
87 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 ...
user avatar
2 votes
1 answer
162 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-&...
user avatar
  • 783
1 vote
2 answers
694 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 ...
user avatar
  • 113
0 votes
1 answer
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 ...
user avatar
  • 23
0 votes
1 answer
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-&...
user avatar
  • 5
0 votes
2 answers
83 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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 320
0 votes
1 answer
102 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 ...
user avatar
  • 23
0 votes
2 answers
40 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 ...
user avatar
  • 315
1 vote
2 answers
93 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 ...
user avatar
  • 13
3 votes
2 answers
386 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: $...
user avatar
1 vote
2 answers
359 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 ...
user avatar
1 vote
1 answer
61 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' =...
user avatar
2 votes
1 answer
320 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’ ...
user avatar
  • 173
1 vote
1 answer
57 views

Hook for when viewing single entry

I'm in the process of building my 1st extension (oi!) and I need to find a hook that allows me to fire off a routine when a member visits a single entry page. I have listing pages and single view ...
user avatar
  • 3,163
1 vote
1 answer
47 views

Get IDs of deleted entries

I’m creating an ExpressionEngine extension. I want to get the IDs of any records that are deleted. I’m aware of the delete_entries_end() and delete_entries_loop() hooks, but they both return void ...
user avatar
1 vote
1 answer
56 views

blank page when saving extension settings

I am developing an EE extension and everything was working fine and I thought I was done. So I uninstalled the extension and re-installed it to testing everything. It uninstalled fine and re-...
user avatar
2 votes
1 answer
125 views

Add-on Dev: Extending channel->entries and tagdata

I have a search module that grabs locations based on coordinates and estimates distances. I've decided to extend then channel class so I can take advantage of the entries method to display search ...
user avatar
  • 122
1 vote
1 answer
162 views

Expresso Store: Extension to exclude modifier amounts when calculating tax

I'm developing an extension for Expresso Store that updates the tax calculation for items to exclude any amounts in the modifiers as for this application they are tax free. For example, if the price ...
user avatar
  • 257