Hi,
Just a follow-up from this thread: http://wp-types.com/forums/topic/custom-views-and-edit-product-forms-for-price-plans/#post-206599
Since creating the new plans the supplied code no longer works. I have three plans: Free, Standard and Premium, setup as per this thread: http://wp-types.com/forums/topic/classified-pricing-plans-customer-upgrades/
This was the code provided to hide a field on the Classifieds 'edit product' Cred form:
<div style="display:none">[cred_field field="featured_ad" post="listing" value="" urlparam=""]</div>
[cred_show_group if="($(featured_ad) eq '1' )" mode="fade-slide"]
<li>
<label>[wpml-string context="cred-form-Edit product" name="Website"]Website[/wpml-string]</label>
[cred_field field="website-url" post="listing" value="" urlparam=""]
</li>
[/cred_show_group]
But this only works with the previous 'VIP' or 'featured ad'' setup – how would the code above now look to hide fields based on my listing plans?
I also need to be able to hide fields from two plans (e.g. Free and Standard), so I guess I'd use something like:
[cred_show_group if="($(featured_ad) eq '1' ) OR ($(featured_ad) eq '2' )" mode="fade-slide"]
I just need to know what to replace the 'featured ad' references with to get this to work with my plans, and a way to hide two plans at once.
Might be best if Ana deals with this query as she'll already be aware of how this is setup since she has kindly helped me with this so far.
Thank you.