You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the code below for creating products I use. If I created product this way that would be found to the Posts menu but not in the Products menu. Furthermore, if I created an event post that would be found in the Dashboard > Posts and then Events tab. Please let me know why this is happening. Thanks in advance.
$lowerPrice = new Google_Service_MyBusiness_Money;
$lowerPrice->setCurrencyCode($currency);
$lowerPrice->setUnits($lowPrice);
$upperPrice = new Google_Service_MyBusiness_Money;
$upperPrice->setCurrencyCode($currency);
$upperPrice->setUnits($highPrice);
// Prepares local product post
$localPostProduct = new Google_Service_MyBusiness_LocalPostProduct;
$localPostProduct->setLowerPrice($lowerPrice);
$localPostProduct->setUpperPrice($upperPrice);
$localPostProduct->setProductName($title);
// Prepares local post
$localPost = new Google_Service_MyBusiness_LocalPost;
$localPost->setProduct($localPostProduct);
$localPost->setSummary($summary);
$localPost->setMedia($media);
$localPosts = $this->myBusiness->accounts_locations_localPosts;
return $localPosts->create($parent, $localPost);
The text was updated successfully, but these errors were encountered:
Here is the code below for creating products I use. If I created product this way that would be found to the Posts menu but not in the Products menu. Furthermore, if I created an event post that would be found in the Dashboard > Posts and then Events tab. Please let me know why this is happening. Thanks in advance.
The text was updated successfully, but these errors were encountered: