I don't see the price. I0ve add the following shorte code in the layout to display it but nothing is displayed
[wpv-woo-product-price]
[wpv-woo-buy-options]
The price and button should be displayed under the table "Prenotazione e Partenze" in the frontend page of the product I share you in the first post
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
Well - to use the shortcodes [wpv-woo-product-price] and [wpv-woo-buy-options] you need to install the woocommerce views plugin.
=> https://toolset.com/documentation/user-guides/getting-started-woocommerce-views/
More info about shortcodes:
=> https://toolset.com/documentation/user-guides/views-shortcodes/#woocommerce-views
Hi, I've already installed all plugins (view, layout, types)
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Well - Did you installed Woocommerce Views plugin?
You can download it from here:
=> https://toolset.com/download/toolset-woocommerce-views/
Yes, I installed all toolset plugin package
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Ok - where exactly you are trying to display the [wpv-woo-product-price] and [wpv-woo-buy-options] shortcodes?
Could you please share the link of that page.
this is the page => hidden link
The price and add to cart button should be under the table "Prenotazioni e partenze" and on the rigt of "Come Funziona"
This is tha layout I0m using => hidden link
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Ok - I see views and Types and Forms plugin are not updated on your installed. Can I update it to latest official release version?
I've update all, now I see this:
Price =
Buy Option ==
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Ok - that I added to check and I removed all.
This is a strange thing as I just checked with the minimum install and both shortcodes just work fine.
Could you please check your issue by switching your theme to 2017 for a moment and check if you able to see the shortcode output.
Hi Minesh,
The roblem is not linked to the theme, i tried to change it and it doen't display the button and price.
MAybe there is somethng with the plugin TM Woocommerce extra product.
This plugin allow to build a custom option with price dirclty in the product page.
If I put a fied with the price the button is dislayed, else not.
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Ok - so I do not know how that plugin works. Could you please check with plugin author what causes the issue and if its Toolset, I would be happy to help. Please update me here.
Hi, I find the issue. It is not linked to the plugin.
The issue is related to the code you suggest me to change the woocommerce price.
If I add set the price in the traditional woocommerce section it work, and both are displayed
If I add the brice using the custom field I don't know why but the price is correcly displayed in backend but not in frontend.
So, the issue maybe could be in the way the price is saved with the function?
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Well - I use following code now:
function action_woocommerce_process_product_meta($post_id){
global $woocommerce, $post;
$option = $_POST['wpcf']['option-1'];
$price1 = $_POST['wpcf']['prezzo-1'];
$price2 = $_POST['wpcf']['prezzo-2'];
$price3 = $_POST['wpcf']['prezzo-3'];
$price4 = $_POST['wpcf']['prezzo-4'];
$na = $_POST['wpcf']['na'];
$nc = $_POST['wpcf']['nc'];
$regular_price = ($price1 * $na) + ($price2 * $nc)+ $price3 + $price4;
update_post_meta($post_id,'_regular_price',$regular_price);
}
add_action('woocommerce_process_product_meta', 'action_woocommerce_process_product_meta', 30, 2 );
It updates the regular price dynamically and I see the button on the frontend. Is this expected result?
No Minesh, sorry.
I try to update the custom field with the price and save. Total was 60 but displayed is 100.
100 is the value I save before fill the traditional field of woocommerce to the bottom of the prooduct.
Updating the custom filed the price is not updated too