Compare 2 fields with inline PHP?
-
I’m currently adding a Feed Module from a pharmacist website, given that the CSV file doesn’t have a typical sale price and a regular price tag, I was wondering if I could make inline PHP if statement in the “sale price (optional)” field to decide when to show the sale price and when not to.
The CSV file instead has a fromPrice and a Price tag. If there’s a sale, the Price tag is lower than the fromPrice tag. I have a inline PHP for this in my woocommerce products import:
[IF({price[.<../fromprice]})]{price}[ENDIF]In brief, price should only be showcased if it’s lower than fromprice. I would like to make an if statement or anything that would accomplish this!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Compare 2 fields with inline PHP?’ is closed to new replies.