Home > other >  Create a totally new PHP page and pull Woocommerce data
Create a totally new PHP page and pull Woocommerce data

Time:12-18

I am new to PHP. I have been a .net programmer for 20 years but php is new. I would like to create a totally isolated page and access the WooCommerce data to perform some specific needs but I don't know where to start other than creating a "mypage.php".

I don't now what I need to do to connect to the DB and/or what to use to begin communicating with WooCommerce. I have seen many examples of interacting with WooCommerce and, in fact, I have been quite successful changing things within established pages but this is for a brand new page that is not generated by WooCommerce itself.

If someone could point me to an example on how to get started I can take it from there.

CodePudding user response:

Yes @mohammad, I had to start from a wordpress template. You pointed me to the right thing. Thanks!

CodePudding user response:

If you need create new page, so you can try " Wordpress page template ".

If you need connect to DB, so you need use " global $wpdb " for query.

  • Related