Woocommerce extra Endpoints - How to create or edit the existing template? - woocommerce

I have a problem with Woocommerce endpoints. The problem is that I would like to edit an endpoint that comes with Woocommerce, /my-account/payment-methods/. I would like to edit or create the templates for that specific endpoint and for some others that have the same issue as the one I want to create or edit. How can I edit a Woocommerce endpoint template? I would like to do that within Wordpress if possible, else I have build a custom plugin where I can edit files if needed.

Related

How to generate custom wordpress plugin in woocommerce

I am beginner for wordpress and woocommerce, my requirement is to create a custom plug-in just same as product plug-in and from preset.
So, I want to know how I can achieve this functionality?
Please find screenshot for same from here:
You could create a regular WordPress plugin. WordPress has a very good Handbook for creating plugins.
Generally you create plugins by hooking in the system. You can insert functionalities (actions) or change content (filters) with these hooks. WordPress itself and most common plugins like WooCommerce have such hooks to customize whatever you want via Plugins.
Be sure to check out the Woocommerce Documention on that topic and also their Hook Reference. Maybe it isn't even necessary to create a plugin … customizations via hooks can also be achieved from within your themes functions.php.

Allow users to upload a video in WordPress

How could you allow users to upload a video in their profile and display it on wordpress? Does anyone know of a plugin?
"Does anyone know of a plugin? in regards to the first question and topic"
very similar to this post:
WordPress Media as a Custom Post Type
Dated 2010.. which is why I started a new post.. alot has changed..
I have set up a login so far with WP User Manager and need to allow a user to upload a video link or video so that the video is displayed on their profile.
Using Advanced Custom Fields PRO to make it frontend.
documentation:
https://www.advancedcustomfields.com/resources/create-a-front-end-form/
In Wordpress there is a plugin called User Frontend Pro. This allows for you to create a frontend login for a user as well as it will give you the ability to create a custom frontend form. I used Advanced Custom Fields to create custom form fields for the data entered into this form. I was then able to make a custom post with CPT UI and create a single.php for the template of the post being created by a frontend user. This form allowed for the video with a Custom field to be entered as well as other types of information. There is a certain amount of coding you need to understand in php in creating the template structure, but the list of plugins in wordpress that will allow this to made rather simple are: ACF, CPT UI, and Frontend User Pro.

How to merge woocommerce older version to newer one?

I have woocommerce plugin installed in my ecommerce website. I have made some custom changes in some of file of woocommerce plugin. Now i want to update my woocommerce plugin. If i do by clicking on button update now then i will lose my custom changes which i made. I want to update woocommerce plugin without loosing my custom changes. So what is the best to merge all the changes to newer version and to update woocommerce plugin . is there any way to update woocommerce plugin manually so custom changes still remain there.
As you know its a bad idea having to edit plugin files because of updates.. if the plugin in question uses hooks you can write your own plugin that has your own custom code for that plugin. Here a post that might help you wrap your head around it. https://iandunn.name/2014/01/10/the-right-way-to-customize-a-wordpress-plugin/

Need to add user defined field to add product in shopp plugin wordpress

WordPress: Version 4.4.2
Shopp Plugin
I Need to add a user defined field to add product in Shopp plugin WordPress which will be used for XML generation and further for communication with one of the Payment Gateways.
Tried for clues surfing online but didn't find any.
Any help would be appreciated.
Thanks.
If you want to add fields to the checkout form that are specific to the payment gateway that is used you could take a look at this filter
shopp_checkout_gateway_inputs
This should be added to payment gateway file you are creating.
If you are looking for collecting additional order info on the checkout page you could use this bit of code
shopp('checkout.order-data')
This should be added to checkout.php.
If you are looking for collecting additional customer info on the checkout page you could use this bit of code
shopp('checkout.customer-info')
This should be added to checkout.php.

wordpress restrict pulgin installation to those who have a unique code

i want to make an wordpress plugin, and to put it public, but i want that only the users that have a certain unique code to be able to activate it.
is there possible using the wordpress api to ask for a unique code at plugin activation (and to condition the plugin activation by this code)? I searched wordpress codex, but nothing found.
thanks a lot!
This sounds like the old akismet plugin which required users to register for an API token. You can as part of your plugin require users to enter settings and at this point prompt them to register for an API key.
See the WordPress codex for adding an options page.
Also see this example for a good example of hooking into the plugin activation:

Resources