Variant prices

  • Posts: 16
  • Thank you received: 0
11 years 6 months ago #101501

Hi,

I have a product with 2 variants (1 year and 2 years) and the first one has 3 prices.

I want to know if i can get those prices via array.

Like : variants[0]->prices[1] (for the variant "1 year" and get its second price)
variants[1]->prices[2] (for the variant "2 years" and get its third price)

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 6 months ago #101526

Hi,

Yes, you can do that.

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
11 years 6 months ago #101530

Hello,

Thank you for the reply.

What is the exactly "pattern" i can get the price ? I mean which array ?

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 6 months ago #101558

You already gave the "pattern" on your first message so I'm not sure I understand what you want ?

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
11 years 6 months ago #101640

I want to know if there is a way to access the variant's price via array in php.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #101651

Hi,

Sure, but where do you want to access to your product variants prices ?

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
11 years 6 months ago #101998

Hello,

We found another solution, i just created variants and gave them the prices.

Thanks for your help !

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #102001

Glad to know that you found a solution :).

Last edit: 11 years 6 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum