AyeCode / invoicing

GetPaid (Formerly the Invoicing plugin) is a lightweight Payments and Invoicing system for WordPress. It can be used to sell anything online via payment forms or buy now buttons that can be added to any landing page. It can also be used by freelancers to manage their Invoices or by 3rd party Themes and Plugins as their payment system. GeoDirectory currently uses GetPaid as its payment system
https://wpgetpaid.com/
Other
39 stars 22 forks source link

Doc Request #593

Closed picocodes closed 3 years ago

picocodes commented 3 years ago

https://wordpress.org/support/topic/item-for-subscriptions/

wpdev10 commented 3 years ago

@sufyanism We need a doc for how to override the templates of GP in the theme.

sufyanism commented 3 years ago

@wpdev10 Can you clarify? Are you talking about replacing strings with Loco, as is shown in the ticket or something else?

wpdev10 commented 3 years ago

I am talking about overriding templates in the theme. Like we do in UWP https://userswp.io/docs/developers/override-templates/

sufyanism commented 3 years ago

Rough Draft of steps

  1. Copy the template you want to change, say for example: wpinv-invoice-print.php -- copy it from /invoicing/wpinv-invoice-print.php to a folder in your theme called theme/invoicing/wpinv-invoice-print.php

  2. From here you can edit the template without having to edit the main files.

@Stiofan @picocodes Can you confirm if the path slug is gonna be /invoicing/ or /getpaid/ ?

picocodes commented 3 years ago

Yes use invoicing

On Mon, May 31, 2021, 15:28 Sufyan bin Uzayr @.***> wrote:

Rough Draft of steps

1.

Copy the template you want to change, say for example: wpinv-invoice-print.php -- copy it from /invoicing/wpinv-invoice-print.php to a folder in your theme called theme/invoicing/wpinv-invoice-print.php 2.

From here you can edit the template without having to edit the main files.

@Stiofan https://github.com/Stiofan @picocodes https://github.com/picocodes Can you confirm if the path slug is gonna be /invoicing/ or /getpaid/ ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AyeCode/invoicing/issues/593#issuecomment-851457440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYCZ4AAXUOOFPC3Q5JDZLDTQN6GZANCNFSM45ROS3VQ .

sufyanism commented 3 years ago

https://docs.wpgetpaid.com/article/582-how-to-override-getpaid-templates-in-themes?auth=true

wpdev10 commented 3 years ago

Need correction for "copy it from /invoicing/wpinv-invoice-print.php" Change it to "copy it from /invoicing/templates/wpinv-invoice-print.php"

sufyanism commented 3 years ago

Done