• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Php if - based on another field choice

Php if - based on another field choice 9 years 2 months ago #34360

Hello,

I need to have field that as the sku dinamically calculated from the selection done on the field multiple products of paypal.

My multiple fields is called: product_quantity and it is:
1 | 10,00
2 | 25,00

The sku of the 1 is test, the sku of the second choice is pippo.

I created a hidden field called sku and I inserted this code, but there's something wrong.

//<code>
if ($product_quantity = 1) {
return "test";
}
else {
return "pippo";
}
//</code>


How can I do it?


Thanks a lot in advance,
Davide
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!