ghanshyam saini
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] WC()->cart->add_to_cart not working$pa_koostis_value = get_post_meta($parent_product_id, ‘_product_attributes’, true);
foreach($pa_koostis_value as &$value){
if($value[‘is_variation’] === 1){
$value[‘is_variation’] = 0;
}
}
update_post_meta( $parent_product_id, ‘_product_attributes’, json_encode($pa_koostis_value) );
for simple product I don’t know why woo commerce set it to is_variation 1 but some attributes are required setthen we need to set it is_variation = “0”after that it’s working fine
https://user-images.githubusercontent.com/17923790/248173212-3bf2f6ce-814d-4728-8d57-c3c190e8e14b.png- This reply was modified 1 year, 9 months ago by ghanshyam saini.
f ( ! defined( ‘ABSPATH’ ) ) {
exit; // Exit if accessed directly
}/**
* Keep the interface_exists check here for Postman Gmail API Extension users!
*
* @author jasonhendriks
*/
if (! interface_exists ( ‘PostmanTransport’ )) {
interface PostmanTransport {
public function isServiceProviderGoogle($hostname);
public function isServiceProviderMicrosoft($hostname);
public function isServiceProviderYahoo($hostname);
// @deprecated
public function isOAuthUsed($authType);
public function isTranscriptSupported();
public function getSlug();
public function getName();
// @deprecated
public function createPostmanMailAuthenticator(PostmanOptions $options, PostmanOAuthToken $authToken);
public function createZendMailTransport($fakeHostname, $fakeConfig);
public function isConfigured(PostmanOptionsInterface $options, PostmanOAuthToken $token);
public function isReady(PostmanOptionsInterface $options, PostmanOAuthToken $token);
// @deprecated
public function getMisconfigurationMessage(PostmanConfigTextHelper $scribe, PostmanOptionsInterface $options, PostmanOAuthToken $token);
// @deprecated
public function getConfigurationRecommendation($hostData);
// @deprecated
public function getHostsToTest($hostname);/**
* Get Socket’s logo
*
* @since 2.1
* @version 1.0
*/
//public function getLogoURL();
}
}in there i have just comment this method
/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanModuleTransport.phpline no 39
//public function getLogoURL();
i have see that my problem is resolved