Forum
Customers paying a deposit - via perch member tag
Hi There,
We are nearly there with our shop launch, we are working on the option for customers to pay a deposit and once paid the other product appears with the remaining balance.
I am just struggling on how we could get this working.
I realise we need the code
if (perch_member_has_tag(‘paidcontent’)) {
// do some stuff here
}
But how do we get it to match the deposit product and the remaining balance product
Any help on this would be great
Thanks
I managed to get this sorted. Took me all day but we got there.
Solution
Firstly on the
product.html
we removed the sku from the slug field so it displayedSo from here we could give the deposit product and the remainder product the same title but each product has a different sku. The deposit sku must contain
-DEP
and the remainder product sku must contain-BAL
When then give the deposit product a tag which must be the same as the deposit sku.
So from here I was able to do the following code to get it working
This seems to work for us, but there probably is an easier way to do this. I am always open to ways to make my code cleaner so feel free.
Thanks