• hello,
    i want to make an api / sync with different shops , please help me with it.
    now i need to do it manual to the shops.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    All the data is saved in a single database table “wp_ymm”.
    So you can create custom functions that will add/edit/delete the data directly in the database table.

    For example, you can use this function to get all makes and models:

    
        public function getYMMData(){
          global $wpdb;
         
          $select = "SELECT make, model, year_from, year_to FROM {$wpdb->base_prefix}ymm";
    
          return $wpdb->get_results($select, ARRAY_A);        
        }
    

    Stanislav

    Thread Starter promotoparts

    (@promotoparts)

    hello,
    so I need to put this CSS in the linked shop?
    I have done it, but did not work the global $wpdb;
    gives an error.

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    It is not a working code.

    It is just and example of how to get the data from the wp_ymm database table.

    This plugin does not have an API functions.
    So to make a working API you should write a lot of other code.

    Stanislav

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘API / Sync ymm’ is closed to new replies.