Add a custom field to course Moodle [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm new to moodle. I need your suggestions to create plugin which will add a custom field on Add/edit courses page and will also store the input value in mdl_course table.

As of now Moodle does not allow you to add custom fields to a course from the web interface.
However there is a patch available for v1.9 in the Moodle Tracker(MDL-18319).
Please be aware that the patch is for Moodle-1.9 and applying it directly may corrupt your source code if you are using Moodle version > 1.9

Related

How to create categories from a frontend form in Wordpress [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I want to create form on a frontend page of my website to allow assigned users to create new categories under a custom post type.
How should I go about doing this ?
add a post category in wordpress is a process that is done on the server-side. if you want to handle it by a button in client-side you should use restful api of wordpress.
it's wp'api document:
https://developer.wordpress.org/rest-api/reference/categories/#create-a-category

PHP - Get Order Immediately When Placed WooCommerce [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
My site is made with WordPress & WooCommerce. I wanna get ORDER immediately after it place.
I wanna sent ORDER to a Non-WordPress SERVER in XML format with POST method.
If you are a developer, this should be implemented using WooCommerce webhooks (https://docs.woocommerce.com/document/webhooks/), but a nice amount of code and a good understanding of WooCommerce is needed.
An easier alternative would be using a 3rd party like Zapier: https://zapier.com/apps/webhook/integrations/woocommerce

Contao CMS adding files from the frontend [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm using Contao CMS 3.5.x, I have successfully added an "enclosure" on the backend (DCA). Now I need my frontend user (member) to upload a doc from the frontend (and save it in the same db field). How can I do this from a frontend point of view?
Thanks
You could create a form via the form generator that writes into your desired table. However, Contao only stores the relative file path of uploaded files into the database - but you probably want an UUID there.
You can use fritzmg/contao-store-uuid to automatically store the UUID for file fields.

How to add custom option dropdown in Magento Checkout Page [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to add custom drop down option in Magento Checkout Page.
I am using fire checkout in my Magento Store.
I am newbie in Magento and not getting where to start.
I have followed this tutorial but not able to figure out anything.
Please let me know which files should be updated and how can I store that option value in database also.
Any help would be appreciated.
Thanks

OpenCart Insert/Update Products Api [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am building a new online shop based on OpenCart 2. I am trying to integrate an supplier XML feed to automatically update product prices/stock info/etc. Is there an ADD/UPDATE PRODUCT API to use with OpenCart 2? Could not find any info on their site about this...
I analyzed the database diagram but I think it's very difficult to create a PHP code to add/update these products manually.
You can use existing code that opencart uses to add/update products.
Its in admin/model/catalog/product.php.
There are methods for addProduct and editProduct.

Categories