Skip to content
Advertisement

Return original value jquery / php

I am using this code to run my extra button. It changes original price value to custom value. Is it possible to click again on button named „afterclickbutton“ to get price with original value – meaning get regular price, and reset whole thing, so it could be possible to click again and get custom value, then click and get regular price value etc etc.?

// Přidání bestpprice’ vlastního pole $bestprice = get_post_meta( $product->get_id(), ‘_bestprice’, true);

JavaScript

Advertisement

Answer

Update 2:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement