Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[epl_jupix_import_sold_stc({availability[1]})] function stops SOLD label showing properly #2

Open
jcamp opened this issue Nov 19, 2018 · 0 comments

Comments

@jcamp
Copy link
Contributor

jcamp commented Nov 19, 2018

No sure how to explain this but...

Using EPL with "WP all import pro" and "EPL - Listing Templates"

The function is called in the import:
Sold STC
[epl_jupix_import_sold_stc({availability[1]})]

Which works with properties 'SOLD STC' (sets a flag to 'yes' to against code = 4)

The ISSUE is that on the template (using "EPL - Listing Templates") - it marks the property as 'NEW' and not 'SOLD' when the = 5 (sold) in the XML file.

So, we have changed the code:

if (( $availability == '4' ) OR ( $availability == '5' )) {
		return 'yes';
	} else {
		return 'no';
	}

In the function which fixes it but seems a bit of a 'kludge'.

Also, the description for this function does not make any sense?

/**
 * Processing Function for property_sold_stc
 *
 * @import_usage	[epl_jupix_import_sold_stc({availability[1]})]
 * @return		If price qualifier is 0 returns empty, else returns formatted prece prefix and formatted currency
 *
 */

Which is totally NOT what this function does...

Help appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant