Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [extension]

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

1
vote
1answer
17 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)
0
votes
1answer
31 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"?
0
votes
0answers
13 views

Is Clockwork compatible with ExprEng? Are there other web browser extension tools? (logging, collected data, authentication, etc.)

I've just found Clockwork which has many features for profiling PHP applications: (...) including request data, application log, database queries, cache usage, execution visualization and much more....
0
votes
1answer
32 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 ...
0
votes
0answers
23 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
26 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
0answers
14 views

Grid field data on 'before_channel_entry_insert' hook

When using the 'before_channel_entry_insert' hook, outputting the $values array, any grid fields in the entry and show as empty. How can I access the data within the grid fields through this hook? ...
0
votes
1answer
41 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
18 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
128 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
42 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 ...
1
vote
1answer
34 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
21 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
23 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, ...
0
votes
1answer
186 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
18 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
60 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
0answers
56 views

Creating new channel entry using existing entry data - Channel Entries API

In the after_channel_entry_save hook, I am attempting to use the API to create a new channel entry, passing in the $data array from the published entry as the parameter for setup_entry_settings. ...
0
votes
1answer
67 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
49 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 ...
1
vote
1answer
58 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
0answers
48 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
20 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
34 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
58 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 ...
0
votes
1answer
24 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
34 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
47 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
52 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
46 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 ...
2
votes
1answer
121 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
2answers
467 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
69 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
85 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
74 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
32 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
94 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
28 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
87 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
296 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
236 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 ...
1
vote
1answer
53 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' =...
2
votes
1answer
273 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’ ...
1
vote
1answer
53 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 ...
1
vote
1answer
41 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 ...
1
vote
1answer
43 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-...
2
votes
1answer
100 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 ...
1
vote
1answer
154 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 ...
0
votes
1answer
581 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 ...