Total : 0.00 €

Change position all output fields

  • Casper van Schoonhoven
  • Casper van Schoonhoven's Avatar Topic Author
  • Offline
More
8 months 3 weeks ago #1720 by Casper van Schoonhoven
Casper van Schoonhoven replied the topic: Change position all output fields
It is true, if I turn off the javascript, the text will appear there.

Thanks for your response, I will send an email to @https://altoswebsolutions.com/contact-us to move the output cell and the base price down.
Attachments:

Please Log in or Create an account to join the conversation.

More
8 months 3 weeks ago #1718 by Paul
Paul replied the topic: Change position all output fields
Hello

We noticed that you moved the price below also. Probably that's why our code doesn't work in your case.
If you prefer we can set it for you as is described in your image .png. This would be an extra cost because actually it's not possible with the actually resources (plug-in functionalities and documentation). We can make you a quote for you if you agree.

So, send us an email to altoswebsolutions.com/contact-us if you are interested in have a quote for this job.

Best Regards
Paul
AT644

Please Log in or Create an account to join the conversation.

  • Casper van Schoonhoven
  • Casper van Schoonhoven's Avatar Topic Author
  • Offline
More
8 months 3 weeks ago - 8 months 3 weeks ago #1712 by Casper van Schoonhoven
Casper van Schoonhoven replied the topic: Change position all output fields
Hi Paul,

Enclosed the functions.php (text) of the theme template for tekst excl. VAT

and an example (PNG) for all price position (all output) to place under just above shopping cart.
I had already used a javascript from your blog, but I would like to move all fields down.



Javascript

jQuery(document).ready(function( $ ){
if($(".wpc_simulator_id").length){
$(".product .price").hide();
$( ".wpc-product-form" ).after('<p class="price"><span class="woocommerce-Price-amount amount"></span></div>');

WooPriceCalculator.calculateProductPrice();

}
});




with kind regards
Casper
Attachments:
Last Edit: 8 months 3 weeks ago by Casper van Schoonhoven.

Please Log in or Create an account to join the conversation.

More
8 months 3 weeks ago #1711 by Paul
Paul replied the topic: Change position all output fields
With the PRO version you are able to customize the template of your calculator, so the positions also. Maybe this can help you, take a look here: altoswebsolutions.com/manual/woo-price-calculator/using-themes
So you just need to move this code below your fields:
<div class="awspc-output-product">
        <?php echo $this->view['outputResults']; ?>
    </div>

What kind of problem did you found?
Could you send to us a screenshot of your code?
Try this:
function change_product_price_html($price){
  	
	$newPrice 	 = "";
  	$newPrice 	.= $price;
  	$newPrice	.= " excluding VAT";
  
	return $newPrice;
}
  
add_filter('woocommerce_get_price_html', 'change_product_price_html');

We will be waiting for your feedback.

Best Regards
Paul
AT644

Please Log in or Create an account to join the conversation.

  • Casper van Schoonhoven
  • Casper van Schoonhoven's Avatar Topic Author
  • Offline
More
8 months 3 weeks ago #1707 by Casper van Schoonhoven
Casper van Schoonhoven created the topic: Change position all output fields
Hi there, I have 2 question.

It is possible to get all output fields down with a javascript (see enclosed examples).

I would also like to have the text "excluding VAT" behind the amounts.
I've tried this to fit into the funtion.php of the theme, according to your explanation in the blog, but without success... (see enclosed example tekst after price)

with kind regards
Casper
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: david
Time to create page: 0.168 seconds

Cart

Total : 0.00 €