WPprodigy / woocommerce-external-product-embed

Provides a shortcode to embed products from another store.
Other
49 stars 24 forks source link

issue in data fetching #36

Open 3dsbhajan opened 3 years ago

3dsbhajan commented 3 years ago

i add all the process but not fetching values Here is the link

here is my code (Edit: redacted)

<?php include 'class-wc-api-client.php';
$consumer_key = 'ck_13063c865b0002239e813fcf359b435da02ef871'; // Add your own Consumer Key here
$consumer_secret = 'cs_1ff937f7f57eaddfa981ab5130162566f2a45ab0'; // Add your own Consumer Secret here
$store_url = 'https://gambertshirts.com/'; // Add the home URL to the store you want to connect to here
// Initialize the class $wc_api = new WC_API_Client( $store_url, $consumer_key, $consumer_secret ); //print_r($wc_api); var_dump($wc_api);

?> please resolve the issue thanks

WPprodigy commented 3 years ago

Uh, you've just posted your full consumer_key and consumer_secret, something people could use to access data on your real site and manipulate the database. Please delete that API key immediantly.

3dsbhajan commented 3 years ago

Uh, you've just posted your full consumer_key and consumer_secret, something people could use to access data on your real site and manipulate the database. Please delete that API key immediantly.

Thanks so much for this awareness and please reply the anwser of my question.

WPprodigy commented 3 years ago

Not really sure what's going wrong for you. I recommend trying step 4 specifically: https://github.com/WPprodigy/woocommerce-external-product-embed#common-problems