Promotion & old price

WordPress
May 14, 2020 09:42:14
Damian
Topics: 2
Messages: 10
Hello.

I am trying to create such a condition in the plugin but I fail. Does anyone have an idea or is it possible to implement? Do you need to create a second template? Information in attachment.
May 14, 2020 10:58:16
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

As a solution it can be used "HTML" object with value "<strike>Old Price</strike>". Another solution that you can try to implement is to use "Signature" object with old price value and over "Signature" cross out image. Screenshots attached.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
May 14, 2020 13:33:05
Damian
Topics: 2
Messages: 10
Hello. I don't think I got it well understood. I mean how to make the condition of events that I presented.I use meta_calue to get this price.
May 14, 2020 14:25:32
E2Pdf
Topics: 7
Messages: 3617
Support
Please clarify some information:

1. Which shortcode do you use to output old price (which must be crossed out)?
2. Which shortcode do you use to output current price if old price not set?
3. Which shortcode do you use to output current price if old price is set?

We remain at your service.



We would really appreciate your feedback at WordPress.org!
May 19, 2020 16:22:07
Damian
Topics: 2
Messages: 10
Hello.
1. [e2pdf-format-number thousands_sep=" "][meta key="car_price"][/e2pdf-format-number] <div class="currency">zł</div>
2. [e2pdf-format-number thousands_sep=" "][meta key="car_price"][/e2pdf-format-number] <div class="currency">zł</div>
3. [e2pdf-format-number thousands_sep=" "][meta key="car_price_promotion"][/e2pdf-format-number] <div class="currency">zł</div>
May 20, 2020 07:01:37
E2Pdf
Topics: 7
Messages: 3617
Support
If we understand correctly, conditions must look like this:

It must be created 2 HTML elements.

As example:

For promotion price it must be (screenshot 1):

Value: <strike>[e2pdf-format-number thousands_sep=" "][meta key="car_price"][/e2pdf-format-number] zł</strike>

Condition must hide this field if promotion price not set:

Action: Hide
If: [meta key="car_price_promotion"]
If Condition: =
If Value:

For regular price it must be (screenshot 2):

Value: [e2pdf-format-number thousands_sep=" "][meta key="car_price"][/e2pdf-format-number] zł

Condition must change value to promotion price if set:

Action: Change
Property: Value
Change: [e2pdf-format-number thousands_sep=" "][meta key="car_price_promotion"][/e2pdf-format-number] zł
If: [meta key="car_price_promotion"]
If Condition: !=
If Value:

We remain at your service.

We would really appreciate your feedback at WordPress.org!
May 20, 2020 08:06:01
Damian
Topics: 2
Messages: 10
Oleksandr - you are the champion. It works perfectly. Apparently, I still don't know your product well.

I have one question. How to enter css correctly in the html field?
May 20, 2020 08:11:29
E2Pdf
Topics: 7
Messages: 3617
Support
Currently it's possible to do directly in "HTML" field values with "style" attribute or via "CSS" value which support simple constructions (tag, separate class) like:

p {
margin-bottom: 20px;
}

.class {
margin-bottom: 20px;
}

However it still has very limited support and not all styles or css attributes tags supported. If some style not working, you can create request under "Feature Request" section so we can review to add its support.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
May 20, 2020 09:24:18
Damian
Topics: 2
Messages: 10
Okay. At the moment I do not need additional options. Everything works great. Thank you for your help!

I recommend doing the tutorial section for other users who may have similar problems as logically solve something.

We can close this ticket.
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.