Where are these hooking up to the system, a photo or two of that would help.
Most PVC used in pools is stock off the shelf stuff from the big box stores, but that part with the "O" ring probably is not. Specialty parts may need to be obtained from the manufacturer of the equipment it attaches to. I'm going to go,out on a limb and guess the O ring part is a hook up to the heater???