marcandoelpolo
Forum Replies Created
-
Thanks!!! It worked!!!!!
I just use this code with 8.01 and worked perfectly!
THANKS HEAPS!!!!
Hi again, I read again and I understand what you mention, but the woocommerce product only allows me to choose the same minimun price as the suggested price, that´s why I was thinking of using thi code with the 8.01 discount.
Thanks a lot, Peter!
I found the file 🙂
So the only thing I need to add is:<?php $newminimum = $product->get_price() ?>
<?php $newminimum = ($newminimum – 0.01); ?>
<input type=”hidden” id=”minimum_price” name=”minimum_price” style=”padding: 8px;” value=”<?php echo $newminimum; ?>” />
<?php } ?>Is that right?
Should I change ($newminimum – 0.01) into ($newminimum – 8.01) as my regular price is 10, and I want the minimun price to be 2.And last question, how would be the heading tag with a suggested price below the minimum price?
I am really sorry to bother you, but I am learning to code and many things are still too dificult for me!
Thanks a lot, I REALLY appreciate your help.Kind regards,
Daniela
Hi Peter!
Thanks for sharing this!Where can I find the file price.php?
I am trying to figure out how to set a minimum price that is different than the suggested price.
I sell an ebook, and the suggested price is USD 10. As I had some people choosing “0” as a price, and the book is not free, I want to stop that setting USD 2 as the minimum price, but the only way I noticed I could do it is by setting the suggested price into USD 2… and I want to keep it USD 10.
So, after reading your post, I though I could use this code like this:<?php $newminimum = $product->get_price() ?>
<?php $newminimum = ($newminimum – 8.01); ?><input type=”hidden” id=”minimum_price” name=”minimum_price” style=”padding: 8px;” value=”<?php echo $newminimum; ?>” />
Is this right?
If so, could you help me with more instructions on where I should put this code?THANKS SO MUCH!!!!!!!