#JohnTheFrog

1 messages ยท Page 1 of 1 (latest)

inland bayBOT
#

Hello JohnTheFrog, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
โ€ข https://discord.com/channels/841573134531821608/1163405312250875925, 2 days ago, 8 messages

bronze horizon
#

Hi there!

#

What do you mean by "which positions"?

wintry bay
#

Let's say I have a 4 positions on bought subscirption, and a promotional code for one of them. Is this possible?

bronze horizon
#

What do you mean by "4 positions"?

wintry bay
#

Are the promo codes are for the whole subscription?

#

I want to apply i.e. 5% discount on a one position, not all 4 that user is going to buy

#

and display that position discount on invoice

#

is my way of thinking right, or this does not work like that?

bronze horizon
#

But what is "position"? You mentioned that word multiple time, but never explained it.

wintry bay
#

The position is invoiceItem

bronze horizon
#

Oh, now that makes sense ๐Ÿ™‚

wintry bay
#

Probably I am looking for something like

invoices->retrieve(in_aaaa, [ `expand' => 'invoiceItem.product.coupon'

#

but I am just guessing (a lot)

bronze horizon
#

Having a look.

inland bayBOT
bronze horizon
#

so when you retrieve an Invoice, you can use expand: ["lines"] to check if the line has a descount or not applied

wintry bay
#

Oh ok thanks

bronze horizon
#

Happy to help ๐Ÿ™‚

thorny holly
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

wintry bay
#

No, thakn you : )