[WOOCS LABS] WooCommerce Subscriptions by WooCommerce
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from leandroprz on April 11, 2022, 18:17Hi,
I just checked this page to make WOOCS compatible with WooCommerce Subscriptions but I noticed many files mentioned there are not present anymore in the latest version of the plugin.
Could you please take a look at it?
Hi,
I just checked this page to make WOOCS compatible with WooCommerce Subscriptions but I noticed many files mentioned there are not present anymore in the latest version of the plugin.
Could you please take a look at it?
Quote from Pablo Borysenco on April 12, 2022, 10:00Hello
Ok! I will check it
I added the plugin to the adaptation queue
Hello
Ok! I will check it
I added the plugin to the adaptation queue
Quote from Pablo Borysenco on April 15, 2022, 17:39Hello
In file functions.php of your current wp theme add next code:
add_filter('woocommerce_subscription_price_string_details', 'woocs_woocommerce_subscription_price_string_details', 100, 2);
function woocs_woocommerce_subscription_price_string_details($arg, $_this) {
if (class_exists('WOOCS')) {
global $WOOCS;
$order_currency = get_post_meta($_this->get_id(), '_order_currency', true);
if ($order_currency AND $WOOCS->current_currency != $order_currency) {
$WOOCS->set_currency($order_currency);
}
}
return $arg; }
In file - \wp-content\plugins\woocommerce-subscriptions\vendor\woocommerce\subscriptions-core\includes\wcs-order-functions.php add code - https://share.pluginus.net/image/i20220415153207.png
if(class_exists('WOOCS') AND 'renewal_order' == $type ){
global $WOOCS;
$_order_currency = get_post_meta($subscription->get_id(), '_order_currency', true);
if($_order_currency){
$WOOCS->set_currency($_order_currency);
}
}and - https://c2n.me/4frn1ZN.png
if (class_exists('WOOCS')) {
global $WOOCS;
$order_currency = get_post_meta($order_id, '_order_currency', true);
if ($order_currency AND $WOOCS->current_currency != $order_currency) {
$WOOCS->set_currency($order_currency);
}
}in file - \wp-content\plugins\woocommerce-subscriptions\vendor\woocommerce\subscriptions-core\includes\class-wcs-cart-renewal.php - add code - https://share.pluginus.net/image/i20220415153708.png
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$curr = get_post_meta($subscription->get_id(), '_order_currency', true);
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$curr]['rate'];
$price = $price / ($rate);
}
}in file - \wp-content\plugins\woocommerce-subscriptions\vendor\woocommerce\subscriptions-core\includes\class-wc-subscriptions-product.php - add code - https://share.pluginus.net/image/i20220415153843.png
if (class_exists('WOOCS') AND $subscription_price) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$subscription_price = $WOOCS->woocs_exchange_value(floatval($subscription_price));
}
}Please do a test
Hello
In file functions.php of your current wp theme add next code:
add_filter('woocommerce_subscription_price_string_details', 'woocs_woocommerce_subscription_price_string_details', 100, 2);
function woocs_woocommerce_subscription_price_string_details($arg, $_this) {
if (class_exists('WOOCS')) {
global $WOOCS;
$order_currency = get_post_meta($_this->get_id(), '_order_currency', true);
if ($order_currency AND $WOOCS->current_currency != $order_currency) {
$WOOCS->set_currency($order_currency);
}
}
return $arg; }
In file - \wp-content\plugins\woocommerce-subscriptions\vendor\woocommerce\subscriptions-core\includes\wcs-order-functions.php add code - https://share.pluginus.net/image/i20220415153207.png
if(class_exists('WOOCS') AND 'renewal_order' == $type ){
global $WOOCS;
$_order_currency = get_post_meta($subscription->get_id(), '_order_currency', true);
if($_order_currency){
$WOOCS->set_currency($_order_currency);
}
}
and - https://c2n.me/4frn1ZN.png
if (class_exists('WOOCS')) {
global $WOOCS;
$order_currency = get_post_meta($order_id, '_order_currency', true);
if ($order_currency AND $WOOCS->current_currency != $order_currency) {
$WOOCS->set_currency($order_currency);
}
}
in file - \wp-content\plugins\woocommerce-subscriptions\vendor\woocommerce\subscriptions-core\includes\class-wcs-cart-renewal.php - add code - https://share.pluginus.net/image/i20220415153708.png
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$curr = get_post_meta($subscription->get_id(), '_order_currency', true);
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$curr]['rate'];
$price = $price / ($rate);
}
}
in file - \wp-content\plugins\woocommerce-subscriptions\vendor\woocommerce\subscriptions-core\includes\class-wc-subscriptions-product.php - add code - https://share.pluginus.net/image/i20220415153843.png
if (class_exists('WOOCS') AND $subscription_price) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$subscription_price = $WOOCS->woocs_exchange_value(floatval($subscription_price));
}
}
Please do a test
Quote from leandroprz on April 16, 2022, 05:04Thank you so much! It seems to be working fine except for one thing. When choosing ARS I see a different price than the one I set as fixed. Please check the product in the private data above and the following screenshots:
https://i.ibb.co/nfjPmmH/price-1.png
https://i.ibb.co/YhL3Sgr/price-2.png
From my calculations after checking the ARS rate in the WOOCS plugin, it seems it is not showing the fixed price below the title, instead it is showing the adjusted price using the ARS rate. Right now that would be 5 USD * 113.922597 for that particular product.
Thank you so much! It seems to be working fine except for one thing. When choosing ARS I see a different price than the one I set as fixed. Please check the product in the private data above and the following screenshots:
https://i.ibb.co/nfjPmmH/price-1.png
https://i.ibb.co/YhL3Sgr/price-2.png
From my calculations after checking the ARS rate in the WOOCS plugin, it seems it is not showing the fixed price below the title, instead it is showing the adjusted price using the ARS rate. Right now that would be 5 USD * 113.922597 for that particular product.
Quote from Pablo Borysenco on April 18, 2022, 09:41Hello
I will check it
But fixed prices only work for standard products
Hello
I will check it
But fixed prices only work for standard products
Quote from Pablo Borysenco on April 22, 2022, 17:37Hello
In file - wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-product-variable-subscription.php - add code - https://share.pluginus.net/image/i20220422153504.png
if (isset($prices['price'][$min_price_variation_id])){
$price = $prices['price'][$min_price_variation_id];
}
Hello
In file - wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-product-variable-subscription.php - add code - https://share.pluginus.net/image/i20220422153504.png
if (isset($prices['price'][$min_price_variation_id])){
$price = $prices['price'][$min_price_variation_id];
}
Quote from leandroprz on April 23, 2022, 03:52Awesome, it's working perfect. Thank you!
Awesome, it's working perfect. Thank you!