Support Forum

Content of the article

You need to log-in to create request (topic) to the support

[WOOCS LABS] - Customization request with YITH WooCommerce Request a Quote

(new from 01-07-2019)
This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see green button on the right side) and press Save button.
If you not got email within 24 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.

Hello,

the plugin presents an error with YITH WooCommerce Request a Quote when going to the quote.
In the base currency the info is correct but at the time of switching to another currency mix the base currency in the (add ons) and make rare calculations.

See the following print screen:
https://we.tl/t-Vwhvs2Z96q


The product is also enabled for tests in case you like to check it live:
https://zerdigital.cl/producto/hp-zbook-test/

If you need more information let me know.

Greetings and thanks,

FCS

Hello

Please  drop me  wp-admin + FTP access

I will add this to the adaptation queue

Hi Pablo,

thanks for add this plugin to the adaptation. (Premium version)

https://es.wordpress.org/plugins/yith-woocommerce-request-a-quote/

I send you the wp-admin + FTP access.

If you need information let mi know.

Greetings and thanks,

FCS

Hello

I added this plugin to the adaptation queue

Hi, Pablo

Do you have any idea how the adaptation is going? We still haven't had an answer.

Greetings and thanks,
FCS

Hello

this plugin is fifth in line

Hi, Pablo

Do you have any idea how the adaptation is going?

Greetings and thanks,
FCS

Hello Felix

I think we will do it this Friday.

Hello Felix

The problem is in another plugin - https://c2n.me/44v6Oo0.png

We will try to adapt this plugin again. But I do not guarantee success

Hello Felix

in file - "\wp-content\plugins\yith-woocommerce-request-a-quote-premium\includes\compatibility\yith-woocommerce-composite-products.php" add code ( https://c2n.me/44CcER7.png )

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {

$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$price = $price / $rate;
}
}
}

in file - "wp-content\plugins\yith-woocommerce-request-a-quote-premium\includes\compatibility\yith-woocommerce-advanced-product-options.php" - add code - https://c2n.me/44CcIJl.png

$price=$_product->get_price();
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {

$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$price = $price / $rate;
}
}
}

In  functions.php

add_filter( 'yith_ywraq_hide_price_template',function( $price, $product_id, $raq){
$product= wc_get_product( $product_id );
$price = $product->get_price();
$quantity=$raq['quantity'];
//return $price;
if ( $product->is_taxable() ) {

if ( WC()->cart->display_prices_including_tax() ) {
$row_price = wc_get_price_including_tax( $product, array( 'qty' => $quantity ) );
$product_subtotal = wc_price( $row_price );

if ( ! wc_prices_include_tax() && WC()->cart->get_subtotal_tax() > 0 ) {
$product_subtotal .= ' <small class="tax_label">' . WC()->countries->inc_tax_or_vat() . '</small>';
}
} else {
$row_price = wc_get_price_excluding_tax( $product, array( 'qty' => $quantity ) );
$product_subtotal = wc_price( $row_price );

if ( wc_prices_include_tax() && WC()->cart->get_subtotal_tax() > 0 ) {
$product_subtotal .= ' <small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>';
}
}
} else {
$row_price = $price * $quantity;
$product_subtotal = wc_price( $row_price );
}

return $product_subtotal;
},10,3 );

 

Please  do test!

Hi Pablo,

We make the modifications and have the following:

Original currency:

https://clip2net.com/s/44FIC80

Currency B:

https://clip2net.com/s/44FIvT6

The total is displayed correctly with the add ons when changing currency but the selected add ons are not detailed and the total price does not appear on the item.

Before making the modification it looked like this:https://clip2net.com/s/44FInrn

We need your support so that the add ons are shown (in the worst case without the price detail) and that the total price + add ons is shown on the item.

It would be something similar to this example: https://clip2net.com/s/44FK3j8

Greetings and thanks,
FCS

 

Hello

Ok! I will check it