skip to Main Content

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.

2

Answers


  1. Chosen as BEST ANSWER

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


  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search